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.
How to Use CSS Glassmorphism Generator
Step by step, start to finish.
Pick the panel colour, then drag the alpha down until the backdrop starts to show through. Around 0.1 to 0.2 is where glass usually sits; above 0.4 it reads as a tinted card instead.
Blur is the effect. Saturate pushes the colours behind the panel back up, because a heavy blur averages them into something washed out.
A thin light border and an optional inner highlight are what make the panel read as a pane of glass rather than a hole. The drop shadow lifts it off the backdrop.
The output carries both the prefixed and unprefixed backdrop-filter lines, in that order. Turn the backdrop switch off first to check the panel still works when there is nothing behind it.
Key Features
What this tool does, and what it does not do.
Both backdrop-filter functions, with the values written out in full.
Tint colour and alpha as separate controls, output as rgba.
Overlapping gradients and hard-edged shapes, all drawn in CSS.
Border width and colour with its own alpha, radius, drop shadow, inner highlight.
The -webkit- line and the standard line, in the order that works.
No image is loaded and nothing is sent anywhere. Works offline.
About 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. A short note under the controls reminds you that a blurred backdrop is repainted as the page scrolls, so you can weigh that cost against the look on the page you are building.
Frequently Asked Questions
Common questions about this tool.
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 and the frosting shows up straight away. The preview's busy backdrop switch lets you compare both cases.-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 ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))). A browser without the property skips the query and keeps the solid background, so text stays legible. Paste the generated declarations inside that query; the generator writes them bare so you can place them wherever you need.More Developer Tools
Other tools from the same hub, free and in your browser.
Feedback
No feedback on this tool yet. Yours would be the first.