Developer Tools

CSS Box Shadow Generator

Configure and preview a CSS box shadow, then copy its declaration.

Your input is processed in this browser and is not sent to our server.

How to Use Box Shadow

  1. Set horizontal and vertical offsets, blur, spread, color, and opacity.
  2. Optionally enable Inset shadow.
  3. Select Generate CSS and copy the box-shadow declaration.

Example

Input

X 0, Y 4, blur 12, spread 0, opacity 18%

Result

box-shadow: 0px 4px 12px 0px rgba(17, 24, 39, 0.18);

Common Errors & Troubleshooting

  • Blur must be non-negative and opacity must be from 0 to 100%.
  • Review the shadow against your target background; the tool does not evaluate contrast or design suitability.

Frequently Asked Questions

Can the output create an inset shadow?

Yes. Select the Inset shadow option before generating the declaration.

Does this support multiple shadows?

No. It generates one CSS box-shadow value at a time.