Glassmorphism CSS Generator

Design a frosted-glass card with backdrop blur, saturation, fill colour, border and shadow, preview it over a colourful background and copy the CSS.

Design & CSS Runs in your browser · no upload

Reviewed 23 November 2026 · Free · No account needed

ExecutionYour browserInput never leaves your tab
File retentionNoneNothing is stored
AccountNot requiredNo sign-up, no paywall
PriceFreeNo trial, no usage cap on the tool itself

How to use

  1. Start from a preset such as Frosted light or Smoked dark, or set your own values.
  2. Drag the backdrop blur, saturation, fill opacity, border opacity and corner radius sliders and watch the card change.
  3. Pick the fill colour and turn the soft drop shadow on or off.
  4. Press Copy CSS and paste it into your stylesheet, on an element that sits over an image or a gradient.

Example

Input: Blur 12px, saturation 150%, white fill at 20%

Output: backdrop-filter: blur(12px) saturate(150%); background: rgba(255, 255, 255, 0.2);

How it works

A glass panel combines three things: a translucent background, a backdrop-filter that blurs and boosts whatever is behind the element, and a light border that suggests an edge. The tool builds those declarations from your sliders and shows them on a card over a colourful scene.

background: rgba(fill colour, opacity). backdrop-filter: blur(Npx) saturate(N%). The same filter is written again with the -webkit- prefix. border: 1px solid rgba(255, 255, 255, border opacity). box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2).

Limits and edge cases

  • The glass effect needs something behind the element to blur, such as an image or a gradient. On a flat colour it only looks like a tinted panel.
  • Blur goes up to 40 px, saturation from 100 to 200 percent, opacity from 0 to 100 percent and the radius up to 60 px.
  • The border is always a 1 px white line at the opacity you set. The shadow is one fixed soft shadow that you can switch off.
  • Readable text is your job. Low fill opacity lets busy backgrounds through, so check the contrast of your own text.
  • Saturation at 100 percent is left out of the filter, since it changes nothing.
  • backdrop-filter only blurs what is behind the element, so a parent with its own opaque background hides the effect.
  • Where backdrop-filter is not supported, the translucent fill still shows, so give the fill enough opacity to stay readable, or add an @supports rule with a more solid fallback.
  • Blurring large areas or many elements at once can slow older and low-power devices.

Privacy

Everything is generated in this browser tab. Nothing you set is sent to a server or stored.

About this page

Written and reviewed by Toolnexo on 23 November 2026. The limits above describe the published tool, not an idealised version of it. If a result looks wrong or the page is unclear, email [email protected] with the tool URL and what you entered. Corrections are published here.

Further reading

Guides that use Glassmorphism CSS Generator

All guides →

Related tools

FAQ

Questions about Glassmorphism CSS Generator

What is glassmorphism?

Glassmorphism is a design style that makes panels look like frosted glass: a translucent fill, a blur of whatever sits behind the panel, a thin light border and a soft shadow. It works best over colourful images or gradients.

Which CSS property makes the blur?

backdrop-filter. It applies a filter such as blur() to the area behind the element, not to the element itself. This is different from filter: blur(), which blurs the element and its content.

Why are there two backdrop-filter lines?

Some Safari versions need the -webkit- prefix, so the tool writes both. Browsers that understand the unprefixed line use it and ignore the other.

Does it work in every browser?

backdrop-filter works in the current versions of the major browsers. In an older browser the effect is missing but the translucent fill remains, so choose a fill that is readable on its own, or add an @supports fallback.

How do I keep the text readable?

Raise the fill opacity or the blur, use a darker or lighter fill to match your text colour, and test the contrast against the busiest part of the background. The colour contrast checker on this site can measure it.

Is anything uploaded?

No. The CSS is built in your browser from the options you pick, and nothing is sent anywhere.