CSS box-shadow generator
Build layered CSS box-shadows visually and copy the code.
Made in your browser. Nothing is uploaded.
About this tool
This tool creates the CSS box-shadow property with sliders for horizontal and vertical offset, blur, spread, colour and opacity, and shows it on a preview card. You can stack up to 4 shadow layers, make any of them inset, and change the box and page colours to match your design.
At a glance
- What it does
- Build layered CSS box-shadows visually and copy the code.
- Price
- Free, no sign-up
- Works in
- Your browser, on phone or computer. Works offline after the first visit.
- Privacy
- What you type never leaves your device.
How to make a CSS box shadow
- Move the offset, blur, spread and opacity sliders and pick a shadow colour.
- Add more layers or tick Inset for an inner shadow.
- Press "Copy CSS" and paste it into your stylesheet.
Private
Your text stays in your browser and is never sent to a server.
Instant
Results update as you type, with nothing to install.
Free
No sign-up, no limits and no ads inside your writing space.
Frequently asked questions
What do the four numbers in box-shadow mean?
In order: horizontal offset, vertical offset, blur radius and spread radius. For example box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.25) is a soft shadow 4px below the box.
Why use several shadow layers?
Real shadows are soft and sharp at the same time. A small, darker layer plus a large, faint one looks more natural than one big shadow.
What does a negative spread do?
It shrinks the shadow before it is blurred, so the shadow stays under the box instead of spreading out to the sides.



