# CSS Box Shadow Generator

> Adjust offset, blur, spread, color and opacity with sliders, switch on inset, see the shadow live and copy the box-shadow CSS in one click.

- Page: https://mondaytool.com/tools/box-shadow-generator
- Category: developer-tools
- Price: free, no sign-up. Most tools run in the browser, so input is not uploaded.
- Use it: open https://mondaytool.com/tools/box-shadow-generator. It is an interactive web page; this file is its documentation.

Last updated: 16 October 2026

## Build a box shadow and copy the CSS

This **CSS box-shadow generator** lets you tune a shadow with sliders and watch it on a sample box. Once you like it, copy the finished `box-shadow` line.

## How to use it

1. Set the **Horizontal Offset** and **Vertical Offset** (-50 to 50 px).
2. Set the **Blur Radius** (0 to 100 px) and **Spread Radius** (-50 to 50 px).
3. Pick a **Color** and set its **Opacity**.
4. Tick **Inset shadow** if you want the shadow inside the box.
5. Click **Copy** and paste the CSS into your stylesheet.

## How it works

The tool joins your settings in CSS order:

`box-shadow: [inset] x y blur spread color;`

The color and opacity are combined into one 8-digit hex value such as `#00000040`. The default shadow is 4px 8px 16px 0 at about 25% black.

## What you see

- A white sample box on a light background with your shadow applied.
- The current value beside every slider.
- The CSS line, ready to copy.

## Assumptions and limits

- One shadow at a time. Layered shadows are not supported.
- All lengths are in pixels.
- The 8-digit hex color works in modern browsers. Very old browsers may need an rgba() value, which you would write by hand.

## Frequently asked questions

### What does spread do?

A positive spread makes the shadow larger than the box before blur. A negative spread shrinks it, which is handy for a soft shadow that shows only on one side.

### How do I make the shadow softer?

Raise the blur radius, lower the opacity, or both.

### What does inset do?

It draws the shadow inside the edges of the box instead of outside, which gives a pressed-in look.
