CSS Glassmorphism Generator
Create a glassmorphism CSS panel: blurred backdrop, translucent fill, hairline border and optional shadow. Copy the rule in one click.
What the glassmorphism generator builds
The panel rests on three declarations that have to agree: a translucent white background, a backdrop-filter that blurs and slightly saturates whatever is behind it, and the prefixed -webkit-backdrop-filter for Safari. Transparency is the alpha of the background, so 30% becomes rgba(255, 255, 255, 0.7). A thin light border reads as the edge of the glass, and the shadow is optional because a light panel on a light section often does not need one. The honest limitation is that backdrop-filter needs something behind it: over a flat colour the blur has nothing to soften and the effect collapses into a plain translucent box, which is why the preview sits on a gradient.
How to use it
Move the blur and transparency sliders, set a border width and colour, then decide whether the panel needs a shadow, and press Run. The preview sits on a gradient because the backdrop blur has nothing to soften over a flat colour.
Worked example
Input:
blur: 16px, transparency: 30%, border: 1px #ffffff, shadow: on
Output:
.glass {
background: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(16px) saturate(160%);
-webkit-backdrop-filter: blur(16px) saturate(160%);
border: 1px solid #ffffff;
border-radius: 16px;
box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.45);
}
Why it runs in your browser
The result is produced on this page with JavaScript, so it works offline after the page loads and nothing you enter is sent anywhere.
The panel rests on three declarations that have to agree: a translucent white background, a backdrop-filter that blurs and slightly saturates whatever is behind it, and the prefixed -webkit-backdrop-filter for Safari. Transparency is the alpha of the background, so 30% becomes rgba(255, 255, 255, 0.7). A thin light border reads as the edge of the glass, and the shadow is optional because a light panel on a light section often does not need one. The honest limitation is that backdrop-filter needs something behind it: over a flat colour the blur has nothing to soften and the effect collapses into a plain translucent box, which is why the preview sits on a gradient.
Create a glassmorphism CSS panel: blurred backdrop, translucent fill, hairline border and optional shadow. Copy the rule in one click.
How to use it
Move the blur and transparency sliders, set a border width and colour, then decide whether the panel needs a shadow, and press Run. The preview sits on a gradient because the backdrop blur has nothing to soften over a flat colour.
Why it runs in your browser
The result is produced on this page with JavaScript, so it works offline after the page loads and nothing you enter is sent anywhere.
What to Expect
What this tool keeps
- The result is produced on this page with JavaScript, so it works offline after the page loads and nothing you enter is sent anywhere.
Sample input
blur: 16px, transparency: 30%, border: 1px #ffffff, shadow: on
Sample output
.glass { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border: 1px solid #ffffff; border-radius: 16px; box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.45); }
Frequently asked questions
How do I use the css glassmorphism generator?
Move the blur and transparency sliders, set a border width and colour, then decide whether the panel needs a shadow, and press Run. The preview sits on a gradient because the backdrop blur has nothing to soften over a flat colour.
Is my input uploaded?
Nothing is uploaded. The result is produced on this page.
Is there a size limit?
No: nothing is pasted, so there is no input size to exceed.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.