gradient

Box Shadow Generator

Generate CSS box-shadow code visually with sliders for offset, blur, spread, color, and opacity. See a live preview as you adjust, toggle inset shadows, and copy production-ready CSS instantly.

shield_lock

Secure & Private Client-Side

This tool runs entirely in your browser. No data is sent to any server, ensuring your information remains private and secure.

About Box Shadow Generator

Generate CSS box-shadow code visually with sliders for offset, blur, spread, color, and opacity. See a live preview as you adjust, toggle inset shadows, and copy production-ready CSS instantly.

Frequently Asked Questions

What is the CSS box-shadow property? expand_more

box-shadow adds shadow effects around an element. It accepts a horizontal offset, vertical offset, blur radius, spread radius, and color, with an optional inset keyword for inner shadows.

How do I create an inset shadow? expand_more

Enable the "Inset" checkbox in the [Box Shadow Generator](/tools/box-shadow-generator/). This adds the inset keyword so the shadow appears inside the element instead of outside.

What is the difference between blur and spread? expand_more

Blur radius softens the shadow edges (larger = fuzzier). Spread radius grows or shrinks the shadow size before blurring. Negative spread makes the shadow smaller than the element.

Can I control shadow transparency? expand_more

Yes! The opacity slider controls the alpha of the shadow color, output as an rgba() value so shadows blend naturally with any background.

Can I add multiple shadows? expand_more

CSS supports multiple shadows separated by commas. Generate each shadow with the [Box Shadow Generator](/tools/box-shadow-generator/), then combine the values in your stylesheet.

Common Use Cases

  • UI Design: Craft subtle elevation for cards, buttons, and modals with a live preview.
  • Design Systems: Define consistent shadow tokens to reuse across your components.
  • Prototyping: Experiment with depth and lighting quickly without editing CSS by hand.
  • Inset Effects: Build pressed buttons and inner glows using the inset shadow option.