HelperCrate

Box Shadow Generator

Tune offset, blur, spread and color for CSS box shadows with live preview.

Your files never leave your device. Everything runs in your browser.

What Box Shadow Generator does

Box Shadow Generator is a live editor for the CSS box-shadow property. Six controls — X offset, Y offset, blur, spread, colour and opacity — update the sample card and the CSS line as you move them, and one button copies the finished declaration.

The default state produces box-shadow: 0px 12px 30px -4px rgba(0, 0, 0, 0.35);, a soft shadow falling downwards. Reading any box-shadow value is easier once you know the order of its five parts: horizontal offset, vertical offset, blur radius, spread distance and colour. So 0px 0px 20px 0px rgba(255, 0, 0, 0.5) — a verified output for the red glow preset — is a shadow with no displacement, a medium blur and no spread.

Sliders cover the practical ranges: X offset, Y offset and spread run from -50 to 50 pixels, blur from 0 to 100, and opacity from 0 to 100 percent, which is written into the colour as an rgba alpha value. Everything is computed in the page, so nothing is uploaded or saved.

How to use Box Shadow Generator

  1. Drag X offset and Y offset to move the shadow; positive values push it right and down.
  2. Raise Blur for softness — 0 keeps a hard-edged copy of the card.
  3. Use Spread to grow the shadow with positive values or shrink it with negative ones.
  4. Pick a Color and set Opacity % to fade it from transparent to solid.
  5. Watch the preview card, then press Copy CSS to copy the box-shadow declaration.

Features

Tips and common mistakes

Frequently asked questions

What order do the five parts of a box shadow go in?

Horizontal offset, vertical offset, blur radius, spread distance, then colour. The two offsets are required; blur and spread can be omitted, and the colour may be written before or after the lengths, but this tool always emits the conventional order.

Why is the colour written as rgba instead of hex?

Because the opacity control needs an alpha channel, and rgba expresses that directly with values such as rgba(0, 0, 0, 0.35). If you prefer hex, the equivalent eight-digit form appends the alpha to the colour by hand.

Can I make an inset shadow?

Not with the controls, but the keyword is easy to add: insert inset at the start of the copied value, before the offsets, and the browser draws the shadow inside the element.

Can I combine several shadows on one element?

Yes in CSS — separate them with commas, and the first shadow paints on top. The generator edits one shadow at a time, so copy each layer separately and merge the values.

Why does the spread control allow negative values?

Spread shrinks the shadow before it is blurred. A small negative spread, like the default -4px, keeps a shadow close to the element, which reads as more realistic than a large evenly blurred one.

Is anything uploaded?

No. The preview and the declaration are computed in your browser and nothing is stored or sent anywhere.

The preview and CSS are generated entirely in your browser — nothing is uploaded or stored.