CSS Box Shadow Generator
NEWDesign 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.
Quick Examples
Typical inputs and the results this tool produces.
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
Start from a preset
Pick Soft, Layered, Neumorphism or another preset, or begin with the default layer.
Adjust the layer
Move the offset, blur, spread and opacity sliders and pick a shadow colour. Tick Inset if needed.
Add more layers
Press + Add layer to duplicate the current layer and refine each one separately.
Copy the CSS
Press Copy CSS and paste the box-shadow declaration into your stylesheet.