CSS Box Shadow Generator

Design a CSS shadow with adjustable offset, blur, spread, color and opacity.

Options

Processed on your device

How to use CSS Box Shadow Generator

Build an outer or inset box shadow with configurable offsets, blur, spread, color and opacity. Preview it before copying CSS into your project.

  1. Enter offsets, blur and spread, then choose color and opacity.
  2. Enable Inset shadow to render inside a box rather than around it.
  3. Select Generate and review the result.

Example use

Add a subtle shadow to a raised card or an inset edge to a recessed panel and compare on the page’s real background.

Output and compatibility

The generated declaration applies one shadow. Offsets move it, blur softens it and spread grows or shrinks its footprint. Parent overflow settings can clip otherwise valid shadows.

Troubleshooting

If the effect disappears in your project, inspect overflow, stacking and the background. Try lower opacity or a smaller spread if it overwhelms nearby content.

Pair it with CSS Border Radius Generator when shaping the element.

Frequently asked questions

Can I use a negative offset?

Yes. Negative horizontal or vertical offsets move the shadow in the opposite direction.

Does it shadow text?

Use CSS Text Shadow Generator for glyphs.

Find a tool