🪟 CSS Glassmorphism Generator

Generate CSS glassmorphism effects visually. Adjust blur, transparency, border, and background. Copy ready-to-use CSS. Free glassmorphism generator for modern UI design.

Glass Card
Glassmorphism effect preview

How to Use

1

Adjust the controls

Use the sliders to set blur, background opacity, border opacity, radius, and saturation. Pick a tint color with the color swatch.

2

See the live preview

The glass card updates instantly. Experiment with values to achieve the look you want.

3

Copy the CSS

Click Copy CSS to copy the generated code to your clipboard. Paste it into your stylesheet.

Frequently Asked Questions

What is glassmorphism? +
Glassmorphism is a UI design trend that mimics frosted glass — featuring blur, transparency, subtle borders, and shadows to create a layered depth effect. It became popular with iOS and macOS Big Sur designs.
What CSS properties create a glass effect? +
The key property is backdrop-filter: blur() which blurs the content behind the element. Combined with a semi-transparent background (rgba with low alpha), a thin border (rgba white), and box-shadow, you get the glassmorphism look.
Does backdrop-filter work in all browsers? +
backdrop-filter is supported in Chrome, Edge, Safari, and Firefox (since version 103). Add -webkit-backdrop-filter for Safari compatibility. Internet Explorer does not support it.
How do I add a glassmorphism card to my website? +
Copy the generated CSS and apply it to your element. Make sure the element has colorful content behind it — glassmorphism requires visible background content for the blur effect to look good.
What is the best blur value for glassmorphism? +
A blur of 10–16px is typically the sweet spot. Too little (under 5px) and the effect is barely visible. Too much (over 24px) and the background is unrecognizable. Pair with 15–25% opacity for best results.


Complete Guide: CSS Glassmorphism Generator

Glassmorphism is a UI design style that mimics frosted glass: translucent surfaces with a blur effect that lets background content bleed through, creating depth and a sense of layering. It gained widespread popularity after Apple's macOS Big Sur (2020) and has since become one of the most recognizable modern UI aesthetics.

The Four CSS Properties Behind Glassmorphism

A complete glassmorphism effect requires four properties working together:

.glass-card {
  /* 1. Semi-transparent background */
  background: rgba(255, 255, 255, 0.15);

  /* 2. The blur — this is the defining property */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* Safari */

  /* 3. Subtle frosted border */
  border: 1px solid rgba(255, 255, 255, 0.25);

  /* 4. Depth shadow */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);

  /* Supporting properties */
  border-radius: 16px;
}

backdrop-filter: blur() — How It Works

backdrop-filter applies a filter to the area behind an element (everything visible through the element's background). This is fundamentally different from filter: blur(), which blurs the element itself and its children.

The blur radius value determines the frosted glass intensity:

The element's background must have some transparency (alpha < 1) for the blur to be visible. A fully opaque background blocks the backdrop effect entirely.

Browser Support and the Safari Prefix

backdrop-filter is supported in Chrome 76+, Edge 79+, Firefox 103+, and Safari (with prefix). Always include both:

backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);

The -webkit- prefix is required for Safari on iOS and macOS, which still needs the prefix as of 2026. For Firefox versions below 103, backdrop-filter requires the layout.css.backdrop-filter.enabled flag — it is not available to users on older Firefox without a polyfill or fallback.

Graceful degradation: provide a more opaque fallback background for browsers without support:

.glass-card {
  background: rgba(255, 255, 255, 0.85); /* fallback */
  background: rgba(255, 255, 255, 0.15); /* overridden by supporting browsers */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

Performance Impact: GPU Compositing

backdrop-filter is an expensive operation. It forces the browser to:

  1. Composite the background into an offscreen buffer
  2. Apply the blur shader via the GPU
  3. Composite the result back into the page

This promotes the element to its own compositing layer, which uses GPU memory. Keep these best practices in mind:

When NOT to Use Glassmorphism

Glassmorphism is visually striking but has serious usability limitations:

Complete Glassmorphism Recipe

.glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.07),
    0 12px 48px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  padding: 24px;
}

Adding saturate(180%) to the backdrop-filter increases the vibrancy of background colors bleeding through, enhancing the frosted glass look. The inner box-shadow (inset) simulates light reflection on the top edge of the glass surface.

Combine glassmorphism with custom shadows using our Box Shadow Generator, or add dynamic color backgrounds with the Gradient Generator.

🧰 50+ Tools