Box Shadow Generator
Build a CSS box-shadow with sliders and copy the code.
Runs in your browser. Nothing you open or type here is uploaded.
How to use
- Set the X offset, Y offset, blur radius and spread with the sliders.
- Pick the shadow color and set its opacity.
- Turn on Inset to preview an inner shadow instead of an outer one.
- Copy the CSS and paste it into your stylesheet.
Details
A CSS box-shadow takes horizontal and vertical offsets, a blur radius, an optional spread radius and a color, in that order. Offsets move the shadow away from the box, blur softens its edge, and spread grows or shrinks it before the blur is applied. The inset option draws the shadow inside the box, which reads as depth pressed into the surface rather than a shadow cast behind it. The preview box updates as you move the sliders, and the field below holds the finished box-shadow value.
- Negative offsets move the shadow left or up; a negative spread shrinks the shadow before it is blurred.
- A large blur radius with low opacity reads as a soft ambient shadow; a small blur with a dark color reads as a hard edge.
Common questions
What does it output?
A ready-to-paste CSS box-shadow value.
What is inset?
An inner shadow instead of an outer one — toggle it to see the difference.