Design tool
Box Shadow Generator
Set the offset, blur, spread, and color, then copy the box-shadow CSS.
Result updates here as you change the fields.
How to make a CSS box shadow
- Set sideways, downward, blur, spread, color, and opacity. 100 is solid.
- Turn on inset if the shadow sits inside the box.
- Click Build shadow, check the preview, and copy the CSS.
This CSS box-shadow generator (also called a shadow maker) writes a box-shadow property you can paste into a stylesheet. Opacity below 100 writes an rgba color. Use inset when the shadow should sit inside the box instead of outside.
Frequently asked questions
What is a CSS box shadow generator?
It lets you dial offset, blur, spread, color, and inset, preview the result, and copy a ready box-shadow property without writing the syntax by hand.
What units are used?
The four numbers are pixels, in the order offset-x, offset-y, blur, and spread.
Can I make an inset shadow?
Yes. Turn on inset so the shadow sits inside the box.
Is the CSS uploaded?
No. The preview and the property are created in your browser.
Related design tools
Keep working without leaving the site.
Color converter
Switch a color between HEX, RGB, and HSL.
Open toolColor contrast checker
See whether two colors pass WCAG AA and AAA.
Open toolPX and REM
Convert pixels to rem, or rem back to pixels.
Open toolBorder radius
Preview a border-radius and copy the CSS property.
Open toolTints and shades
Build lighter and darker steps from one hex color.
Open toolAspect ratio
Simplify a width and height, or find the missing side.
Open tool