⚡
usefultools.dev
▣

CSS Box Shadow Generator

NEW

Design layered CSS box shadows with a live preview and copy the box-shadow code.

Runs 100% in your browser — your input is never uploaded or stored on our servers.

Presets
px
px
px
px
px
⚡

Quick Examples

Typical inputs and the results this tool produces.

Soft
Soft preset
box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.2);
Hard
Hard preset
box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 1);
Layered
Layered preset (3 layers)
0 1px 2px …, 0 4px 8px …, 0 12px 24px … rgba(0, 0, 0, 0.12)
Inset
Inset preset
box-shadow: inset 0 4px 12px 0 rgba(0, 0, 0, 0.3);
📖

Overview

The CSS box-shadow property draws one or more shadows around an element's box. Each shadow is described by a horizontal offset, a vertical offset, a blur radius, a spread radius, a colour and an optional inset keyword: box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.2).

This CSS box shadow generator lets you tune each of those values with sliders and watch the result on a live preview box. Stack up to eight layers to create the smooth, realistic shadows used by modern design systems, add inset shadows for pressed and inner effects, or start from a preset such as Soft, Layered, Neumorphism, Inset or Glow.

Colours are written as rgba() so opacity is explicit, and the output is ready to paste into any stylesheet or CSS-in-JS object. Everything runs in your browser.

Why use this tool?

  • See the shadow instantly on a customisable preview box
  • Stack multiple layers for natural, soft depth
  • Inset, spread and negative offsets supported
  • Presets for soft, hard, neumorphism and glow effects
  • One-click copy of valid CSS
⭐

Features

🧱

Multiple layers

Add, select and remove up to eight shadow layers, each with its own settings.

🎚️

Full control

Horizontal and vertical offset, blur, spread, colour and opacity per layer.

⬇️

Inset shadows

Toggle inset to draw the shadow inside the box.

✨

Presets

Soft, Layered, Hard, Neumorphism, Inset and Glow starting points.

👁️

Live preview

Change the page background, box colour and corner radius to match your design.

📋

Copy CSS

Formatted box-shadow declaration with one layer per line.

🛠️

How to Use

1

Start from a preset

Pick Soft, Layered, Neumorphism or another preset, or begin with the default layer.

2

Adjust the layer

Move the offset, blur, spread and opacity sliders and pick a shadow colour. Tick Inset if needed.

3

Add more layers

Press + Add layer to duplicate the current layer and refine each one separately.

4

Copy the CSS

Press Copy CSS and paste the box-shadow declaration into your stylesheet.

🤔

Frequently Asked Questions