CSS Box Shadow Generator

Tune a shadow and copy the CSS.

Also called: box-shadow generator, CSS shadow maker.

FreeNo sign-upRuns in your browser
DESIGN

CSS Box Shadow Generator

Tune a shadow and copy the CSS.

Runs locally in your browser
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.

Find a tool

Loading tools…

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

  1. 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.
  2. Pick the optionsinset shadow (the defaults suit most uses).
  3. Press Run toolThe result appears right under the button.
  4. 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

See all Design tools