Skip to content
Test versionSearch

Developer tools

CSS glassmorphism generator

Generate CSS for a glassmorphism panel from an RGBA background, blur of 0 to 30 px, corner radius and an optional white border, with a preview.

How it worksFAQRelated tools

Content reviewed:

The example values can be changed. Press Calculate to update the result; you can download it as TXT or CSV and collect scenarios in this tab. Nothing is saved or sent automatically.

The frosted effect needs backdrop-filter; browsers that do not support it show the semi-transparent background only. Check that text on the panel still has enough contrast over your real background image. The preview depends on your browser, so check the result on your own page. Copy the code or download it as TXT or CSV; JSON and printable HTML files also keep your inputs. Nothing is saved or sent automatically and entered addresses are never opened.

Decimal results are approximate. Inputs stay in this browser tab.

How it works

Your values are checked against the allowed ranges and written as a single CSS rule. The frosted effect needs backdrop-filter; browsers that do not support it show the semi-transparent background only. Check that text on the panel still has enough contrast over your real background image. The preview depends on your browser, so check the result on your own page. Copy the code or download it as TXT or CSV; JSON and printable HTML files also keep your inputs. Nothing is saved or sent automatically and entered addresses are never opened.

Worked example

With these example values the calculator gives the result below. You can change any value in the form above.

Inputs

Backdrop blur: 0–30px
10
Radius: 0–100px
20
Opaque hex colour
#2979FF
Alpha: 0–1
0.5
Fixed border
White alpha border

Result

CSS background
background-color: rgba(41, 121, 255, 0.5);
CSS backdrop filter
backdrop-filter: blur(10px);
CSS corner radii
border-radius: 20px;
CSS border
border: 1px solid rgba(255, 255, 255, 0.4);

Frequently asked questions

Which CSS properties does the glassmorphism generator create?

It generates background-color as RGBA, backdrop-filter blur, border-radius and an optional fixed white border.

What ranges can I use for blur and radius?

Blur can be from 0 to 30 px and border radius from 0 to 100 px.

What CSS does the glassmorphism example produce?

With blur 10, radius 20, colour #2979FF and alpha 0.5, it gives rgba(41, 121, 255, 0.5), blur(10px), a 20px radius and a 1px solid border of rgba(255, 255, 255, 0.4).

What class name can I use?

The class name needs 1 to 64 ASCII characters, starting with a letter or underscore, followed by letters, digits, underscores or hyphens.

Does glassmorphism work in every browser?

Backdrop-filter requires browser support, and rendering can differ. There is no contrast or accessibility guarantee.