Box Shadow Generator
Set offset, blur, spread, colour and opacity, see the shadow live, and copy the box-shadow CSS.
Box Shadow Generator lets you set the horizontal and vertical offset, blur, spread, colour and opacity of a CSS shadow, inside or outside the box. It shows the shadow on a live preview card and gives you the box-shadow line to copy.
What does each box-shadow value do?
Offset, blur and spread
The offsets move the shadow right and down (negative values move it left and up). Blur softens its edge, and spread grows or shrinks it before blurring. A negative spread with a large blur gives the soft, lifted look common in modern interfaces.
Inset
An inset shadow is drawn inside the box instead of behind it, which makes the box look pressed in.
Why use Box Shadow Generator?
- Tune by eye. Sliders move the shadow live, so you stop guessing numbers in the stylesheet.
- Opacity done for you. The colour and opacity are combined into one rgba() value ready to paste.
- Check on your colours. Change the preview box colour to see the shadow against your own card.
How to use Box Shadow Generator, step by step

- Open Box Shadow Generator and move the sliders. Set offset, blur and spread, and tick Inset if you want the shadow inside.
- Pick the shadow colour and opacity. A dark colour at 15 to 30 percent opacity looks natural on light backgrounds.
- Copy the CSS. Press Copy text to take the box-shadow line.
Frequently asked questions
Can I add more than one shadow?
This tool makes one shadow at a time. To layer them, copy each value and join them with commas in a single box-shadow property.
Why does my shadow look harsh?
Increase the blur and lower the opacity. A small negative spread also keeps the shadow tucked under the box.
Does box-shadow slow a page down?
Not in normal use. Very large blurs on many elements that move or animate can cost some drawing time on slow phones.
Looking for the long version? The guides cover each of these jobs in depth.