CSS Glassmorphism Generator

Build a frosted-glass card with a live preview and copy the CSS: transparent colour, backdrop blur, saturation, rounded corners and a light edge.

Processed on your device. Files are not uploaded

How to make a frosted glass effect

  1. Set the glass

    Choose the colour, its opacity, the blur, saturation, corner radius and edge highlight.

  2. Check the preview

    A card sits over a colourful background so you can see the effect.

  3. Copy the CSS

    Use the .glass rule in your stylesheet.

Worked example

This is what CSS Glassmorphism Generator gives for its own sample values. Open the tool above and change anything to try your own.

Glass colour
#ffffff
Opacity of the glass (%)
20
Blur behind the glass (px)
12
Saturation of what shows through (%)
180
Corner radius (px)
16
Edge highlight opacity (%)
30

CSS

.glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

About CSS Glassmorphism Generator

Make a frosted-glass card, the look of a translucent panel that blurs what is behind it. The CSS uses a transparent colour, backdrop-filter for the blur, a light border for the edge, and the -webkit- version for older Safari.

FAQs

Why can't I see the blur on my page?

Backdrop blur needs something behind the card, such as an image or a gradient. On a plain background there is nothing to blur.

Does it work in every browser?

All current browsers support backdrop-filter. Very old ones show only the transparent colour.

Is it accessible?

Check that text on the card has enough contrast over every part of the background.

Related tools