Skip to content
toolgrid

No tool found. Try another word.

CSS Box Shadow Generator

Design CSS box shadows visually: offset, blur, spread, color, opacity and inset, with multiple layers and presets. Copy the box-shadow CSS in one click.

CSS

    

Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.

How to use the CSS Box Shadow Generator

  1. 1 Pick a preset or start from the default shadow.
  2. 2 Adjust offsets, blur, spread, color and opacity; add layers for more depth.
  3. 3 Copy the generated box-shadow declaration.

About the CSS Box Shadow Generator

The CSS box-shadow property draws one or more shadows around an element. Each shadow is defined by a horizontal and vertical offset, a blur radius, a spread radius and a color, and can be drawn inside the element with the inset keyword. Shadows don't affect layout, so they are a cheap way to add depth.

Realistic shadows usually combine several layers: a small, sharp shadow close to the element and larger, softer ones further away, each with low opacity. The generator lets you stack layers, see the result immediately on a box with your own colors and corner radius, and copy the combined declaration.

Colors are written as rgba() so the opacity is part of the shadow color. A negative spread makes the shadow smaller than the element, which helps shadows look natural under cards. Very large blur values on many elements can slow down scrolling on older devices, so keep them reasonable.

Frequently asked questions

What is the difference between blur and spread?

Blur makes the edge of the shadow softer; spread makes the whole shadow bigger (positive) or smaller (negative) before it is blurred.

How do I make an inner shadow?

Turn on "inset": the shadow is drawn inside the element's border instead of outside.

Can I use several shadows?

Yes, box-shadow accepts a comma-separated list; the first one is drawn on top. Add layers with the + Layer button.

What about text and images?

For text use text-shadow; for transparent images (PNG, SVG) use filter: drop-shadow(), which follows the shape instead of the box.