Glassmorphism CSS Generator

Create frosted glass UI effects with backdrop-filter blur and transparency. Fast, free, and fully client-side.

How the Glassmorphism CSS Generator Works

Builds a frosted-glass panel by adjusting blur, saturation, transparency, border opacity, corner radius, and a white or black base color. A live preview sits over one of six gradient backgrounds and updates as you move the controls. The output is a single .glass CSS rule with background, border-radius, box-shadow, border, and backdrop-filter declarations. Everything runs in your browser and the settings are never uploaded.

Usage Example

Tuning a light blur and white base color to get a translucent notification card that sits over a gradient hero section.

Frequently Asked Questions

Why does the blur on my site look different from the preview?

The effect blurs whatever sits behind the element. The preview only shows six gradient presets, so on your page the result depends on the images, text, and colors behind the card. Test the rule against your real background before shipping it.

Why is there a -webkit-backdrop-filter line in the output?

It repeats the backdrop-filter value with the prefixed property, which older Safari versions need. Keeping both lines is harmless. You can drop the prefixed line only if you do not need to support older Safari.

What ranges do the controls allow?

Blur runs from 0 to 40 px, saturation from 0% to 200%, border radius from 0 to 100 px, and transparency and border opacity from 0 to 1 in steps of 0.01. The base color is limited to white or black, so this tool does not offer a custom tint.

Browse more

See all color tools and converters.