UtilHero

CSS Box Shadow Generator

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

Inset
box-shadow: 0px 10px 24px -4px rgba(15, 23, 42, 0.25);

About Box Shadow Generator

A box-shadow generator lets you design a CSS shadow visually and copy the code. Drag the sliders for horizontal and vertical offset, blur, and spread, pick a color and opacity, and toggle inset — the preview updates live and the box-shadow rule is ready to copy. Everything runs in your browser.

Frequently asked questions

What do the box-shadow values mean?
In order: horizontal offset, vertical offset, blur radius, spread radius, then color. Positive offsets move the shadow right and down; blur softens it and spread grows or shrinks it.
What is an inset shadow?
Inset draws the shadow inside the element instead of outside, which makes it look pressed in or recessed. Toggle it to switch between outer and inner shadows.
Can I stack multiple shadows?
This tool builds one shadow. In CSS you can layer several by separating them with commas in a single box-shadow property.
How do I use the result?
Copy the generated rule and paste it into your CSS, or the style attribute of an element. It works in every modern browser.

More tools