Box Shadow Generator — Design Shadows Visually

Adjust offset, blur, spread, color and opacity on sliders while a live preview updates. Copy the exact box-shadow CSS when it looks right.

100%Free
0Signup Required
0Data Leaves Browser

Box Shadow Generator

Free • No Signup
X offset8px
Y offset12px
Blur24px
Spread0px
Color
Opacity35%

Quick Answer

A box shadow generator builds the CSS box-shadow property visually. Offset, blur, spread, color, opacity and inset — every value on its own slider, with a live preview showing the result as you drag.

What This Tool Does

Six controls produce one box-shadow declaration. The preview box sits beside the controls, so you see exactly how each slider changes the shadow. An inset toggle switches between outer and inner shadows.

Key Features

  • Full control set — X/Y offset, blur, spread, color, opacity, inset.
  • Live preview — the shadow updates with every drag.
  • RGBA output — opacity is baked into a clean rgba() color.
  • Copy-ready CSS — one click to copy the declaration.

How to Use the Box Shadow Generator

  1. Drag X and Y offset to move the shadow.
  2. Adjust blur and spread to shape it.
  3. Pick a color and opacity, toggle inset if needed.
  4. Click Copy CSS and paste it into your stylesheet.

Use Cases

  • Card and button elevation that feels native to your design system.
  • Subtle depth for modals and popovers.
  • Quickly matching a shadow from a mockup.

Tips

  • Small offsets with big blur look soft and modern; big offsets with small blur look hard and cartoonish.
  • Use inset for pressed or sunken states.
  • Keep opacity low (15–40%) for a natural shadow.

Privacy

Everything runs locally; nothing is uploaded.

Conclusion

Shadows are fiddly to type and easy to design. Build it visually, copy the CSS, and move on — free.

FAQ

Frequently Asked Questions About Box Shadow Generator

Blur softens the shadow's edge (higher = softer). Spread expands or contracts the shadow's size without changing its softness — negative values shrink it.

Check the inset option. The output adds the inset keyword and the preview switches to an inner shadow.

This tool produces one shadow per declaration. To layer, combine multiple box-shadow values with commas in your stylesheet.

Yes — the copy button puts a complete declaration like box-shadow: 8px 12px 24px 0 rgba(15, 23, 42, 0.35); on your clipboard.

More Tools

Code Faster, Not Harder

Format, minify, test and generate — free developer utilities that run entirely in your browser.