Skip to main content
Direct WebTools

Box Shadow Generator

Generate box-shadow CSS with flat, neumorphism and glassmorphism modes, live preview and copy-ready output.

Glassmorphism mode uses backdrop-filter; browsers without support show only the translucent shadow.

Generated CSS

Examples

Click an example to fill in the mode, color and parameters. The CSS updates live; copying is up to you.

Parameters Generated CSS
Flat · X 4 · Y 12 · blur 25 · spread 2 · radius 12 · alpha 40% · #7C3AED box-shadow: 4px 12px 25px 2px rgba(124, 58, 237, 0.4); border-radius: 12px;
Neumorphism · X 8 · Y 8 · blur 16 · spread 0 · radius 16 · alpha 50% · #E0E0E0 box-shadow: -8px -8px 16px 0px rgba(255, 255, 255, 0.9), 8px 8px 16px 0px rgba(157, 157, 157, 1); background: rgb(224, 224, 224); border-radius: 16px;
Glassmorphism · X 0 · Y 8 · blur 20 · spread 0 · radius 16 · alpha 30% · #3B82F6 box-shadow: 0px 8px 20px 0px rgba(59, 130, 246, 0.15); backdrop-filter: blur(20px); background: rgba(59, 130, 246, 0.3); border-radius: 16px;
Soft Flat · X 0 · Y 4 · blur 10 · spread -2 · radius 8 · alpha 15% · #000000 box-shadow: 0px 4px 10px -2px rgba(0, 0, 0, 0.15); border-radius: 8px;

Frequently asked questions

What is the difference between the Flat, Neumorphism and Glassmorphism modes?

Flat produces a single, direct shadow; Neumorphism derives two mirrored shadows (light and dark) to simulate embossing on a same-colored background; Glassmorphism combines a translucent shadow with backdrop-filter and a semi-transparent background, simulating frosted glass.

What do the X, Y, blur and spread parameters control?

X and Y offset the shadow horizontally and vertically; blur softens its edges; spread expands (positive) or contracts (negative) the shadow before the blur. All are limited to the ranges accepted by the screen.

How is the alpha applied?

The percentage you enter becomes the rgba() alpha channel of the shadow color. In glassmorphism mode, the shadow uses half of the given alpha, while the translucent background uses the full alpha.