Presets
Glass card
Content stays readable on a busy background.
Your image stays in this browser tab. It is not uploaded.
.glass {
background: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(16px) saturate(180%);
-webkit-backdrop-filter: blur(16px) saturate(180%);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 16px;
}
/* Browsers without backdrop-filter get a more solid panel */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
.glass {
background: rgba(255, 255, 255, 0.75);
}
}A thin inner light line, as on liquid glass
How to use
Choose a preset and backdrop
Click a preset such as Dark glass, Navbar or Liquid glass. Pick a preview background, a solid color or Your image, and switch the sample between card, navbar, button and login form.
Adjust the glass
Set the Tint color, Blur, Tint opacity, Saturate, Border width and opacity, Radius, Drop shadow and Edge highlight. The panel updates as you move each slider.
Copy the code
Copy the CSS with the -webkit- line and the optional @supports fallback, the Tailwind classes or the SCSS mixin. Copy share link saves the settings in a URL.
Why CSS Glassmorphism Generator
- Tint, blur, saturation, border, radius, shadow and edge highlight in one panel.
- Eight presets, including dark glass, a navbar and a liquid glass style.
- Preview on built-in backgrounds or your own image, as a card, navbar, button or form.
- CSS with -webkit- and @supports fallback, Tailwind classes and an SCSS mixin.
Fallback CSS for browsers without backdrop-filter
When backdrop-filter is not supported, the panel keeps its semi-transparent background but loses the blur. Text on top can then become hard to read. A feature query lets you give those browsers a more solid background instead.
Wrap the fallback in @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) and inside it set a higher opacity for the same class, for example .glass { background: rgba(255, 255, 255, 0.85); }. Browsers that support the blur skip the block, and the rest get a panel that stays readable. The tool adds this block for you when the @supports fallback switch is on.
A few more practical points:
- backdrop-filter only blurs content behind the element, so the panel must be see-through: keep background opacity well below 100 percent.
- A parent with overflow: hidden and border-radius can clip the blur at the edges, which is usually what you want for cards.
- Large blurred areas, such as a full-width sticky navbar, cost more to draw while scrolling on low-end phones. Test on a real device.