CSS Box Shadow Generator
Tune a shadow and copy the CSS.
Also called: box-shadow generator, CSS shadow maker.
DESIGN
Runs locally in your browserCSS Box Shadow Generator
Tune a shadow and copy the CSS.
Ready. Fill in the fields above, then press Run tool.
Privacy note: this tool runs in your browser, so the text you enter stays on your device.
Watch: how to use the CSS Box Shadow Generator (11 seconds)
Recorded on a phone, steps written on screen, no sound.
About the CSS Box Shadow Generator
Set the horizontal and vertical offset, blur, spread, colour, opacity and inset, see the shadow live and copy the CSS box-shadow line.
Soft shadows usually use a small offset, a large blur and low opacity (0.1–0.2).
How to use the CSS Box Shadow Generator
- Add your inputFill in horizontal offset, vertical offset, blur and spread. An example is already filled in, so you can press Run tool first to see how it works.
- Pick the optionsinset shadow (the defaults suit most uses).
- Press Run toolThe result appears right under the button.
- Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.
This tool works inside your browser: what you enter stays on your device.
Example
A sample input and the result the CSS Box Shadow Generator gives for it (produced by the tool itself, not typed by hand).
- Horizontal offset
- 0
- Vertical offset
- 8
- Blur
- 24
- Spread
- 0
- Colour
- #0f172a
- Opacity
- 0.15
Result:
box-shadow: 0px 8px 24px 0px rgba(15, 23, 42, 0.15); -webkit-box-shadow: 0px 8px 24px 0px rgba(15, 23, 42, 0.15);
Good to know
- What you need
- You type or choose: Horizontal offset, Vertical offset, Blur, Spread, Colour, Opacity
- Where it runs
- In your browser, on your device.
- Cost
- Free, no sign-up.
Questions
What does spread do?
Makes the shadow bigger or smaller than the box before blurring.
What is an inset shadow?
A shadow inside the box, as if pressed in.
More tools in Design
- CSS clamp() Fluid Size Generator
- CSS Gradient Generator
- Image Colour Palette Extractor
- Lorem Ipsum Generator
- PX ⇄ REM Converter
- Screen Colour Picker (eyedropper)
- Screenshot Mockup (browser or phone frame)
- SVG Minifier
- App Icon & Favicon Generator (ZIP)
- Aspect Ratio Calculator
- Chart Maker (bar, line, pie)
- Colour Contrast Checker