Box Shadow Generator (Free CSS)
Free box shadow generator — set offset, blur, spread and shadow color, then copy ready-to-paste CSS box-shadow code for your site in seconds.
Box Shadow Generator
Fill in the inputs below, hit Generate, and your results appear instantly — copy any item in one click.
Something went wrong running this tool. Your inputs were kept.
What is Box shadow generator?
Box Shadow Generator — Free box shadow generator — set offset, blur, spread and shadow color, then copy ready-to-paste CSS box-shadow code for your site in seconds.
The shadow declaration is assembled with the template-literal string-building approach from the vendored neumorphism app (BSD-3, Adam Giebl) — its Configuration.js code-string builder — and colors are validated with its own pure isValidColor hex check (3-digit hex is expanded to 6 digits exactly as its colorLuminance normalizes). The tool produces one standard outer box-shadow layer; it does not model neumorphic dual light/dark pairs or inset shadows, and color input is hex-only.
Why use this box shadow generator?
Built for box shadow generator
Free box shadow generator — set offset, blur, spread and shadow color, then copy ready-to-paste CSS box-shadow code for your site in seconds.
Transparent & honest
Only 6-digit (or expandable 3-digit) hex colors are accepted — named colors and rgb()/hsl() strings are rejected because the underlying validator is hex-only.
Private by design
Everything runs in your browser. Your inputs never leave your device.
Works everywhere
Fully responsive — perfect on desktop, tablet, and mobile. No app needed.
Regularly updated
Regularly maintained and reviewed to ensure accuracy.
Free forever
No accounts, no limits, no watermarks. Use Box Shadow Generator as much as you need.
How to use Box Shadow Generator
- 1Type the "Horizontal offset (px)" and "Vertical offset (px)" — positive X pushes the shadow right, positive Y pushes it down.
- 2Set the "Blur radius (px)" to soften the shadow edge and the "Spread (px)" to grow or shrink it.
- 3Enter your shadow color in the "Shadow color" box as a hex value like #a0a0a0.
- 4Run the tool to generate the box-shadow declaration.
- 5Copy the CSS code from the result and paste it into your stylesheet or inline style.
What can you do with Box Shadow Generator?
- Css box shadow generator — Free box shadow generator — set offset, blur, spread and shadow color, then copy ready-to-paste CSS box-shadow code for your site in seconds.
- Make drop shadow with css — Free box shadow generator — set offset, blur, spread and shadow color, then copy ready-to-paste CSS box-shadow code for your site in seconds.
- Where to paste box shadow css code — Free box shadow generator — set offset, blur, spread and shadow color, then copy ready-to-paste CSS box-shadow code for your site in seconds.
- What offset blur spread values mean — Free box shadow generator — set offset, blur, spread and shadow color, then copy ready-to-paste CSS box-shadow code for your site in seconds.
Good to know
- Only 6-digit (or expandable 3-digit) hex colors are accepted — named colors and rgb()/hsl() strings are rejected because the underlying validator is hex-only.
- Blur radius cannot be negative (CSS forbids it); the tool rejects negative blur instead of silently clamping.
- The output is a single standard outer box-shadow layer — no inset keyword, no dual light/dark neumorphic pair.
How it works
The shadow declaration is assembled with the template-literal string-building approach from the vendored neumorphism app (BSD-3, Adam Giebl) — its Configuration.js code-string builder — and colors are validated with its own pure isValidColor hex check (3-digit hex is expanded to 6 digits exactly as its colorLuminance normalizes). The tool produces one standard outer box-shadow layer; it does not model neumorphic dual light/dark pairs or inset shadows, and color input is hex-only.
Examples
Status: ok — box-shadow: 10px 10px 20px 0 #a0a0a0;
Status: ok — box-shadow: 0 4px 8px 2px #333333;
Status: ok — blank fields fall back to the placeholder defaults: box-shadow: 10px 10px 20px 0 #a0a0a0;
Related searches
People also search for these — this tool handles them all: