Box Shadow Generator
Design CSS shadows visually
A 112-pixel square sits in the middle of the preview carrying whatever you have dialled in, so each change is judged on a real element rather than on a flat swatch. Five controls drive the shape: horizontal offset from -50 to 50 pixels, vertical offset across the same range, blur from 0 to 120, spread from -50 to 50, and opacity from 0 to 100 percent, with the colour taken from a native picker. The Layered checkbox switches between a single shadow and a three-layer version in which each successive layer is scaled up by a factor of 1.6, which is what produces a soft believable falloff instead of a hard ring. Inset is a separate switch and applies to every layer. Five presets — Soft, Material, Sharp, Neumorphic and Inset — load a known starting point you can then pull apart.
Craft single or layered CSS box shadows with sliders for offset, blur, spread, color and inset — previewed live on a real element and exported as clean CSS.
Private Box Shadow Generator In Your Browser
Box Shadow Generator is processed locally with client-side JavaScript. Your files never touch a server, and there is no queue to wait in.
How to use Box Shadow Generator
Drag the Offset X, Offset Y, Blur and Spread sliders to set where the shadow falls and how far it grows or shrinks.
Pick the colour with the swatch and set the Opacity percentage; the rgba triple in the output tracks both.
Tick Inset to draw the shadow inside the element instead of outside it, or Layered (×3) to add two more scaled layers.
Press one of the Soft, Material, Sharp, Neumorphic or Inset presets to start from a known shape, then copy the CSS output.
- The layered option emits three shadows whose offsets, blur and spread are multiplied by 1, 1.6 and 2.2 in turn.
- Opacity is a control of its own rather than part of the colour, so the output carries a genuine rgba alpha value.
- Five presets set several fields at once, and each is a starting point you can pull apart rather than a fixed snippet.
- The preview element is given the exact declaration printed in the output box, so what you see is what will render.
- A developer builds a raised card and checks that the shadow still reads against a white background at the alpha chosen.
- A designer compares a Material-style multi-layer falloff with a single hard shadow at the same nominal elevation.
- Someone styling a pressed button ticks Inset and dials a small vertical offset to get the sunken look.