About this tool
Tune offset, blur, spread, colour and opacity with live preview, including layered shadows for a more natural look.
How to use the CSS Box Shadow Generator
- Adjust the sliders.
- Preview the result.
- Copy the CSS.
How it works
Slider values are composed into a box-shadow declaration with an rgba() colour. Layered mode adds a tighter contact shadow under the main one.
Frequently asked questions
Do shadows hurt performance?
Large blurred shadows on many animated elements can; static shadows are cheap.