All toolsCategoriesAboutContactPrivacy
Color & Design Tools

CSS Box Shadow Generator

Adjust the offset, blur, spread, colour and opacity to create a soft card shadow or a hard offset shadow. The preview sits on a neutral background so you can judge the result, and the CSS rule is generated as you drag.

Updated · Free · No sign-up · Runs on your device

Loading the tool…

How to use it

  1. Move the sliders for offset, blur, spread and opacity.
  2. Pick a colour and tick inset if you need an inner shadow.
  3. Copy the finished box-shadow rule.

Who it helps

Front-end developers matching a design, designers exploring elevation, and anyone learning how CSS shadows work.

Worked example

0 18px 35px -8px rgba(30, 27, 75, 0.25) gives a soft card shadow without a harsh edge.

Limitations

Produces a single shadow layer. Complex designs may need several comma-separated shadows, which you can combine by hand.

Privacy

What you type or paste is processed in memory in this tab. It is not sent to a server, and nothing is saved after you close the page unless the tool says otherwise.

FAQ

What does spread do?

It grows or shrinks the shadow before blurring. A negative spread keeps the shadow tucked under the element.

Quick facts

Category
Color & Design Tools
Works on
Phone, tablet and desktop
Account
Not required
Price
Free
Data
Stays on your device
Updated