# CSS Box Shadow Generator

> Free CSS box shadow generator. Layer shadows with offsets, blur, spread, color and opacity, preview outer or inset effects, then copy the box-shadow CSS code.

Free online tool by ZemoPro. Open it at https://zemopro.com/tools/css-box-shadow-generator (Developer tools). Runs in the browser; inputs stay on the device.

Design a soft card shadow or a restrained glow using individual layers. Compare offset, blur and spread on the sample element before exporting the box-shadow declaration.

## How to use it

Add up to six shadow layers, select one to edit, adjust offsets and color, then copy or download CSS.

## Use cases

- Separate softness from size
- Combine a core with a halo
- Check clipping and paint cost

## Example

Input:

```
X 0, Y 12, blur 28, spread 0, blue at 30%
```

Result:

```
box-shadow: 0px 12px 28px 0px rgb(37 99 235 / 30%);
```

Illustrative settings; actual output follows your chosen controls and browser.

## Separate softness from size

Blur softens a shadow edge; spread expands or contracts its shape. A large blur with a negative spread can produce a soft shadow without a heavy outline. X and Y offsets position the shadow relative to the box.

## Combine a core with a halo

For a neon-style border add one small, stronger shadow and a second wider, lower-opacity layer. Use restrained values on real interfaces so glows do not obscure text, focus indicators or neighboring controls.

## Check clipping and paint cost

An ancestor with overflow hidden can clip the result. Large shadows over many elements can add paint cost; this generator does not benchmark your website. Compare the final layout on a mobile device, not just the sample card.

## Limitations

Large shadows can increase paint work and be clipped by overflow. Preview is illustrative; check contrast, performance and clipping in your actual design.

## FAQ

### Can I create inset shadows?

Yes. Select Inset shadow for the current layer. Other layers can remain outside.

### How many layers are supported?

Up to six. The comma-separated CSS preserves their order; the first shadow is drawn on top.

### Is box-shadow the same as drop-shadow?

No. Box-shadow follows the element box; a filter drop-shadow can follow visible alpha content such as a transparent image.

## Related tools

- [Design a flexbox layout](https://zemopro.com/tools/css-flexbox-generator)
- [Build a responsive CSS grid](https://zemopro.com/tools/css-grid-generator)
- [Generate semantic HTML elements](https://zemopro.com/tools/html-code-generator)

---

About ZemoPro: ZemoPro (zemopro.com) is a free collection of 111 online tools for images, PDFs, text, code, SEO, websites and social media, plus practical guides. No account or sign-up is needed. 95 of the 111 tools run entirely in the browser, so files and text stay on the user’s device. Remote tools send the submitted address and, in supported paste modes, the pasted HTML, XML or text to ZemoPro’s server for analysis. Public URL fetches use private-network protections. Check each tool’s processing notice before submitting sensitive information. Each tool page explains its limits honestly; ZemoPro does not promise rankings, traffic or results.
