CSS Box Shadow Generator
Visually create CSS box shadows with sliders for offset, blur, spread, color, and opacity. Add multiple layered shadows and copy the ready-to-use CSS code.
box-shadow: 5px 5px 10px 0px rgba(0,0,0,0.30);
CSS Box Shadow Syntax
The full box-shadow syntax is: box-shadow: [inset] offset-x offset-y [blur-radius] [spread-radius] color. All length values are in pixels. Multiple shadows are comma-separated and rendered back-to-front (first value is on top).
For realistic depth, professional designs often stack multiple subtle shadows at different sizes. A common pattern uses a tight shadow for definition and a soft, diffuse shadow for depth. This creates the material design "elevation" effect used by Google and many modern UI libraries.
This generator uses rgba() format for colors, which is the best practice for shadows as it allows transparent colors that blend naturally over any background.
Box Shadow FAQs
What is box-shadow in CSS?
What do the box-shadow parameters mean?
What is an inset shadow?
How do I add multiple shadows?
How do I use rgba() for shadow colors?
What are some popular shadow styles?
Related Tools
JSON Formatter & Validator
Format, validate, and minify JSON instantly. Private — runs entirely in your browser.
Regex Tester
Test regular expressions in real-time with live match highlighting and capture group display.
Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 to text. UTF-8 safe, private, instant.