Layers
X Offset4px
Y Offset4px
Blur8px
Spread0px
%
Inset
What is CSS Box Shadow Generator?
CSS Box Shadow Generator lets you visually build box-shadow values and instantly copy the CSS. Adjust offsets, blur, spread, color, and opacity with live preview.
How to Use the Box Shadow Generator
- Adjust X/Y Offset, Blur, and Spread sliders.
- Pick a shadow color and set opacity.
- Toggle Inset for an inner shadow effect.
- Add more layers for complex shadows.
- Copy the CSS and paste into your project.
Learn More▾
Box Shadow Parameters
- X/Y Offset —shifts the shadow horizontally and vertically
- Blur —how soft/blurred the shadow edge is
- Spread —expands or contracts the shadow size
- Inset —renders shadow inside the element
Frequently Asked Questions
Can I add multiple shadows?
Yes. Click 'Add Layer' to stack multiple box-shadow values, combined with commas in the output CSS.
How do I use the generated CSS?
Click 'Copy CSS' and paste the box-shadow property directly into your CSS file or style block.