Skip to content
M2TOOLKIT

Glassmorphism CSS Generator

Design a frosted-glass effect and copy the CSS.

Use it as often as you like — it's free, with no sign-up and no limits.

  • Design
  • Free
  • No sign-up
  • Nothing is sent or stored
  • Updated
14px
22%
160%
30%
20px
Glass cardFrosted preview

The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved.

How to use the Glassmorphism CSS Generator

  1. Adjust blur, transparency, saturation and border.
  2. Pick a tint colour and corner radius.
  3. Copy the CSS into your stylesheet.

What does this tool do?

Glassmorphism uses a semi-transparent background with backdrop-filter: blur() so whatever is behind the element shows through softly, like frosted glass. A faint light border sells the effect.

The CSS includes the -webkit- prefix for Safari. It works best over colourful backgrounds or images.

Why use it?

  • Live preview.
  • Safari-ready CSS.
  • Tint and saturation control.

Use cases

  • Hero cards and sign-up panels on landing pages.
  • Overlays on photos and video backgrounds.
  • Dashboard widgets with a modern, layered look.

The core of the effect

background: rgba(255, 255, 255, 0.15);

backdrop-filter: blur(12px) saturate(160%);

border: 1px solid rgba(255, 255, 255, 0.3);

Put it over a colourful gradient or photo — over a plain background there's nothing to blur.

Common mistakes

  • Low text contrast on a see-through background — check readability over the busiest part of the image.
  • Stacking many blurred layers, which can slow down phones.
  • Forgetting a solid fallback colour for browsers without backdrop-filter.

Accuracy and limits

  • Check text contrast on glass surfaces — light text on a pale blurred background can be hard to read.

Privacy

The calculation happens instantly in your browser. The numbers you enter are not sent to our servers or saved. There's no account to create and nothing to install.

Frequently asked questions

Does it work in Safari?

Yes — the CSS includes the -webkit-backdrop-filter prefix.

Why can't I see the blur?

Something colourful has to be behind the element; the blur only affects what shows through.

How much blur looks good?

Usually 8–20 px. More than that turns the background into a flat wash.

Content last updated . See how M2Toolkit works.

Other tools people use alongside the glassmorphism css generator.