Glassmorphism CSS Generator

Glassmorphism CSS Generator — tune blur, opacity, saturation, border, and radius with a live preview. Copy CSS with the -webkit prefix. Free, no signup.

16px
15%
150%
16px
20%
Preview background
Preview

Glass Card

Frosted background with backdrop-filter.

About Glassmorphism CSS Generator

Frequently asked questions

Glassmorphism is a UI style that mimics frosted glass — a translucent surface that blurs whatever sits behind it. It's defined by four properties: a backdrop blur, a low-opacity background tint, slightly boosted saturation, and a thin highlight border. The effect was popularised by Apple in macOS Big Sur (2020) and iOS, and quickly became one of the dominant design trends of the early 2020s. It's most often used on overlays, navigation bars, cards over hero imagery, and floating panels.

Excellent on every modern browser — Chrome, Edge, Firefox, Safari, and the Chromium-based mobile browsers all support `backdrop-filter`. Safari has supported it the longest but still requires the `-webkit-backdrop-filter` prefix, which is why this tool emits both properties. The only place glassmorphism degrades is on very old versions of Firefox (pre-103) — there, the card simply renders with its base background colour, which is a safe fallback.

`backdrop-filter` works by sampling the pixels behind the element and applying a blur — there's nothing to blur if the backdrop is a flat single colour like white or a neutral grey. The glass effect only becomes visible when the backdrop has colour variation: a photograph, a gradient, or layered shapes. That's why every glassmorphism mockup you see online sits over a vibrant gradient or photo. The preview in this tool defaults to a colourful gradient for that reason.

Yes — and they're serious. Translucent surfaces have unpredictable contrast because the colour behind them keeps changing. White text on a glass card looks crisp over a dark photo and disappears over a light one. Before shipping glassmorphism, always test text contrast against the worst-case backdrop and aim for at least WCAG AA (4.5:1 for body text). Many designers add a darker tint behind the glass, raise the background opacity past 0.5, or add a subtle drop shadow to the text to guarantee readability.