Box Shadow Generator

Design box shadows visually and copy the CSS.

Design CSS box shadows with a live preview and copy a ready box-shadow declaration. Each layer has X, Y, Blur, Spread, Color and an Inset toggle, and you can stack up to 6 layers. It is built for developers who want soft elevation effects without guessing values.

What is the box-shadow property?

The box-shadow property draws one or more shadows around an element's box. Each shadow is written as an optional inset keyword, a horizontal offset, a vertical offset, an optional blur radius, an optional spread radius and a color. Positive X moves the shadow right and positive Y moves it down. Blur softens the edge; it cannot be negative. Spread grows the shadow when positive and shrinks it when negative. The inset keyword draws the shadow inside the border instead of outside. Multiple shadows are separated by commas and the first one sits on top, which lets you combine a tight contact shadow with a larger soft one for realistic depth.

How to use Box Shadow Generator

  1. Set the first layer Adjust X, Y, Blur and Spread, then type a Color for Layer 1.
  2. Choose inside or outside Tick Inset on a layer to draw the shadow inside the box.
  3. Add more layers Click Add layer to stack another shadow, or Remove to delete one.
  4. Copy the CSS Copy the box-shadow line from the CSS output box.

Frequently asked questions

How many shadows can I stack?

Up to 6 layers. The first layer is drawn on top. The output lists the layers separated by commas in the order shown.

Why does the output always include 0px values?

The tool always writes all four lengths (X, Y, blur, spread) with px units. Zero values are written as 0px, which is valid CSS.

Can I make a text shadow or drop-shadow filter?

No. This tool generates only the box-shadow property. Text shadows and the filter drop-shadow function use different properties.

Does the color field validate input?

No. Whatever you type is placed in the CSS as is. If the color is invalid, the browser ignores the declaration, so check that the preview shows a shadow.

Can I use negative blur?

No. Blur is clamped at 0 because CSS does not allow negative blur radii. X, Y and Spread may be negative.