Skip to content

CSS Box Shadow Generator

Build a CSS box-shadow with horizontal and vertical offsets, blur, spread, and color opacity.

Input

Loading tool…

Result

Local processing

Your result will appear here.

How to use it

Set the offsets and blur, enter a hex color, and adjust opacity. Choose an inset shadow if it should fall inside the box. Copy the declaration into a CSS rule.

Worked example

A vertical offset of 8 px, a blur of 24 px, and a spread of −4 px create a soft shadow below a card.

Browse design