CSS Box Shadow Generator
Preview a CSS box shadow with adjustable offsets, blur, spread, color, and opacity.
Runs on your device. Nothing you add is uploaded.
px
px
px
px
%
CSS
box-shadow: 0px 10px 24px -4px rgb(23 20 42 / 25%);
How to use CSS Box Shadow Generator
- Set the horizontal and vertical offsets.
- Adjust blur, spread, color, and opacity against the preview.
- Turn on Inset for an inner shadow and copy the CSS.
Questions
What is the difference between blur and spread?
Blur softens the edge. Positive spread expands the shadow, and negative spread shrinks it.
Can offsets be negative?
Yes. A negative horizontal offset moves the shadow left and a negative vertical offset moves it up.
How this works
Builds and previews a CSS box-shadow declaration locally from the controls.
Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. Your last settings are kept in this browser so the tool opens the way you left it. Privacy
Related tools
More in Color & designCSS Gradient Generator
Preview a linear or radial gradient and copy the CSS background declaration.
CSS Border Radius Generator
Adjust each corner of a shape and copy the CSS border-radius declaration.
Color Picker
Pick an sRGB color and copy its hex, RGB, or HSL values.
Color Palette Generator
Build a palette of related colors from a base color and a color scheme.