Free Online CSS Glassmorphism Generator, Frosted Glass Panels
Set the panel background alpha, the backdrop-filter blur and saturation, the border colour and the radius, then read the finished rule with the -webkit- line included. The preview sits on a busy backdrop drawn entirely in CSS, so you can see what the blur is really doing instead of guessing.
The shapes and colours behind this card are drawn in CSS. Turn the backdrop off to see how much of the effect was borrowed from them.
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
A fallback for browsers without backdrop-filter
The panel should still be readable when the blur is ignored.
If backdrop-filter is not supported, the declaration is dropped and
your panel keeps only its background colour. At an alpha of 0.1 that leaves white text on
whatever happens to be behind it, which can be unreadable. Guard the transparent version
behind a feature query and make the default opaque enough to stand on its own:
.glass{
background: rgba(255, 255, 255, .78); /* readable with no blur */
border: 1px solid rgba(255, 255, 255, .5);
border-radius: 16px;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
.glass{
background: rgba(255, 255, 255, .14);
-webkit-backdrop-filter: blur(12px) saturate(140%);
backdrop-filter: blur(12px) saturate(140%);
}
}
The feature query names both spellings, because Safari
supports the prefixed property and older Safari versions do not recognise the unprefixed one
at all. This page writes the two declarations for you, but it does not write the
@supports wrapper, so add it yourself if the opaque fallback matters to you.
How to Build a Frosted Glass Panel in CSS
A few steps, and nothing is uploaded.
What to Know About backdrop-filter
Including what it costs and when it shows nothing at all.
Key Features & Capabilities
What this tool does, and what it deliberately does not.
About the CSS Glassmorphism Generator
Glassmorphism is a small stack of properties rather than one: a background colour with a low alpha, a backdrop-filter that blurs and re-saturates whatever is behind the element, a pale hairline border, a generous radius and a soft shadow. Take any one of those away and the panel stops looking like glass. Get the alpha wrong and it looks like a grey box; get the border wrong and it looks like a hole cut in the page.
The hard part of building a generator for this was the preview. A frosted panel shown over a flat background is meaningless, because there is nothing for the blur to act on, so the preview here is painted on a deliberately noisy backdrop made from four overlapping radial gradients, a ring, a triangle and a set of diagonal stripes. All of it is CSS, so no image is fetched, and the blur you see is the browser blurring real pixels rather than a picture of the effect.
The output is a plain block of declarations. Both -webkit-backdrop-filter and backdrop-filter are written, because Safari has needed the prefix for a long time and still accepts it. There is a switch to wrap the rule in a class selector or to hand you the declarations bare, and nothing is minified. What the tool will not do is decide for you whether a blurred panel is worth its paint cost on the page you are building; the note above is as far as it goes.
Frequently Asked Questions
Alpha, blur radius, Safari, performance and fallbacks.
backdrop-filter blurs the content underneath the element, so on a flat white or flat dark page there is no detail to blur and all you see is the background colour at its alpha. Put a photograph, a gradient or some overlapping shapes behind the panel, or accept that the effect will not read on that layout.-webkit-backdrop-filter years before the unprefixed property, and prefixed-only versions are still in use on older iOS devices that people do not update. The prefixed line goes first and the standard line second, so modern browsers use the standard one and nothing is lost by having both.@supports query that tests both spellings of the property. The section above shows that wrapper; the generator itself outputs the declarations without it.Every Other Developer Tool
88 more tools in this set. All free, all in your browser.