CSS Box Shadow Generator
Dial in offset, blur, spread, color, and opacity with live sliders, preview the result on a light or dark surface, and copy clean box-shadow CSS — all in your browser.
X offset
px
Y offset
px
Blur
px
Spread
px
Color
#0a0a0a
Opacity
%
box-shadow: 0px 10px 25px 0px rgba(10, 10, 10, 0.2);
How to use CSS Box Shadow Generator
- 1
Set the offset
Use the X and Y offset sliders to push the shadow left, right, up, or down. A positive Y value drops the shadow below the element, and a negative one lifts it above.
- 2
Shape the shadow
Increase Blur for a soft, diffuse edge or keep it low for a crisp shadow. Spread grows or shrinks the shadow before the blur is applied.
- 3
Pick a color and opacity
Click the swatch to choose a shadow color, then set the opacity. Soft, low-opacity dark shadows read as the most natural on light backgrounds.
- 4
Copy the CSS
Toggle Inset for an inner shadow if you need one, preview it on a light or dark surface, then copy the box-shadow line into your stylesheet.
Frequently asked questions
How do I create a CSS box shadow?
What does each box-shadow value mean?
What is an inset shadow?
How do I make a soft, natural shadow?
Is my data uploaded to a server?
Related tools
Keep going with these handy tools