blackdroid.dev

Box Shadow Generator

Design CSS box-shadow visually with multiple layers — offsets, blur, spread, color, opacity and inset. Copy the generated CSS. Free online tool.

Layer 1
Offset X
0px
Offset Y
8px
Blur
24px
Spread
-4px
Opacity
25%
Color
preview
CSS
box-shadow: 0px 8px 24px -4px rgba(0,0,0,0.25);

About Box Shadow Generator

Build layered CSS box-shadows with a visual editor — drag sliders for offset, blur, spread and opacity, stack multiple layers, add inset shadows and watch the preview update live.

Copy the finished box-shadow declaration with one click. Everything runs in your browser.

How to use Box Shadow Generator

  1. Adjust the first layer with the sliders — offset, blur, spread, opacity and color.
  2. Add more layers for realistic depth; toggle inset for inner shadows.
  3. Copy the generated box-shadow CSS from the output panel.

Frequently asked questions

How do I make a realistic CSS shadow?

Layer 2–3 shadows: a tight dark one (0 2px 4px, ~20% black) for contact plus a wide soft one (0 12px 32px, ~10%) for ambient depth — this tool stacks them visually.

What does negative spread do?

It shrinks the shadow so the blur doesn't peek past the element's edges — great for subtle bottom-only shadows like 0 8px 16px -8px.

When should I use inset shadows?

For pressed buttons, input fields and card wells — an inset shadow makes the element look recessed rather than raised.