Developer Tools

CSS Box Shadow Generator with Worked Examples

Generate a CSS box-shadow from offset, blur, spread and colour. Enter horizontal offset, vertical offset, blur radius and spread and a few more details and read the result straight away. Example: horizontal offset 0 px, vertical offset 4 px, blur radius 12 px, spread 0 px and shadow colour “rgba(0, 0, 0, 0.15)” → box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);.

01

Your inputs

Start with the example, or enter your own values.

Processed in your browser. Your inputs stay on this device.

02

Your result

A little clarity, coming right up.

Make room for the answer.

Enter your values and run the tool. Your result will appear here.

How to use the CSS Box Shadow Generator

Set the offsets, blur, spread and colour. Positive offsets move the shadow right and down.

Examples

  • With the default values
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
  • With vertical offset set to 8
    box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.15);

Limitations and assumptions

Confirm assumptions, units and applicable local rules before relying on results. Detailed content, accessibility and edge-case review remains ongoing.

Frequently asked questions

What does the CSS Box Shadow Generator do?

Generate a CSS box-shadow from offset, blur, spread and colour.

How does the CSS Box Shadow Generator work?

Set the offsets, blur, spread and colour. Positive offsets move the shadow right and down.

What should I keep in mind when using the CSS Box Shadow Generator?

Confirm assumptions, units and applicable local rules before relying on results.

Can I see an example of the CSS Box Shadow Generator?

Example: horizontal offset 0 px, vertical offset 4 px, blur radius 12 px, spread 0 px and shadow colour “rgba(0, 0, 0, 0.15)” → box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);.

Is the CSS Box Shadow Generator free to use?

Yes. It is free, needs no account and runs in your browser.