Box Shadow Generator

Last updated: October 16, 2026  •  Published by: NOFYI Editorial Team  •  Category: Developer Tools

Workspace

What is the Box Shadow Generator?

The Box Shadow Generator builds the CSS box-shadow value for an element. Set the horizontal and vertical offset, blur radius, spread radius, shadow colour, and opacity, and it outputs a single box-shadow declaration you can paste into your stylesheet. Use it for soft card shadows, lifted buttons, and subtle depth on panels.

How to Use the Box Shadow Generator

  1. Set Offset X and Offset Y in pixels. Positive X moves the shadow right; positive Y moves it down. The workspace starts at 4 and 4.
  2. Set Blur radius and Spread radius in pixels. The workspace starts at Blur 12 and Spread 0.
  3. Choose the shadow colour and set Opacity. The workspace starts at Opacity 25 percent, which gives an alpha of 0.25.
  4. Check Inset only if you want an inner shadow instead of an outer shadow.
  5. Click Process to generate the CSS, then use Copy to copy it, or Clear to reset.

Worked Example

Input: Offset X 4, Offset Y 4, Blur 12, Spread 0, colour black, Opacity 25, Inset unchecked. Observed output: box-shadow: 4px 4px 12px 0px rgba(0,0,0,0.25); The four lengths are offset-x, offset-y, blur, and spread, followed by the colour with the opacity applied as the alpha value.

Limitations

  • The workspace offers one shadow only. It does not build layered multi-shadow values with commas, so combine multiple shadows by hand if you need them.
  • The colour control did not expose a visible colour value in the accessibility view during testing, and the defaults resolve to black. Verify the colour in the output before pasting.
  • No live preview box or preset list was shown in the workspace during testing, and there is no Reset button; use Clear to start over.
  • The tool outputs CSS text only. It does not apply the style to your site or save settings between visits.

Frequently Asked Questions

What do blur and spread do?

Blur softens the shadow edge. Spread expands or, with a negative value, contracts the shadow. Larger blur gives a softer, more diffused shadow.

What does Inset do?

Inset puts the shadow inside the element’s border, for a pressed-in or inner-glow effect. Leave it unchecked for a normal outer shadow.

Why is my shadow barely visible?

Check opacity and blur. At Opacity 25 the shadow is faint, and a large blur spreads it thin. Raise opacity or reduce blur for a stronger shadow.

Does the tool change my website?

No. It only generates CSS text. Paste the copied declaration into your stylesheet to apply it.