Create beautiful CSS box shadows with live preview and instant code.
Create beautiful CSS box shadows with live preview
box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.25);
Preview Box
Adjust shadows
A CSS box shadow generator lets you visually design shadow effects for HTML elements without writing code by hand. You adjust sliders for horizontal offset, vertical offset, blur radius, spread radius, and color — and the tool outputs the exact box-shadow CSS property you can paste directly into your stylesheet.
Box shadows are one of the most effective ways to add depth and dimension to cards, buttons, modals, and containers. Whether you want a subtle lift, a hard material shadow, or a colorful neon glow, tweaking just a few values produces dramatically different results — making a live preview tool invaluable.
Adjust the X Offset slider to move the shadow horizontally. Positive values push it right; negative push it left.
Adjust the Y Offset slider to move the shadow vertically. Positive values push it down; negative push it up.
Set the Blur Radius to control softness. A value of 0 creates a hard edge; higher values create a diffused shadow.
Use the Spread Radius to expand or shrink the shadow beyond the element's border box.
Pick a shadow color and set the opacity. Try semi-transparent blacks (rgba) for realistic shadows.
Copy the generated CSS and paste it into your stylesheet.
Yes. CSS supports comma-separated multiple shadows. Use the multi-layer option in the generator to combine shadows — for example, a large soft shadow plus a sharp inner highlight.
box-shadow follows the rectangular border box of the element. The CSS filter drop-shadow() follows the actual painted shape, making it better for irregular shapes like PNGs with transparency.
Box shadows do not affect layout — they sit outside the normal flow. Modern browsers composite shadows on the GPU, so performance impact is minimal unless you animate them at high frequency.
box-shadow has had universal browser support since IE9. No vendor prefixes are needed for modern development.
Common questions about Box Shadow Generator