All tools

CSS Shadow Generator

Build box-shadow and text-shadow visually and copy the CSS.

Preview
Preview background
#f5f5f5

Layer 1

X offset4px
Y offset4px
Blur12px
Spread0px
Opacity20%
Color
#000000

CSS

box-shadow: 4px 4px 12px 0px rgba(0,0,0,0.20);

Box shadow vs text shadow

  • box-shadow | applies a shadow to the outside (or inside with inset) of an element's box. Used for cards, buttons, and modals.
  • text-shadow | applies a shadow directly to text characters. Used for headings and decorative typography.

Frequently asked questions

What does spread radius do?

Spread expands or contracts the shadow before blur is applied. A positive value makes the shadow larger than the element; a negative value makes it smaller. Only available on box-shadow.

Can I add multiple shadows?

Yes | CSS allows comma-separated shadow layers. Click Add layer to stack multiple shadows for depth effects.

Page share preview

More free image tools