CSS Box Shadow Generator
Design box shadows with sliders for offset, blur, spread, colour and opacity — live preview and copy-ready CSS including inset support.
How to use
- Drag the offset, blur and spread sliders.
- Pick the colour and opacity.
- Toggle inset for inner shadows.
- Copy the generated CSS.
Example
Input: 0/8 offset · 24 blur · −6 spread · #4f46e5 at 35%
Output: box-shadow: 0px 8px 24px -6px rgba(79, 70, 229, 0.35);
How it works
The shadow is described by offset-x, offset-y, blur, spread, colour and opacity, and rendered as a CSS box-shadow declaration you can copy into your stylesheet.
Limits & compatibility
- Single shadow per rule — layered shadows need manual stacking.
- Colour input is hex; output is rgba with 2-decimal alpha.
- Values are rounded to whole pixels.
Privacy
All processing runs locally in your browser. Nothing is transmitted, logged or stored.
Related tools
Questions about CSS Box Shadow Generator
Is my input private?
Yes. This tool runs entirely in your browser — your input never leaves your device, is never uploaded to a server and is never stored.
How accurate is the result, and what are the limits?
The tool page states its formula and limits openly. Check them before relying on a result, and verify anything consequential — financial, legal, medical or safety-critical — against an authoritative source.
What happens to files I open with this tool?
Files are processed locally in your browser and never uploaded; closing the tab discards them. Text tools never store what you paste — it lives only in the page while you use it.