Box Shadow Generator

Create CSS box-shadow values with offset, blur, spread, colour and inset controls.

Runs in your browser Free
0px
12px
32px
-8px
18%
Processed locally in your browser.

Natural-looking shadows

box-shadow adds depth to cards, buttons, dropdowns and modals, but guessing the right values is hard. With the Box Shadow Generator you adjust sliders and see the result instantly.

Settings

  • Horizontal and vertical offset
  • Blur and spread
  • Shadow colour and opacity
  • Inset shadow

Design tips

For soft, modern shadows use low opacity (10–20%), a large blur and a slight vertical offset. Shadows are less visible on dark themes; consider borders or light accents there.

How to use Box Shadow Generator

  1. Adjust the offset, blur and spread.
  2. Pick the shadow colour and opacity.
  3. Turn on inset if needed.
  4. Copy the box-shadow code.

Why use this tool?

Create professional-looking shadows without wasting time on trial and error.

FAQ

What does spread do?

Spread grows (positive) or shrinks (negative) the shadow before it's blurred.

Can I use multiple shadows?

In CSS you can layer shadows separated by commas; combine generated values for more realistic shadows.

Does box-shadow hurt performance?

Many shadows with large blur, especially in animations, can affect performance; use them sparingly.

Related tools