Skip to content
Work data is processed in your browser, not stored on our servers.
tools
CSS Box Shadow Generator

CSS Box Shadow Generator

Build layered CSS box-shadow declarations by adjusting offsets, blur, spread, color, opacity, and inset shadows visually.

box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.2);
Layer 1
0px
-100px100px
8px
-100px100px
24px
0px200px
0px
-100px100px
0.20

Key features

  • Adjusts X and Y offsets from -100 to 100 px, blur from 0 to 200 px, and spread from -100 to 100 px.
  • Converts a HEX color and 0–1 alpha value into rgba() output.
  • Configures outer or inset shadows independently for each layer.
  • Adds or removes layers and copies the comma-separated box-shadow declaration from a live preview.

How to use

  1. Adjust the first layer's offset, blur, spread, and color.
  2. Enable inset or add more shadow layers when needed.
  3. Inspect the preview and copy the generated CSS declaration.

Examples

  • Design shadows for cards and dialogs

    Tune offsets, blur, spread, and opacity against the preview to produce CSS for a UI element.

  • Build depth with layered shadows

    Combine multiple outer and inset layers and copy them as one box-shadow declaration.

Privacy

Shadow settings and CSS generation run in your browser.

Common questions

Can I stack multiple shadows?
Yes. Add layers and the tool combines their settings into one comma-separated box-shadow declaration.
Can it create an inner shadow?
Yes. Enable inset on any layer to configure an inner shadow independently of the outer layers.