Web & business — free, no signup

Box shadow generator.

Five sliders, a live preview, and CSS you can paste straight into your stylesheet.

Runs in your browser · Nothing uploaded · Nothing stored

Loading…

Shadows are how an interface communicates depth: what floats above what, what is interactive, what is currently being dragged. Done well they are invisible as an effect and obvious as information. Done badly they look like a 2008 template.

The rule that fixes most amateur shadows is simple physics. Light comes from above, so the vertical offset should be positive and the horizontal offset near zero. The further an element sits from the surface, the larger both the offset and the blur. And the blur should always be several times the offset — a hard shadow at low blur reads as a border, not a shadow.

Opacity is where people overshoot. Anything above about 25% looks heavy on a light background. Subtle stacked shadows at low opacity look far more expensive than one strong shadow, which is why every well-made design system uses several small layers rather than a single dramatic one.

Worth knowing

  • Vertical offset positive, horizontal near zero. Light comes from above.
  • Blur several times larger than the offset. Low blur reads as a border.
  • Keep opacity under 25% on light backgrounds. Subtle beats dramatic almost always.

Questions

Frequently asked

What does spread do?

It grows or shrinks the shadow before the blur is applied. Negative spread pulls the shadow in tight under the element, which usually looks cleaner.

What is inset for?

It draws the shadow inside the element instead of outside, which is how you make something look pressed in — useful for active button states and input fields.

Can I stack several shadows?

Yes. Generate each one, then combine them in a single declaration separated by commas. Layered shadows look considerably more refined than one heavy shadow.

Beyond the tools

Want to know what else is holding your site back?

Our free website audit runs 26 checks across SEO, speed, content and security, and tells you in plain English what to fix first.

Run a free audit