# Box Shadow Generator

Canonical URL: https://www.offlineutils.com/box-shadow-generator
Category: CSS
Published: 2026-06-25
Publisher: offlineutils.com
Runs entirely in the browser; nothing entered into the tool is uploaded.

> A Box Shadow Generator builds a CSS box-shadow from visual controls — horizontal and vertical offset, blur, spread, color, opacity, and inset — with a live preview and copy-ready CSS, all in your browser.

Drag the offset, blur, and spread sliders, pick a shadow color and opacity, and toggle inset to switch between a drop shadow and an inner shadow. The preview box updates live and the box-shadow declaration below always matches it. Output is plain CSS you can paste into any stylesheet. Nothing is uploaded.

## Features

- Horizontal/vertical offset, blur, and spread sliders
- Shadow color with opacity control
- Inset toggle for inner shadows
- Live preview that matches the output exactly
- Copy-ready box-shadow declaration
- 100% in-browser — nothing uploaded

## Use cases

- Adding a soft elevation shadow to cards and modals
- Creating an inset shadow for a pressed-button state
- Matching a shadow from a design spec by eye
- Prototyping a layered shadow look before committing values

## How to use it

1. **Set the offsets** — Drag horizontal and vertical sliders to position the shadow.
2. **Tune blur, spread, and color** — Adjust softness, size, and color/opacity; toggle inset for an inner shadow.
3. **Copy the CSS** — The box-shadow value updates live — copy it with one click.

## When to use it, and when to use something else

- **vs Writing box-shadow by hand** — use Box Shadow Generator when you want to tune blur and spread visually. Use Writing box-shadow by hand when you're copying exact values from a design token.
- **vs DevTools shadow editor** — use Box Shadow Generator when you want a focused preview and copyable output without inspecting an element. Use DevTools shadow editor when you're editing a shadow on a live page element.

## Frequently asked questions

### What do blur and spread actually do?

Blur softens the shadow's edge — 0 is a hard edge, higher values fade it out. Spread grows (positive) or shrinks (negative) the shadow before the blur is applied, so a positive spread makes the shadow larger than the element.

### What is an inset shadow?

An inset shadow is drawn inside the element's box instead of behind it, making the element look recessed or pressed in. Toggle the inset option to switch between a normal drop shadow and an inner one.

### Can I layer multiple shadows?

CSS supports comma-separated shadow layers. This generator outputs a single, clean layer you can duplicate and combine — paste it twice with different values to stack effects.

## Related tools

- https://www.offlineutils.com/css-gradient-generator
- https://www.offlineutils.com/border-radius-generator
- https://www.offlineutils.com/glassmorphism-generator
