Skip to main content
WizTools123
Free Online Tools

Tool Categories


Developer Tools New Tool

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.

Free Forever Nothing Uploaded Blur, saturate, border, radius Runs in your browser
Free Online CSS Glassmorphism Generator, Frosted Glass Panels
Share this tool
CSS Glassmorphism Generator Everything happens in this tab. Nothing you paste is sent anywhere.
Preview
Frosted panel

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.

CSS
Glass 0.14 12px 140%
Edge 1px 0.30 16px
Shadow 8px 32px 0.30
Backdrop

A blurred backdrop is repainted as the page scrolls. Keep the count of glass panels small.

Buy Us A Coffee

Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.

Buy Us A Coffee

How to Use CSS Glassmorphism Generator

Step by step, start to finish.

1
Set the tint and alpha

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.

2
Dial in the blur

Blur is the effect. Saturate pushes the colours behind the panel back up, because a heavy blur averages them into something washed out.

3
Add the edge and shadow

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.

4
Copy the rule

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.

Blur and saturate

Both backdrop-filter functions, with the values written out in full.

Alpha you can feel

Tint colour and alpha as separate controls, output as rgba.

A backdrop worth blurring

Overlapping gradients and hard-edged shapes, all drawn in CSS.

Edge and shadow

Border width and colour with its own alpha, radius, drop shadow, inner highlight.

Both spellings

The -webkit- line and the standard line, in the order that works.

Runs in your browser

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.

Almost always because there is nothing behind it. 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.

For Safari, yes, keep it. Safari shipped -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.

It is one of the more expensive things in CSS. The browser samples the region behind the element, blurs it, and must redo that work whenever the pixels underneath change, which on a scrolling page means constantly. One sticky header or one modal overlay is normally fine. A grid of glass cards in a long list is where phones start dropping frames, and reducing the blur radius helps less than reducing the number of blurred elements.

Give the panel a fairly opaque background as the default, then lower the alpha only inside a feature query such as @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.

Yes, by matching the numbers. The generator works from the sliders to the CSS, so read the blur radius, alpha, border width and radius off your old rule, set the same values here, and the preview shows that panel. From there you can adjust it and copy the new output.

More Developer Tools

Other tools from the same hub, free and in your browser.

All Developer Tools

Feedback

No feedback on this tool yet. Yours would be the first.