About CSS Box Shadow & Glass Generator
The CSS Box Shadow & Glassmorphism Generator lets you visually craft layered CSS drop shadows, inset shadows, and frosted-glass backdrop-filter cards with real-time preview and one-click CSS copy.
Switch between Box Shadow and Glassmorphism modes, start from clean UI presets (Soft Card, Elevated Modal, Brutalist, Blue Glow), fine-tune blur, spread, opacity, and tint, and copy cross-browser CSS ready for production.
How do CSS box-shadow and glassmorphism backdrop-filter work together?
CSS box-shadow creates depth and elevation around UI cards, modals, and buttons using horizontal offset, vertical offset, blur radius, spread radius, and an RGBA color value. Glassmorphism adds a translucent frosted-glass surface by pairing a semi-transparent RGBA background with backdrop-filter: blur(...) and a subtle translucent white border so colors behind the card softly diffuse through. This generator outputs clean standard properties alongside -webkit- prefixes for Safari compatibility, updating the live preview instantaneously as you drag each slider. Because everything runs 100 percent locally in your browser with no account or paywall, front-end developers and UI designers can prototype elevated cards and frosted panels in seconds and paste production-ready CSS straight into stylesheets or Tailwind arbitrary values.
How to Use the CSS Box Shadow & Glass Generator
- Choose Box Shadow or Glassmorphism mode.
- Pick a preset or drag the offset, blur, spread, opacity, and color sliders.
- Inspect the live preview card and click Copy CSS to paste into your stylesheet.
Features
- Dual mode: CSS Box Shadow (including inset) and Frosted Glassmorphism
- Built-in presets for Soft Cards, Elevated Modals, Brutalist UI, and Glows
- Cross-browser output including -webkit-backdrop-filter
- Instant live preview and one-click CSS copy
Examples
Soft elevated UI card shadow
Input
X: 0px, Y: 10px, Blur: 25px, Spread: -5px, #0f172a @ 15%
Output
box-shadow: 0px 10px 25px -5px rgba(15, 23, 42, 0.15);
Frequently Asked Questions
Does glassmorphism work in Safari and all modern browsers?
Yes. The generated CSS includes both backdrop-filter and -webkit-backdrop-filter so frosted glass renders properly in Safari, Chrome, Edge, and Firefox.
What is the difference between blur radius and spread radius in box-shadow?
Blur radius controls how soft and diffused the shadow edge is, while spread radius expands (positive) or shrinks (negative) the shadow size before blurring. Negative spread creates realistic elevated card shadows.
Can I create inset inner shadows?
Yes. Toggle the Inset shadow checkbox in Box Shadow mode to generate recessed input or button shadows.
Is the CSS Box Shadow & Glass Generator free?
Yes, the CSS Box Shadow & Glass Generator is completely free with no usage limits. No signup, no account and no installation required.
Related Tools
Gradient Generator
Create beautiful CSS gradients — linear, radial or conic — with a live preview and copy-ready CSS code. Free online gradient generator.
Color Palette Generator
Generate harmonious 5-color palettes from any base color — analogous, complementary, triadic and more. Click any swatch to copy its hex code.
Color Contrast Checker
Check WCAG 2.1 AA and AAA color contrast ratios for normal and large text with live preview and one-click accessible color auto-fix.
Color Converter
Convert colors between HEX and RGB with a live picker and instant preview. Free online color converter for designers and developers.