All Tools › Box Shadow Generator

CSS Box Shadow Generator

Design a shadow and copy the CSS.

Design a CSS box-shadow

A good shadow gives an element a sense of depth, but the CSS has several values — offset, blur, spread, colour — and tweaking them blind is slow. This generator lets you adjust each one and see the shadow update live, then copy the exact CSS. It's the quickest route from "I want a subtle lift" to the precise rule that produces it.

How to use it

  1. Adjust the horizontal and vertical offset, blur, and spread.
  2. Set the shadow colour and opacity.
  3. Copy the generated CSS.

Tips for natural shadows

Questions people ask

What does spread do? It grows or shrinks the shadow before the blur is applied — positive values make it larger than the element, negative ones smaller.

Is anything uploaded? No — the preview and CSS are generated in your browser.