CSS Box Shadow Generator
Design beautiful CSS box shadows visually — drag the sliders, layer multiple shadows, and copy the ready-to-use code.
About the CSS Box Shadow Generator
Shadows are one of the quickest ways to make a design feel polished — they add depth, separate cards from the page, and draw the eye to buttons and pop-ups. Getting the numbers right by hand can be fiddly, though. This visual builder lets you drag a few sliders, watch the preview update instantly, and copy a clean line of CSS you can paste anywhere. Stack multiple shadows for layered, realistic depth, or flip to an inner shadow for pressed-in fields and toggles.
- For a natural lift, use a small downward offset, a generous blur, and a dark colour at low opacity.
- Layer a tight, subtle shadow over a wide, soft one to mimic how real objects cast light.
- A slightly negative spread keeps soft shadows tucked neatly under a card.
- Turn on the inner shadow for input fields, switches, and anything that should look recessed.
How it works
Three steps. No sign-up, no upload, no wait.
Adjust the sliders
Set the horizontal and vertical distance, softness, and size until the preview looks right.
Pick a colour
Choose the shadow colour and how see-through it is — or stack a few layers for extra depth.
Copy the code
Grab the ready-made line of CSS and paste it straight into your stylesheet.
Private by design.Everything happens right here in your browser. Your files are never uploaded — we never see them.
Frequently Asked Questions
What is a box shadow? ▼
box-shadow: 0 4px 12px rgba(0,0,0,0.15); — the numbers set the position and softness, and the colour sets the tint.Can I add more than one shadow to the same element? ▼
What's the difference between an inner and outer shadow? ▼
inset option) is drawn inside the element instead, making it look pressed in or recessed — handy for input fields and toggled buttons.