Skip to content

Design tools

How to make a CSS box shadow online

A box-shadow is easier to tune visually than by typing four lengths and a color. Dial the controls, check the preview, then paste the property into your stylesheet.

Open the box shadow generator

Set offset, blur, and spread first

Sideways and downward offsets place the shadow. Blur softens the edge. Spread grows or shrinks the shadow before blur is applied. Values are in pixels in the usual CSS order.

Open the free CSS box shadow generator, adjust the sliders, and watch the preview update before you copy.

Use opacity and inset when the design needs them

Opacity below 100 writes an rgba() color so the shadow sits lightly over the background. Turn on inset when the shadow should fall inside the box, such as a pressed button.

Copy the finished box-shadow property in one click. You can stack more shadows later in CSS if a design needs a second layer.

Nothing leaves the page

The preview and the CSS are created in your browser. No design file is uploaded.

Open the box shadow generator

All guides · Blog

Frequently asked questions

What is a CSS box shadow generator?

It lets you set offset, blur, spread, color, and inset, preview the result, and copy a ready box-shadow property without writing the syntax by hand.

What order are the numbers in?

Pixels in the order offset-x, offset-y, blur, and spread, matching the CSS box-shadow syntax.

Can I make an inset shadow?

Yes. Enable inset so the shadow sits inside the box instead of outside.

More questions on the FAQ page · Browse guides