ToolHub

CSS Box Shadow Generator

Tune offset, blur, spread, color, and opacity to craft a CSS box-shadow with a live preview. Supports inset shadows. Everything runs in your browser.

Input
Output
CSS
box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.25);

FAQ

What does each value mean?

Offsets position the shadow, blur softens it, and spread grows/shrinks it. Negative spread keeps the shadow tucked under the element for natural card shadows.

How do I layer multiple shadows?

Comma-separate multiple shadows: generate each layer here and join them like '0 1px 2px …, 0 8px 24px …'.

When should I use inset?

Inset draws the shadow inside the element—useful for pressed buttons, recessed inputs, and inner highlights.

Related tools