💫 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
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
- 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.
- + Add Shadow adds a layer and Remove deletes one.
- The Background buttons (Dark, Light, White) change what sits behind the card.
- Presets load a ready-made stack: Subtle, Medium, Heavy, Floating, Pressed or Neon Glow.
- 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
- Ranges are fixed. Offsets and Spread run from -50 to 50 pixels, Blur from 0 to 100, and Opacity from 0 to 1 in steps of 0.01. There are no number fields, so for an exact value outside those ranges, edit the copied CSS.
- Output is always pixels and
rgba(). Zero is written as0px, and the Spread value is always included even when it is 0. - Layers cannot be reordered. In CSS the first shadow in the list is painted on top, which here means Shadow 1. To change the order, remove layers and add them again, or swap the lines in your stylesheet.
- Presets replace everything. Your current layers are discarded and there is no undo.
- New layers start from the default,
4px 4px 10px 0pxin black at 0.25 opacity, not from a copy of the layer above. - The sample card has a fixed size and a 12px corner radius. A shadow follows the corners of whatever element you use it on, so your result will differ on a square or very large box.
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.