Glassmorphism CSS generator

Tune blur, transparency, saturation, border and corner radius while the card floats over a colorful background. The CSS includes the -webkit-backdrop-filter line for Safari.

CSS

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

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Move Blur to set how much the background is frosted. Around 8 to 16 px is common.
  2. Lower Background opacity for clearer glass or raise it for a milkier look.
  3. Adjust saturation, border opacity and corner radius, and pick a glass color. White is the classic choice; a dark color gives smoked glass.
  4. Copy the CSS and paste it into the rule for your card.

What the output means

background: rgba(255, 255, 255, 0.2); tints the card, backdrop-filter: blur(12px) saturate(150%); blurs and enriches what is behind it, and border: 1px solid rgba(255, 255, 255, 0.3); adds the thin light edge that sells the glass look. With border opacity at 0 the border line is dropped.

Example

The default settings produce a white glass panel at 20 percent opacity, 12 px blur, 150 percent saturation, a 16 px radius and a 30 percent white border.

Tips

  • Keep text contrast in mind: white text on light glass over a bright photo is hard to read. A darker glass color helps.
  • Put the card over an image or gradient; on a flat background the effect is invisible.
  • Test on a real phone if you use several glass panels on one screen.

Frequently asked questions

Why does the CSS include -webkit-backdrop-filter?

Safari has long supported backdrop-filter only with the -webkit- prefix, and older versions still need it. Writing both lines costs nothing and covers those browsers.

Why do I see no blur in my own page?

backdrop-filter blurs whatever is painted behind the element, so there must be something behind it: an image, a gradient or other content. Over a plain flat color there is nothing to blur. The background of the glass also has to be semi-transparent.

What does saturation do here?

It boosts or reduces the color intensity of the blurred backdrop. Values above 100 percent make the glass look more vivid. At exactly 100 percent the tool leaves saturate() out of the CSS.

Is backdrop-filter heavy on performance?

It makes the browser blur the area behind the element on every repaint, so very large panels or many of them at once can be slow on weak phones. Use it on a few small to medium elements.

More in Color

All tools in this category: Color ·Updated November 3, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.