CSS Box Shadow Generator
Design CSS box shadows visually. Adjust offset, blur, spread, color and opacity, toggle inset and copy the CSS. Everything runs locally in your browser; nothing is uploaded.
Move the sliders and watch the preview update. Copy the box-shadow declaration when it looks right.
Shadow settings
Preview & CSS
box-shadow: 0px 10px 25px -5px rgba(0, 0, 0, 0.25);
Learn more
Realistic shadows
Real shadows are soft and low in opacity. A y-offset of 10 px with 25 px blur, -5 px spread and about 25 percent opacity reads as natural elevation.
Performance
Large blurs on many animated elements can slow rendering. Animate opacity or transform instead of box-shadow where you can.
Frequently asked questions
What does spread do?
Spread grows or shrinks the shadow before blur is applied. A negative spread with a large blur gives a soft shadow under the element.
How do I layer shadows?
Separate multiple shadows with commas in one box-shadow declaration.
Does it work in all browsers?
Yes. box-shadow is supported in every current browser.