CSS Glassmorphism Generator
Create frosted-glass CSS cards with blur, transparency, color, border and radius controls. Live preview over a gradient and copy-ready backdrop-filter code.
Glassmorphism settings
CSS
.glass {
background: rgba(255, 255, 255, 0.20);
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.30);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}What is the CSS Glassmorphism Generator?
The CSS Glassmorphism Generator recreates the popular frosted-glass look with backdrop-filter. Adjust the blur amount, background transparency, tint color, border and corner radius, and see a glass card render live over a colorful gradient backdrop so you can judge legibility.
- Blur, transparency and tint controls
- Border and radius adjustment
- Live preview over a gradient backdrop
- Includes -webkit-backdrop-filter prefix
- Copy-ready glassmorphism CSS
- Fully client-side and free
How to use the CSS Glassmorphism Generator
- 1
Set the blur amount for the frosted-glass effect.
- 2
Adjust the background transparency and tint color.
- 3
Tune the border and corner radius.
- 4
Copy the generated CSS, including backdrop-filter, into your project.
About the CSS Glassmorphism Generator
The CSS Glassmorphism Generator recreates the popular frosted-glass look with backdrop-filter. Adjust the blur amount, background transparency, tint color, border and corner radius, and see a glass card render live over a colorful gradient backdrop so you can judge legibility.
It is ideal for modern hero cards, navigation bars and overlays. The generator writes the complete rule including the -webkit-backdrop-filter prefix so the effect works across browsers.
Everything is computed locally in your browser — no uploads, no account, offline-ready.
Frequently asked questions
What is glassmorphism in web design?
Glassmorphism is a style that mimics frosted glass: a semi-transparent surface with a background blur, a subtle border and a soft shadow. It creates a sense of depth and layering, popularized by macOS and Windows interfaces.
How does backdrop-filter create the glass effect?
backdrop-filter applies graphical effects like blur() to the area behind an element rather than the element itself. Combined with a semi-transparent background color, the blurred content behind the card produces the frosted look.
Does backdrop-filter work in all browsers?
It works in all modern browsers, though Safari needs the -webkit-backdrop-filter prefix, which this tool includes automatically. Very old browsers ignore it and simply show the semi-transparent background instead.
Why is my glassmorphism effect not blurring?
backdrop-filter only blurs content that is actually behind the element, so there must be something (an image or gradient) behind it, and the element's background must be semi-transparent. A fully opaque background hides the blur.
Is glassmorphism accessible?
It can reduce text contrast, so keep the background tint opaque enough and test contrast against the busiest part of the backdrop. Add a solid fallback color for browsers that do not support backdrop-filter.
Guides for CSS Glassmorphism Generator
Related tools
CSS Box Shadow Generator
Make CSS box shadows online with offset, blur, spread, color and opacity controls. Stack multiple shadow layers, preview live and copy the box-shadow code.
CSS Button Generator
Design CSS buttons with background, text color, padding, radius, font size, border, shadow and a hover color. Live preview and copy-ready CSS including :hover.
CSS Gradient Generator
Build production-ready CSS gradients with a fallback color, preset gallery and live preview. Copy clean background-image code straight into your site.
CSS Border Radius Generator
Design rounded corners visually with per-corner sliders and a live preview box. Copy modern border-radius CSS, including fancy 8-value organic blob shapes.