Box shadow generator

Design a CSS box shadow with a live preview.

  • Development
  • 100% free
  • No sign-up
  • Runs in your browser
Box shadow generator
px
px
px
px
%

What is the box shadow generator?

The box shadow generator lets you design a CSS box-shadow visually: set the horizontal and vertical offset, the blur, the spread, the color and the opacity, or make it an inset shadow. The preview and the CSS update as you change the values.

Soft shadows with a large blur and a slightly negative spread give cards and buttons a modern, floating look.

How to use the box shadow generator

  1. 1Set the offset, blur and spread.
  2. 2Choose the color and the opacity, and whether the shadow is inset.
  3. 3Copy the box-shadow CSS.

Features

Live preview

See the shadow on a card as you edit.

Inset shadows

Inner shadows for inputs and pressed buttons.

Opacity

The color is converted to RGBA.

Clean CSS

One line, ready to paste.

Frequently asked questions

What do the four values mean?

Horizontal offset, vertical offset, blur radius and spread radius, followed by the color.

How do I make a soft shadow?

Use a large blur, a small vertical offset, a negative spread and a low opacity, e.g. 0 10px 30px -5px rgba(0,0,0,.25).

Can I combine several shadows?

Yes, separate several shadows with commas in the box-shadow property.

Do shadows slow down a page?

Normally not; only very large, animated shadows can cost performance.