CSS Glassmorphism Generator
Create frosted glass UI effects visually. Adjust blur, transparency, border, and radius — then copy the CSS code with Safari support.
Live Preview
Controls
CSS Code
background: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.25);Browser Support
backdrop-filter is supported in Chrome 76+, Edge 79+, Firefox 103+, Safari 9+ (with -webkit- prefix), and Opera 63+. Global support is over 95%. The generated CSS includes the -webkit-backdrop-filter prefix for Safari compatibility.
Presets
Glassmorphism Properties
| Property | Description | Typical Values |
|---|---|---|
| backdrop-filter: blur() | Blurs the area behind the element | 4px – 32px |
| background: rgba() | Semi-transparent background color | 0.05 – 0.4 alpha |
| border | Subtle border for edge definition | 1px solid rgba(255,255,255,0.2) |
| border-radius | Rounded corners for the glass card | 8px – 24px |
| -webkit-backdrop-filter | Safari prefix for backdrop-filter | Same as backdrop-filter |
Related Tools
Frequently Asked Questions
What is glassmorphism in CSS?
Glassmorphism is a UI design trend that creates a frosted glass effect using CSS backdrop-filter: blur() combined with a semi-transparent background. The blurred background shows through the element, creating a modern, layered look popular in dashboards, cards, and navigation bars.
How does backdrop-filter work?
The CSS backdrop-filter property applies graphical effects like blur, brightness, or contrast to the area behind an element. For glassmorphism, backdrop-filter: blur() is used to blur whatever appears behind the element, while the element itself has a semi-transparent background color.
Is backdrop-filter supported in all browsers?
backdrop-filter is supported in Chrome, Edge, Safari, Firefox, and Opera. Safari requires the -webkit-backdrop-filter prefix. This generator includes both the standard and -webkit- prefixed versions for maximum compatibility. Global browser support is over 95%.
How do I create a glassmorphism effect?
Combine three CSS properties: a semi-transparent background (e.g., rgba(255, 255, 255, 0.2)), backdrop-filter: blur(16px) for the frosted effect, and a subtle border with a semi-transparent color. Add border-radius for rounded corners. The element must be placed over a colorful background for the effect to be visible.