Home/Tools/Effects/Glassmorphism Generator
Effects · Generator

Glassmorphism Generator

Create stunning frosted glass effects with customizable blur, transparency, and borders.

Glass Effect

20px
0.2
180%

Border & Shape

0.3
24px

Preview

Glass Card

Beautiful glassmorphism effect with customizable blur, opacity, and border.

Generated CSS
background: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 24px;
100%
Free, no
sign-up needed
0
Code written
by hand
85+
CSS tools
in one place
<1s
Copy-ready
CSS instantly
What is this

What is the Glassmorphism Generator?

Generate frosted-glass CSS effects using backdrop-filter and background transparency. Preview against coloured backgrounds and copy the complete ruleset.

Everything runs locally in your browser. Adjust the controls above, preview instantly, and copy clean, production-ready CSS — no account, no upload.

How to use

Using the Glassmorphism Generator

Everything lives in the panel at the top of this page. There is nothing to install — it all runs right here in your browser.

1

Set blur and background opacity

Adjust backdrop-filter blur (8-24px is typical) and the background-color alpha (0.1-0.25 for light glass). Higher blur needs less background opacity.

2

Add border and shadow

A subtle white border (rgba(255,255,255,0.2)) and a soft box-shadow complete the frosted-glass look.

3

Preview and copy

Toggle between different background colours to verify the effect works. Click Copy to grab the full CSS ruleset.

The output

What the generated code looks like

Clean, production-ready CSS — no vendor bloat, no unnecessary declarations.

styles.css
.glass-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Dark glass variant */
.glass-dark {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

Glassmorphism only looks correct on colourful or image backgrounds. It looks broken on plain white or grey backgrounds.

Pro tips

Pro tips for better results

backdrop-filter only works on elements with a transparent background

The background-color must have transparency (rgba with alpha less than 1) for backdrop-filter to be visible. A fully opaque background blocks the effect.

Always include -webkit-backdrop-filter

Safari requires the -webkit- prefix for backdrop-filter. Include both -webkit-backdrop-filter and backdrop-filter for full coverage.

Glassmorphism requires a colourful background

The effect looks broken on white or single-colour backgrounds. It works on photographs, gradients, and multi-layer designs.

Blur values above 24px can impact performance

backdrop-filter is GPU-intensive. High blur values on large elements can cause dropped frames on mobile devices. Test on mid-range hardware before shipping.

FAQ

Frequently asked questions

Chrome 76+, Edge 17+, and Safari 9+ support backdrop-filter. The -webkit- prefix is required for Safari. Firefox added support in version 103 (2022). For older Firefox, use a semi-opaque fallback background.
The element behind the glass must have visible colour or texture. If the background is plain white or solid grey, the blur effect is invisible. Glassmorphism only reads correctly against colourful backgrounds.
No. Everything runs in your browser. Nothing is sent to a server.

From the blog

Read more