CSS glassmorphism generator

Glassmorphism is a frosted-glass UI style made with a semi-transparent background and a backdrop blur, for example background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(12px). Adjust blur, tint and opacity below and copy the CSS.

Design frosted glass UI cards with real-time blur, tint, opacity, and saturation, then copy production-ready CSS.

How to use the glassmorphism generator

  1. Adjust the backdrop blur and saturation sliders to set the glass intensity and vibrancy.
  2. Set background opacity, tint colour (HEX), and border opacity to match your surface aesthetic.
  3. Toggle between background previews to check contrast against different lighting environments, then click Copy CSS.
Preview background
Live PreviewCSS Frost

Glassmorphic Card

Adjust blur, tint, opacity, and saturation in real time to create frosted glass interfaces that stand out.

backdrop-filter16px blur

Generated CSS

background: rgba(255, 255, 255, 0.25);
backdrop-filter: blur(16px) saturate(150%);
-webkit-backdrop-filter: blur(16px) saturate(150%);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 16px;

Browser support and fallback backgrounds

The backdrop-filter CSS property applies graphical effects such as blurring or colour shifting to the area behind an element. Modern releases of Chrome, Edge, Safari, and Firefox support backdrop-filter. Apple Safari and iOS WebKit require the -webkit-backdrop-filter vendor prefix.

Why a fallback is essential: In older browsers or environments where background filters fail to compute, an element with low opacity can leave text unreadable against high-contrast backgrounds. Always define an opaque or semi-opaque fallback background colour, or wrap enhanced translucency rules inside a @supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) block so all visitors experience legible UI.

Copy-ready glassmorphism examples

Subtle frosted navigation bar

background: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(12px) saturate(140%);
-webkit-backdrop-filter: blur(12px) saturate(140%);
border: 1px solid rgba(255, 255, 255, 0.25);
border-radius: 12px;

Vibrant floating dialog

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.35);
border-radius: 20px;

Dark mode HUD panel

background: rgba(15, 23, 42, 0.65);
backdrop-filter: blur(16px) saturate(150%);
-webkit-backdrop-filter: blur(16px) saturate(150%);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 16px;

Study glassmorphism on real interfaces

Explore how production SaaS products and mobile interfaces use frosted surfaces, translucent navigation bars, and layered dialogs.

Frequently asked questions

Which browsers support backdrop-filter?

According to MDN and browser specifications, backdrop-filter is supported in modern versions of Chromium browsers (Chrome, Edge), Firefox, and Apple Safari (which requires the -webkit-backdrop-filter vendor prefix). Always provide both backdrop-filter and -webkit-backdrop-filter declarations to ensure compatibility across Safari and iOS WebKit.

Why is a fallback background color necessary?

If a user's browser does not support backdrop-filter, or if the user enables reduced transparency settings in their operating system accessibility preferences, the backdrop blur will not render. Without a fallback background, semi-transparent text may become unreadable over background content. Providing a solid or semi-opaque background color guarantees legibility.

How do I provide a fallback with @supports?

You can set a solid or higher-opacity background by default, and enhance it using @supports (backdrop-filter: blur(1px)) or @supports (-webkit-backdrop-filter: blur(1px)) to apply frosted translucency only on supported devices.

Does glassmorphism impact scrolling performance?

Yes, large blur radii across many elements or large viewports require real-time GPU compositing on scroll. Use backdrop blur judiciously on persistent overlays such as headers, navigation bars, and modals rather than repeated list cards.

More CSS generators

Color tools

Image tools

Image & SVG tools

Typography & units

More free tools

All free tools