UTILS.
Private by default
▢

Glassmorphism Generator

Create frosted-glass card CSS with blur, transparency, saturation and a tint color.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →

About this tool

Adjust blur, transparency, saturation and tint to design a frosted-glass card and copy its CSS, all in your browser.

Four controls feed the result: blur from 0 to 30 pixels, transparency from 0 to 100 percent, saturation from 100 to 300 percent, and a tint color. The tint becomes an rgba() background whose alpha is the transparency divided by 100, and blur and saturation are combined in one backdrop-filter value.

The generated rule is a .glass class that also includes the -webkit-backdrop-filter prefix, a 1px semi-transparent white border and a 14px border radius. The border and radius are fixed in the tool, so edit them in the copied CSS.

Frequently asked questions

Why does the preview sit on a gradient?
Glassmorphism relies on a colorful backdrop so the blur and transparency are visible behind the card.
What does backdrop-filter do?
It blurs and saturates whatever is behind the element to produce the frosted-glass effect.
Does the CSS include the gradient behind the card?
No. Only the .glass rule is generated. The gradient exists so you can judge the blur, and your real page needs something colorful or detailed behind the element for the effect to show.
Why does a higher transparency value make the card more solid?
The slider sets the alpha of the tint color. At 0 the tint is fully see-through and at 100 it is fully opaque, so higher values hide more of what is behind the card.

More tools