Glassmorphism Generator
A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call
Free glassmorphism generator. Make a frosted glass effect with backdrop blur, transparency, saturation and a light border, preview it live and copy the CSS.
Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.
How to use the glassmorphism generator
- Pick a glass colour. White is the classic frosted look; tinted colours work too.
- Adjust the sliders: blur, transparency, saturation, border opacity and corner radius.
- Toggle the soft shadow and switch between background scenes to see how the glass looks over different colours.
- Copy the CSS.
The glassmorphism generator shows a live frosted-glass card over a colourful background and writes the CSS, including the -webkit- prefix Safari needs.
What glassmorphism is
Glassmorphism is a design style that makes panels look like frosted glass: semi-transparent, with whatever is behind them blurred, a thin light border and a soft shadow. It became popular through operating system interfaces and is widely used for cards, navigation bars, modals and overlays on top of images or gradients.
It works because it keeps a sense of depth and context (you can still see colour and shape behind the panel) while making the content on top readable.
The CSS behind it
background: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.3);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
- background: a semi-transparent colour. Lower opacity means clearer glass.
- backdrop-filter: blur(): blurs everything behind the element. This is the key to the effect.
- saturate(): boosts the colours behind the glass, which makes it feel richer and more vivid.
- border: a faint light edge, like light catching the edge of glass.
- border-radius and box-shadow: soften the shape and lift it off the page. The border radius generator and box shadow generator fine-tune them.
Choosing the settings
- Blur 8 to 20 px suits most designs. Less looks like clear plastic; much more looks like a solid sheet.
- Transparency 10% to 30% for white glass over colourful backgrounds. Over busy photos, go higher for readability.
- Saturation 120% to 200% adds vibrancy. Leave it at 100% for a neutral look.
- Border 20% to 40% gives a subtle edge.
It needs something behind it
Glassmorphism only works over a background with colour and shape: a gradient, a photo, blurred blobs or other content. Over a flat white page, the glass is invisible. That's why the glassmorphism generator shows the card over colourful scenes. For a gradient background, the CSS gradient generator helps.
Readability and accessibility
The biggest risk with glass effects is text that's hard to read:
- Check contrast for text on the glass against the lightest and darkest parts of what's behind it. The color contrast checker helps.
- Increase opacity where text sits over busy images.
- Use glass for containers, not for text itself.
- Respect reduced transparency: some users turn on "reduce transparency" in their operating system. You can provide a solid fallback:
@media (prefers-reduced-transparency: reduce) {
.glass { background: rgba(255, 255, 255, 0.9); backdrop-filter: none; }
}
Browser support and fallbacks
backdrop-filter is supported by current versions of Chrome, Edge, Firefox and Safari. Safari needs the -webkit-backdrop-filter version, which the glassmorphism generator includes. For older browsers, use a more opaque background as a fallback:
.glass { background: rgba(255, 255, 255, 0.7); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
.glass { background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
Performance
Blurring what's behind an element is more work for the browser than a plain background, especially over video or while scrolling. Use glass for a few key panels rather than dozens of elements, and test on mid-range phones.
Dark glass
Glass doesn't have to be white. A dark tint, such as rgba(20, 20, 30, 0.35) with a light border, makes elegant panels for dark themes and overlays on photos. Pick a dark glass colour and raise the transparency slider.
Tips
- Keep it to a few elements: navigation, a hero card, a modal.
- Layer content: glass looks best with depth, colourful shapes behind and crisp content on top.
- Match the corner radius across glass elements.
- Combine with subtle animation of the background for a lively feel, sparingly.
Privacy and accuracy
Everything happens in your browser. Nothing is uploaded. The glassmorphism generator writes standard CSS, including the Safari prefix, that matches the preview, with no AI involved. Designers, developers and students use it free on any device.
Glassmorphism vs neumorphism
Two design trends are often mentioned together:
- Glassmorphism uses transparency and background blur, so panels look like frosted glass over colourful content.
- Neumorphism uses soft light and dark shadows on a background of the same colour, so elements look pressed out of or into the surface.
Glassmorphism generally has better contrast and accessibility than neumorphism, which is one reason it has lasted longer in real interfaces. For shadow-based effects, the box shadow generator is the place to start.
Glass navigation bars
A popular use is a sticky header that blurs the page scrolling underneath it:
header { position: sticky; top: 0; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
Use a higher opacity for headers than for decorative cards, because navigation text must always be readable over whatever scrolls behind it.
Building a glass card step by step
- Start with a colourful background: a gradient, photo or shapes.
- Add a card with padding and a corner radius.
- Use the glassmorphism generator to set blur, transparency and saturation.
- Add a faint border and soft shadow.
- Check text contrast, and add a solid fallback for reduced transparency.
Tinted glass for brands
White glass is the default, but tinted glass in a brand colour at low opacity can tie a design together. Pick the colour in the glassmorphism generator and keep transparency between 10% and 25%, so the background still shows through.
Quick reference
- backdrop-filter: applies effects such as blur to what's behind an element.
- -webkit-backdrop-filter: the version Safari needs.
- rgba(): a colour with transparency (the last number, 0 to 1).
- saturate(): boosts or reduces colour intensity behind the glass.
- @supports: applies CSS only if the browser supports a feature.
Starting values
| Style | Blur | Transparency | Saturation | Border |
|---|---|---|---|---|
| Light frost | 8px | 15% | 120% | 20% |
| Classic glass | 12px | 20% | 180% | 30% |
| Heavy frost | 20px | 35% | 150% | 40% |
| Dark glass | 14px | 35% (dark colour) | 140% | 15% |
Enter any row into the glassmorphism generator as a starting point, then adjust to your background.
When not to use glass
Glass works best as an accent. Avoid it for long blocks of reading text, data-heavy tables, forms with many fields and anything that must be readable in bright sunlight on a phone. In those places, a solid or nearly solid background is kinder to readers. Use the glassmorphism generator for hero cards, overlays, navigation and highlights, and keep the rest of the interface simple and solid, so the glass effect stands out where you've chosen to use it.
Test on real devices
Backdrop blur can look different across browsers and screens, and some lower-powered phones render it more slowly. Before launch, open your page on a few real devices, scroll through sections with glass panels, and check both the look and the smoothness. If anything stutters, reduce the blur radius slightly or use glass on fewer elements. The CSS from the glassmorphism generator is a starting point to adjust from, not a fixed recipe.
Colour of the glass
A white glass card suits colourful or dark scenes; a dark tint suits bright photos. Try both in the preview, with your real background, before choosing.
A worked example
A fitness app's landing page has a vivid orange-to-purple gradient hero with a phone mockup. The designer wants a sign-up card floating over it. In the glassmorphism generator, she keeps the white glass, sets blur to 12 px, transparency to 20%, saturation to 180%, border to 30% and radius to 16 px, with the soft shadow on.
The CSS matches the example above. On the live page the gradient glows through the card, and the white text and button stay readable. For users with "reduce transparency" turned on, she adds the solid fallback, and checks the button text contrast passes.
Need more customers from Google?
This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit is a Google Ads agency that does PPC and nothing else: we build the campaigns, block the searches that waste money, write the ads, set up conversion tracking and send you a short report every week. Request a free PPC audit and we will show you, in dollars, what we would fix first.
Frequently asked questions
How do I make a glass effect in CSS?
Use a semi-transparent background with backdrop-filter: blur(), plus a light border and shadow. The glassmorphism generator writes it for you.
Why doesn't my glass effect show?
There needs to be colourful content behind the element, and the background must be partly transparent.
Does backdrop-filter work in Safari?
Yes, with the -webkit-backdrop-filter prefix, which the generator includes.
Is glassmorphism bad for accessibility?
Not if text contrast is checked and a solid fallback is provided for people who reduce transparency.
Does glassmorphism slow pages down?
A few glass elements are fine. Many, or glass over video, can be heavy on older devices.
Is the glassmorphism generator free?
Yes, completely free, with no sign-up.
Free PPC audit
See where your ad budget leaks.
We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.