CSS Box Shadow Generator
Dial in a CSS box-shadow with live preview and copy the generated code — offset, blur, spread, color, inset.
Related tools
All Colours & CSS tools →CSS Box Shadow Generator is free to use as often as you like, directly from this page. It sits under Colours & CSS in our catalogue, alongside CSS Compressor and CSS Flexbox Playground.
How to use it
- Open the tool — no signup or install needed.
- Enter your input or adjust the available options.
- Get your result instantly, then copy or download it.
Frequently asked questions
What is CSS Box Shadow Generator?
Dial in a CSS box-shadow with live preview and copy the generated code — offset, blur, spread, color, inset.
When would I actually use this?
Moving a colour between a design tool and a stylesheet, building a palette around one brand colour, and checking text will be readable on it.
What is the most common mistake?
Judging contrast by eye. Two colours that look distinct on a bright monitor can fail the accessibility ratio outright, and the ratio is the thing an audit will measure.
How is CSS Box Shadow Generator different from CSS Compressor?
They sit next to each other but answer different questions. CSS Compressor: minify CSS by stripping comments and whitespace to shrink your stylesheet's size. Pick whichever matches what you're starting from — both are free.
Is there a tool for the next step?
CSS Flexbox Playground is the closest one after this: Experiment with flex-direction, wrap, justify-content, align-items and gap — live preview and copyable CSS.
What else is worth having open alongside it?
CSS Grid Generator and CSS Beautifier — they come up in the same task often enough to be worth a second tab.
Where do the figures come from?
Conversions between HEX, RGB and HSL are exact. Contrast follows the WCAG 2 relative-luminance formula; CMYK is device-dependent, so a screen value is an approximation of what will print.