💫 CSS Box Shadow Generator

Create and preview beautiful box shadows. Layer multiple shadows, tweak every parameter, and copy the CSS. Runs in your browser.

Last updated: November 8, 2026 · By the BoltQuickTools team

Preview
Background:

Tune a CSS shadow by eye instead of by reload

Good shadows are usually two or three stacked layers with small differences, and getting those numbers right by editing a stylesheet and refreshing is slow. Here you drag sliders, watch a sample card change, and copy the finished declaration.

Layers, presets and backgrounds

  1. Each layer, labelled Shadow 1, Shadow 2 and so on, has sliders for X Offset, Y Offset, Blur, Spread and Opacity, plus a Color picker and an Inset checkbox.
  2. + Add Shadow adds a layer and Remove deletes one.
  3. The Background buttons (Dark, Light, White) change what sits behind the card.
  4. Presets load a ready-made stack: Subtle, Medium, Heavy, Floating, Pressed or Neon Glow.
  5. Copy CSS copies what is shown under Generated CSS.

What the presets generate

The Floating preset produces two layers, one wide and faint and one tight and slightly stronger:

box-shadow: 0px 20px 40px -5px rgba(0, 0, 0, 0.25),
    0px 8px 16px -4px rgba(0, 0, 0, 0.15);

Pressed is a single inner shadow:

box-shadow: inset 0px 2px 6px 0px rgba(0, 0, 0, 0.2);

A negative spread, as in Floating, pulls the shadow in from the card's sides so that it mostly shows underneath. Neon Glow does the opposite, with zero offsets and positive spread in rgba(250, 204, 21, ...), so the light surrounds the card evenly.

Limits of the sliders and the output

When box-shadow is the wrong property

box-shadow follows the element's rectangle, even where the element is visually cut away. For a shadow that follows the shape of a transparent PNG, or an element shaped with the clip-path generator, apply filter: drop-shadow() to it or to its parent. That function has no spread value and no inset form, so only the offsets, blur and colour carry over. For text, use text-shadow.

Why can I barely see the shadow when the page opens?

The default preview background is Dark, and a black shadow at low opacity hardly shows against it. Click Light or White, or test a lighter colour from the color picker.

Can I get rid of the shadow completely?

Remove every layer and the output becomes box-shadow: none;, which is also useful for cancelling a shadow inherited from a framework class.

Do I need vendor prefixes?

No. The tool writes only the standard property, and current browsers do not need -webkit- or -moz- versions of it.