Craft layered CSS box-shadows with live sliders for offset, blur, spread, color, opacity and inset — preview on a real element and copy ready-to-paste CSS instantly.

Live preview
Live preview
CSS
box-shadow: ;

Everything updates live in your browser — no uploads, no sign-up, completely free.

Shadow layers
px
px
px
px
Shadow color
20%
Element & canvas
16px
Presets

About CSS Box Shadow Generator

The CSS Box Shadow Generator lets you design box-shadows visually instead of guessing values in code. Drag sliders for horizontal and vertical offset, blur radius, spread radius, color and opacity — with an inset toggle — and watch a real element update live. When it looks right, copy the ready-to-paste CSS in one click.

Modern UI shadows are rarely a single layer. This generator supports stacked shadow layers: add, duplicate, hide or remove layers, and preview either the selected layer alone or all layers combined. Layering a tight dark shadow under a soft wide one is how polished cards and buttons get their depth.

You can also style the preview element itself — box color, border radius and canvas background — so the shadow is judged against a realistic context, including dark surfaces. Start from a preset, hit “Randomize layer” for inspiration, and reset whenever you want a clean slate. Everything runs in your browser.

How to use CSS Box Shadow Generator

  1. Adjust the sliders for horizontal offset, vertical offset, blur, spread, color and opacity, and toggle “Inset shadow” if you want an inner shadow.
  2. Click “Add layer” or “Duplicate layer” to stack shadows, and switch the preview mode between “This layer” and “All layers” to fine-tune each one.
  3. Tune the element and canvas — box color, border radius and background — so the preview matches your real design.
  4. Apply a preset or use “Randomize layer” if you want a starting point instead of a blank slider set.
  5. Copy the full CSS rule (or just the value) and paste it into your stylesheet.

Frequently asked questions

Blur softens the shadow’s edge — a higher blur radius makes the shadow more diffuse. Spread grows or shrinks the shadow’s size before blurring: positive values extend it beyond the element, negative values pull it inward for a tighter shadow.

Realistic depth usually needs at least two shadows: a small, darker one close to the element for contact, and a larger, softer, more transparent one for ambient light. The generator stacks any number of layers into a single comma-separated box-shadow value.

An inset shadow is drawn inside the element instead of behind it, which makes the surface look pressed-in or recessed. It is commonly used for input fields, wells and toggled button states.

Yes. The element and canvas controls let you change the box color, border radius and canvas background, so you can check that the shadow still reads correctly on dark surfaces before copying the CSS.

Yes, it is completely free. The preview and the generated CSS are computed live in your browser, with no sign-up and no limits on how many shadows you create.


Popular searches
css box shadow generator box shadow css shadow generator online css shadow maker layered box shadow inset shadow css
Need help?
Found an issue with this tool? Let our team know.
Report an issue

Add this free tool to your own website — copy and paste the code below.