Box Shadow Generator

CSS

  

A visual CSS box-shadow builder. Drag sliders for offset, blur, spread, colour and inset, watch the live preview, then copy the code. Free, instant, nothing to install.

Frequently Asked Questions

How does the CSS box-shadow property work?
box-shadow takes a horizontal offset, a vertical offset, an optional blur radius, an optional spread radius and a colour — such as box-shadow: 4px 4px 12px 0 rgba(0,0,0,0.2). Positive offsets push the shadow right and down; blur softens the edge; spread grows or shrinks it; the colour (usually a translucent rgba) sets how dark it is. The keyword inset draws the shadow inside the element. This tool builds that value from sliders.
What's the difference between blur and spread?
Blur radius controls how soft the edge is — 0 is a hard edge, larger values fade it out. Spread radius changes the shadow's size before blurring — positive makes it larger than the element, negative smaller. Together they take you from a crisp offset block to a soft, diffuse glow.
How do I make a soft, subtle shadow?
Use a small vertical offset, a fairly large blur, little or no spread, and a low-opacity colour — like 0px 8px 24px rgba(0,0,0,0.12). Keeping the horizontal offset at zero and the colour translucent reads as gentle depth rather than a hard drop. Drag the sliders and watch the preview to dial it in.
Does the generated CSS work everywhere?
Yes. box-shadow is supported in every modern browser (Chrome, Edge, Firefox, Safari) on desktop and mobile, with no prefix needed. Everything runs in your browser and nothing is uploaded.