Tools
DesignLive

CSS Glassmorphism Generator

Create a custom glassmorphism card, adjust the blur, transparency, border, shadow, and background, then copy clean CSS for your website.

  • No signup required
  • Live CSS preview
  • Copy-paste ready code

Presets

Quick Start

Lock a section before randomizing to keep those values fixed.

Scene Background

Background type

Glass Card
Border and Shadow
Corners and Surface
Background Blobs

Blob 1

Blob 2

Preview Content

Design System

Glass that feels alive.

Fine-tune every visual layer, then copy clean CSS for your next interface.

Get Started
/* Background scene */
.glass-scene {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: linear-gradient(135deg, #0b1630 0%, #3b1d6d 100%);
}

/* Soft background blobs */
.glass-blob {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(0);
}

.glass-blob--one {
  width: 280px;
  height: 280px;
  top: 10%;
  right: 4%;
  background: rgba(110, 168, 255, 0.48);
  filter: blur(90px);
}

.glass-blob--two {
  width: 220px;
  height: 220px;
  bottom: 8%;
  left: 8%;
  background: rgba(192, 132, 252, 0.4);
  filter: blur(80px);
}

/* Glass card */
.glass-card {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  min-height: 260px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background-color: rgba(255, 255, 255, 0.69); /* fallback without backdrop-filter */
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.04) 42%, transparent 68%), rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.174), 0 4px 12px rgba(0, 0, 0, 0.074);
  color: #f8fafc;
}

.glass-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248,250,252,0.78);
}

.glass-title {
  margin: 0 0 12px;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.glass-description {
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(248,250,252,0.78);
}

.glass-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.16);
  color: #f8fafc;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 640px) {
  .glass-scene { padding: 32px 16px; min-height: 360px; }
  .glass-title { font-size: 1.45rem; }
}

Saved styles stay in this browser.

Saved Styles (0/12)

Save a style to reload it later in this browser.

What is glassmorphism?

Glassmorphism is an interface style that layers translucent surfaces over a visual background. It commonly combines a semi-transparent background, backdrop blur, a subtle border, rounded corners, and soft shadows to create a frosted-glass appearance.

From preview to production CSS

  1. 01

    Choose a preset or start with the default style.

  2. 02

    Adjust the background, glass transparency, blur, border, shadow, and corners.

  3. 03

    Preview the card at different settings and check its readability.

  4. 04

    Copy CSS, HTML, or a full standalone demo.

  5. 05

    Replace the example content and integrate it into your website.

Glassmorphism design tips

  • Use a visually interesting background; blur is more noticeable over layered colors or shapes.
  • Keep the glass panel slightly transparent so it still looks like glass.
  • Use high text contrast and avoid low-opacity text.
  • Limit blur and shadow intensity to preserve readability and performance.
  • Use glass surfaces sparingly for focal cards, dialogs, or navigation—not every element on a page.
  • Test on mobile and on a non-glass fallback background.

Browser compatibility note

Glass effects typically rely on backdrop-filter. Modern browsers support it, but older browsers or some device configurations may not. The generated code includes a readable semi-transparent background fallback, so content should remain usable even without the blur effect.

How to add the CSS to your website

Plain HTML/CSS

Copy the HTML and CSS, paste the CSS into your stylesheet, then insert the HTML into the page body.

WordPress

Add CSS in Appearance → Customize → Additional CSS or your theme/site-builder custom CSS area, then add HTML in a Custom HTML block. Exact wording can vary by theme.

Next.js / React

Place CSS in a CSS module, global stylesheet, or component styles. Convert class to className when using JSX.

Glassmorphism generator FAQ

Is this CSS Glassmorphism Generator free?
Yes. The tool is free and runs locally in your browser with no signup required.
Can I use the generated CSS on commercial websites?
Yes. You can adapt the generated CSS and HTML for personal or commercial projects. Test and review the code before shipping it to production.
What does backdrop-filter do?
backdrop-filter affects the pixels behind a semi-transparent element, creating blur and saturation effects that produce the frosted-glass look.
Why does the blur effect not show clearly?
Blur is less visible when the background is flat, opaque, or low-contrast. Layered colors, gradients, and soft blobs make the glass effect easier to notice.
Does glassmorphism work in every browser?
Support is strong in current browsers, but older browsers or some device configurations may not apply backdrop-filter. The generated code includes a readable semi-transparent fallback.
How can I make a glass card more readable?
Increase text contrast, reduce panel transparency, simplify the background, or rely more on the solid fallback background behind the frosted layer.
Can I save my favorite styles?
Yes. Saved styles are stored only in your current browser, with a maximum of 12 styles.
Does this tool upload or store my design settings?
No. Customization runs locally in your browser. Saved styles use browser localStorage and are not uploaded to Optisio servers.

Turn a visual idea into a website that earns trust

Optisio builds professional websites and SEO foundations for growing businesses.

Explore Optisio Services