Skip to content
patrache.tools

Box Shadow Generator

Generate CSS box-shadow free — adjust offset, blur, spread and color with live preview. Copy production-ready CSS code instantly. Browser-based.

box-shadow: 4px 4px 10px 0px rgba(0, 0, 0, 0.25);
lockYour files never leave your device
Share
Embed

Embed this tool on your site

CSS Box Shadow Generator is a free online tool that visually edits the box-shadow property.

How to use Box Shadow Generator?

  1. Adjust horizontal/vertical offset, blur, and spread values with sliders.
  2. Set shadow color and opacity.
  3. Copy the generated CSS code and use it in your project.

Frequently asked questions about Box Shadow Generator

Can I add multiple shadows at once?

Yes, you can add multiple shadows to create complex depth and effects. Each shadow can be individually adjusted.

What is an inset shadow?

An inset shadow appears inside the element rather than outside. While normal box-shadow appears outside, adding inset creates a recessed, pressed-in effect.

My shadow looks fake — how do I make it natural?

Real shadows are not black; they are the background color made darker, and they soften toward the edges. Instead of one heavy 30% black shadow, stack two or three very faint layers with different blur radii — say a 1 px shadow tight to the edge, an 8 px one behind it, and a very light 24 px one further out. Assume the light comes from above: give the shadow only a vertical offset and leave the horizontal one at zero.

Do lots of shadows slow the page down?

In a static layout the cost is negligible, but it changes the moment you animate. Transitioning the box-shadow value on hover forces the browser to recompute the blur every frame, which stutters visibly on low-powered devices. If you need a shadow that grows on interaction, animate the opacity or transform of a pre-rendered shadow layer instead — the result is far smoother.

How to get the most out of Box Shadow Generator?

  • Two or three stacked shadows with different blur radii read far more natural than one big blur.
  • Keep alpha around 0.08-0.15; pure black at full opacity looks muddy on screen.
  • Shadows barely show in dark mode, so pair them with a subtle light border instead.

Powered by Patrache Studio Tools

Please allow ads on this site

To use these tools, allow ads on this site. Advertising keeps this service free.

Open your ad blocker, turn off blocking for this site, then check again.