Glassmorphism Generator

Design a frosted glass card with live controls, then copy the CSS or Tailwind classes.

Pro plan$24/moUnlimited projects, priority support and custom domains.
CSS
background: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(16px) saturate(160%);
-webkit-backdrop-filter: blur(16px) saturate(160%);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 16px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
Tailwind
bg-[#FFFFFF]/20 backdrop-blur-[16px] backdrop-saturate-[1.6] border border-white/30 rounded-[16px] shadow-[0_8px_32px_rgba(0,0,0,0.12)]

How the glass effect works

Glassmorphism stacks three things on one element:

  • A see-through background. A tint between 10% and 30% lets the color behind show through.
  • A backdrop blur. backdrop-filter: blur() blurs whatever sits behind the element, which is what makes it look frosted. Adding saturate() keeps the colors from looking washed out.
  • A light edge. A 1px white border at low opacity catches the eye like the edge of real glass.

The effect needs something to blur. Put glass panels over gradients, photos or bold shapes. On a plain white page it just looks gray.

Questions

How do I make a glass effect in CSS?

Give the element a semi-transparent background, like rgba(255, 255, 255, 0.2), and add backdrop-filter: blur(16px). The blur only shows when there's something colorful behind the element. A thin light border makes the edge read as glass.

How do I do glassmorphism in Tailwind?

Combine a background with opacity, like bg-white/20, with backdrop-blur-md and a light border such as border border-white/30. The generator above writes the exact classes for your settings.

Does backdrop-filter work in every browser?

Yes, all current browsers support it. Safari needed the -webkit-backdrop-filter prefix until version 18, so the CSS output includes both.

Is the glass effect bad for performance?

Blurring what's behind an element costs more than a plain background, especially over video or while scrolling. One or two glass panels are fine. Dozens of them, or very high blur values on large areas, can make scrolling choppy on slower phones.

Is text on glass accessible?

It can fail contrast checks, because the background changes with whatever is behind it. Use a stronger tint, more blur or a darker scene so text stays readable at 4.5:1 or better.

More free tools

Landings
Landing Page Examples
Copyright © 2026. All rights reserved.