Glassmorphism CSS Generator

Design a frosted-glass card the modern way. Adjust blur, transparency, saturation, border, and shadow, preview it live over vivid backgrounds, and copy ready-to-test backdrop-filter CSS.

Glass Settings

12px
0.18
160%
#ffffff
16px

Border & Shadow

0.30

Card Text Color

#ffffff
🧊 Glassmorphism Frosted glass, pure CSS

Background

CSS Code

Glassmorphism in CSS: The Complete Guide

Glassmorphism is the frosted-glass UI style popularised by macOS Big Sur and Windows 11 Acrylic. A panel looks like translucent, blurred glass floating above a colourful background, with a faint light border catching the edge. The whole effect is achieved in CSS with just a few properties β€” most importantly backdrop-filter.

The Five Ingredients of Good Glass

Why backdrop-filter Needs a Background Behind It

Unlike a normal filter, which blurs the element's own content, backdrop-filter blurs the pixels behind the element. That means glassmorphism only looks like glass when there's something colourful or detailed behind the card β€” a gradient, a photo, or overlapping shapes. Over a flat white page it just looks slightly grey. This generator gives you several vivid backgrounds (and an image upload) so you can see the effect against sample backgrounds before testing your real page.

Accessibility & Performance Notes

Text on glass can fail contrast checks because the background shows through. Keep body text on a sufficiently opaque area, or pair light text with a darker tint. backdrop-filter can be costly; acceleration depends on browser and device β€” avoid animating it or stacking many glass layers on low-end devices. For older browsers, always declare a fallback solid or semi-transparent background so the panel stays readable even when the blur isn't supported.

Browser Support

Current major browsers support backdrop-filter, but version support and rendering vary. The generated CSS includes a -webkit- prefix for older Safari versions. Keep a readable fallback and test the actual target devices.

Frequently Asked Questions

Glassmorphism is a UI style where panels look like frosted, translucent glass floating over a colourful background. It's built in CSS using a semi-transparent fill plus backdrop-filter: blur() and a light border.
backdrop-filter blurs whatever is behind the element, so you need a colourful or detailed background for the glass to show. Over a plain white page it just looks dull. Try one of the preview backgrounds here to confirm.
Current browsers broadly support backdrop-filter; older versions, including older Safari, can need a prefix or fallback. The generator outputs both forms, but this does not make the effect work everywhere. Test target versions and retain a readable non-blurred fallback.
It can be, with care. Because the background shows through, text contrast can drop below WCAG limits. Lower the transparency, use a darker tint, or keep important text on a more opaque region to stay readable.
The selected preview image is processed locally rather than uploaded. Page resources may use the network; this does not guarantee confidentiality on the device.