Glassmorphism Generator

Create the frosted-glass glassmorphism effect with CSS. Adjust the blur, fill opacity, saturation, tint, border and corner radius, and see the card over a colorful backdrop as you go. The output includes the -webkit- prefix Safari needs. It's free, runs entirely in your browser, and nothing is uploaded.

Typical glass settings

SettingSubtleStrong
Blur6–10px16–24px
Fill opacity10–15%25–35%
Border opacity15–20%30–40%
Saturate120%180%

When to use it

  1. Design a frosted navigation bar over a hero image.
  2. Build glass cards for a dashboard or pricing section.
  3. Make a modal that lets the page show through, blurred.
  4. Recreate the translucent panels of macOS and iOS on the web.

How to Use

  1. Adjust blur, fill opacity and saturation.
  2. Set the tint, border opacity and radius.
  3. Turn the shadow on or off.
  4. Copy the CSS.

Features

  1. backdrop-filter blur and saturate
  2. Safari -webkit- prefix included
  3. Tint, opacity and border controls
  4. Preview over a colorful backdrop
  5. 100% client-side

FAQs

Why doesn't my glass effect show?

backdrop-filter needs two things: a translucent background on the element, and something colorful behind it. On a plain white page, there's nothing to blur.

Does backdrop-filter work in all browsers?

Yes, in all current browsers. Safari needs -webkit-backdrop-filter, which the output includes.

Is glassmorphism accessible?

It can be, but text contrast changes with whatever is behind the glass. Check it over your real content, and increase the fill opacity if text gets hard to read.

Is it expensive to render?

Backdrop blur costs more than ordinary styles, especially over video or animation. Use it on a few elements, not hundreds.

Is anything uploaded?

No. The CSS is generated in your browser.

Technical Details

Glassmorphism relies on backdrop-filter, which applies a filter to whatever is painted behind an element rather than to the element itself. A frosted card is a blur of the backdrop seen through a translucent fill, usually white at 10–30% opacity, with a slightly brighter one-pixel border to catch the edge and an optional soft shadow to lift it. Adding saturate() to the backdrop filter keeps colors behind the glass from looking washed out. The generator converts the tint and opacity into an rgba() background and writes backdrop-filter together with -webkit-backdrop-filter, which Safari still requires. The effect is invisible if the element's background is opaque or there's nothing colorful behind it, which is the most common reason it appears not to work, so the preview sits on a gradient backdrop. Text on glass changes contrast as the background moves, so check it over the real content.

Web & CSS Tools

Web & CSS Tools

  • Neumorphism Generator
  • CSS Filter Generator
  • CSS Loading Spinner Generator
  • CSS Toggle Switch Generator
  • CSS Checkbox Generator
  • CSS Background Pattern Generator
  • CSS Scrollbar Generator
  • CSS Triangle Generator