CSS Box Shadow Generator
Build smooth, realistic shadows with sliders and copy the box-shadow CSS.
- Free & unlimited
- No sign-up
- Instant results
How to use CSS Box Shadow Generator
- Adjust offset, blur, spread, colour and opacity, or pick a preset.
- Add more layers for softer, more realistic shadows.
- Change the background and box colour to test, then copy the CSS.
The values
| Value | Effect |
|---|---|
| Horizontal / vertical offset | Moves the shadow right/down (negative: left/up). |
| Blur | Softens the edge. 0 is a hard shadow. |
| Spread | Grows or shrinks the shadow. |
| Inset | Puts the shadow inside the box. |
Layered shadows look real
Real shadows are sharp near the object and soft further away. Stacking two to five layers with growing blur and low opacity (try the Layered preset) gives that natural depth that single shadows can't.
Frequently asked questions
Does box-shadow slow pages down?
A few shadows are fine. Avoid animating large blurred shadows; animate opacity instead.
How do I make neumorphism?
Use the Neumorphic preset: a light and a dark shadow on a box the same colour as the background.
Can I use the code anywhere?
Yes, it is standard CSS.
Does it work in all browsers?
Yes, box-shadow works everywhere without prefixes.
Related tools
CSS Gradient Generator
Design linear, radial and conic gradients with CSS.
Color Converter
Convert HEX, RGB, HSL, HSV and CMYK colours.
CSS Minifier
Shrink CSS by removing comments and spaces.
Code Beautifier
Format HTML, CSS, JavaScript, JSON, YAML and Markdown.
More Developer Tools
JSON Formatter & Validator
Format, validate and minify JSON with clear error messages.
JSON to CSV Converter
Convert a JSON array to CSV for Excel or Google Sheets.
CSV to JSON Converter
Convert CSV or Excel data into a JSON array.
Base64 Encode & Decode
Encode text to Base64 or decode Base64, UTF-8 safe.
URL Encode & Decode
Percent-encode or decode URLs and split them into parts.
UUID Generator
Generate random v4 or time-ordered v7 UUIDs in bulk.
JWT Decoder
Decode a JSON Web Token and check when it expires.
Hash Generator
MD5, SHA-1, SHA-256 and SHA-512 hashes for text or files.