CSS Glassmorphism Generator
Design a frosted glass surface with live controls. Adjust the backdrop blur, background transparency, tint color and corner radius, toggle a border and shadow, then copy the generated CSS.
How to make a CSS glassmorphism effect
- Drag the blur and transparency sliders, then pick a tint color and corner radius.
- Toggle the translucent border and drop shadow to refine the frosted look.
- Copy the generated CSS, including the backdrop-filter, into your stylesheet.
Examples
Classic frosted card
blur 10, transparency 0.2, #ffffff, radius 16, border + shadow
background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 16px;
Subtle dark glass
blur 6, transparency 0.1, #0f172a, radius 12
background: rgba(15, 23, 42, 0.1); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 12px;
Frequently asked questions
What is glassmorphism?
Glassmorphism is a UI style where a panel looks like frosted glass: a translucent background, a soft blur of whatever sits behind it, rounded corners and a faint border. In CSS it is built with a semi-transparent background plus the backdrop-filter property.
What does backdrop-filter do?
backdrop-filter applies a graphical effect, here a blur, to the area behind an element rather than the element itself. That is what frosts the content sitting under your glass panel. The background stays partly transparent so the blurred scene shows through.
Does backdrop-filter work in every browser?
It works in current Chrome, Edge, Firefox and Safari. Safari and older WebKit builds need the -webkit-backdrop-filter prefix, which this tool always includes. Very old browsers ignore it, so the panel simply shows its translucent background with no blur.
Why is my glass effect not blurring?
There must be content behind the element to blur, and the element needs a semi-transparent background so that content shows through. A fully opaque background hides the blur. On Safari, confirm the -webkit-backdrop-filter line is present, which this generator adds for you.
How does the transparency slider affect the CSS?
Transparency sets the alpha channel of the rgba() background. A value of 0.2 means the tint is 20 percent opaque, so 80 percent of the blurred backdrop shows through. Lower values look airier, higher values look more solid.
Is my work sent to a server?
No. The preview and the generated CSS are computed entirely in your browser, so nothing about your settings leaves your device.
Related tools
CSS Gradient Generator
Build linear and radial CSS gradients with a live preview. Pick colors, set the angle and copy ready-to-paste background code for your site.
Box Shadow Generator
Build CSS box-shadow visually. Drag sliders for offset, blur, spread, color and opacity, see a live preview, and copy the box-shadow code.
Color Palette Generator
Generate complementary, analogous, triadic, tetradic and monochromatic color palettes from one base color. Pick a hex, copy each shade as hex, RGB or HSL.
.env to JSON
Convert a .env file to JSON, or JSON back to .env. Parses KEY=value lines, comments, quotes and export. Runs entirely in your browser.
Aspect Ratio Calculator
Calculate aspect ratios fast. Enter a ratio like 16:9 and one dimension to get the other, or enter width and height to simplify the ratio.
Base58 Encoder
Encode and decode Base58 online with the Bitcoin alphabet. Convert text to Base58 or back, UTF-8 safe, no confusing 0 O I l. Runs in your browser.