Glassmorphism CSS Generator

Create a frosted-glass card with blur and transparency, preview it on a colorful background, and copy the CSS.

FreeNo sign-upPrivate — runs in your browser
Glass cardFrosted glass effect made with backdrop-filter.MagikNex

Background

CSS

  

backdrop-filter works in all current browsers. The -webkit- line is for Safari.

How to use the Glassmorphism Generator

  1. Set the glassAdjust the blur, fill transparency, saturation and border to get the frosted look you want.
  2. Check it on a backgroundGlass only shows over something colorful. Switch backgrounds to test it.
  3. Copy the CSSCopy the code and add it to an element that sits over an image or gradient.

Example

The default card uses background: rgba(255, 255, 255, 0.18); with backdrop-filter: blur(14px) saturate(160%); and a 35% white border.

Lower the fill to about 10% for clearer glass, or raise the blur to 25px for a heavier frosted look.

Frequently asked questions

What is glassmorphism?

It is a design style where cards look like frosted glass: semi-transparent, with the background blurred behind them, a thin light border and a soft shadow. It became popular with macOS Big Sur and Windows 11.

Why does my glass card not look blurred?

backdrop-filter blurs only what is behind the element. Put the card over an image, gradient or other content, and make sure its background is partly transparent.

Does backdrop-filter work in all browsers?

Yes, in all current versions of Chrome, Edge, Firefox and Safari. Safari still needs the -webkit-backdrop-filter line, which the code includes.

Is glassmorphism accessible?

It can be hard to read. Keep enough contrast between the text and the blurred background, and test with the busiest image your design will use.

Popular posts from this blog

Character Counter

Speech to Text Online

Keyboard Tester