πŸ–ŒοΈ CSS Box Shadow Generator β€” Offset, Blur, Spread

Adjust the shadow controls and generate a box-shadow declaration you can paste into a stylesheet. No design account is required.

Design Free Β· no sign-up Added 2026-10-09
Input
Result
Parts

Private by design. This tool runs entirely in your browser β€” nothing you enter or add is uploaded to any server.

How it works

  1. Set horizontal and vertical offsets, blur and spread in pixels.
  2. Enter a hex color and an opacity from 0 to 100. Check inset for an inner shadow.
  3. Press Generate CSS to get a box-shadow declaration ready to paste.

Examples

  • 0 8px 24px with 25% opacity is a soft drop shadow under a card.
  • Inset with a small blur darkens the inner edge of an input.
  • A negative spread pulls the shadow inward so it does not spill past rounded corners.

Frequently asked questions

What color formats work?

Use a 3 or 6 digit hex color such as #0f172a. Opacity is applied separately as an rgba alpha.

Can I stack multiple shadows?

This generator emits one shadow. Paste several declarations together with commas if you need a stack.

Does it call a design API?

No. The CSS string is built locally in the page.

More Design tools β†’