Local StudioDEVELOPER TOOLS CSS Box Shadow Generator
100% Offline Download Tool Tools Catalog

CSS Box Shadow Generator

Adjust shadow layers and copy the CSS you see in the preview.

Shadow Editor

Layers

The first layer is painted on top.

Layer 1

Live Preview

Generated CSS

Layer Presets

Save and reopen the editor settings as a version 1 JSON preset.

Instructions

  1. Adjust the default layer, add more layers, or go to Layer Presets and open a JSON file or the sample.
  2. Select a layer to adjust its offsets, blur, spread, hex color, opacity and inset setting. Move layers up or down to change their paint order.
  3. Use Copy CSS or Download CSS. Apply the generated .box-shadow class to your element.
  4. Download Preset saves your settings as version 1 JSON. Presets can contain one to twelve layers and be up to 64 KiB.
  5. Offsets and spread range from −512 to 512 px, blur from 0 to 256 px, and opacity from 0 to 100 percent. Numeric inputs allow two decimal places.

Edit one to twelve shadow layers. Load or save version 1 JSON presets.

Security Check

CSS Box Shadow Generator

Generate local CSS from validated layer settings.

  • Edit Shadow LayersAdjust signed offsets and spread, nonnegative blur, hex color, opacity and inset.
  • Preview the Layer OrderAdd, remove and reorder layers. The first layer is painted on top.
  • Copy or Download CSSUse the generated stylesheet and save layer settings as a JSON preset.

Local Security Check

Checking This Tool

Checking the launch, browser policy, and resources.

    These checks cover this tool page. Website links open only when selected.

    File Access

    Read a JSON preset only when you choose or drop one.