CSS Box Shadow Generator

Shape a shadow while watching it update, then copy the CSS. Everything runs in your browser; nothing you enter is uploaded or stored.

  • Free, no sign-up
  • Runs in your browser
  • Verified
Layer 1

How to use it

  1. Set the offsets, blur, spread, color and opacity of the first layer.
  2. Add more layers for softer, more realistic shadows.
  3. Press Copy CSS.

How it works

Each layer is written as: [inset] x-offset y-offset blur spread color. Blur softens the edge, spread grows or shrinks the shadow, and a color with opacity is written as rgba(). Layers are separated by commas, with the first layer on top.

Examples

  • 0 4px 12px 0 rgba(0, 0, 0, 0.25) is a soft shadow below a card.

Limitations

  • The preview shows one box on a plain background; check the shadow on your real design, including dark mode.
  • Large blurs on many elements can slow down older devices.

References

Last verified . See our Accuracy & Editorial Policy. Found a problem? Email [email protected].