UTILS.
Private by default
⬛

CSS Box Shadow Generator

Design a box-shadow visually with live preview and copy the CSS.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →

About this tool

Visually craft a CSS box-shadow by dragging sliders for offset, blur, spread, colour and opacity, then copy the ready-to-use rule. Everything updates live and runs entirely in your browser.

The output is one shadow: box-shadow: X Y blur spread rgba(r, g, b, a); in px. Offsets and spread run from -50 to 50, blur from 0 to 100 and opacity from 0 to 100%, written as alpha with two decimals. The hex from the picker is converted to decimal rgb values, starting at black with 75% opacity. Ticking Inset puts inset first. For layered shadows, add more in your stylesheet.

Frequently asked questions

What does the spread value do?
Spread grows (positive) or shrinks (negative) the shadow before any blur is applied, making it larger or tighter than the element.
What is an inset shadow?
Inset draws the shadow inside the element instead of outside, which is handy for pressed buttons or inner glows.
How is opacity written?
As the alpha of an rgba() colour, so 75% becomes 0.75.
What ranges can I set?
Offsets and spread -50 to 50 px, blur 0 to 100 px, opacity 0 to 100%.

More tools