CSS Box Shadow Generator

Background:

Generated CSS

box-shadow: none;

How to Use the CSS Box Shadow Generator

Features

Live Preview

See your shadow changes instantly as you drag sliders — no refresh needed.

Multi-layer Shadows

Add up to 5 separate shadow layers for complex, realistic effects.

Inset / Outer

Toggle inset mode to create inner shadows for embossed or pressed-in effects.

Color & Opacity

Full color picker with separate opacity control. Output uses rgba() automatically.

One-click Copy

Copy the complete CSS declaration with one click. Paste directly into your stylesheet.

Custom Background

Adjust the preview background color to match your actual page background.

Use Cases

Frequently Asked Questions

What is CSS box-shadow?

CSS box-shadow adds shadow effects around an HTML element's frame. It takes values for horizontal offset, vertical offset, blur radius, spread radius, color, and optionally 'inset' for inner shadows.

Can I add multiple shadow layers?

Yes. Click + Layer to add up to 5 layers. Each layer is independent with its own settings. Multiple shadows are comma-separated in the CSS output.

Does this work in all browsers?

box-shadow is supported in all modern browsers without vendor prefixes. The generated CSS works in Chrome, Firefox, Safari, Edge, and others.

What does 'spread' do?

The spread value expands or contracts the shadow. Positive values make the shadow larger than the element, negative values shrink it. A spread of 0 keeps the shadow the same size as the element.

How do I use the generated CSS?

Click Copy CSS to copy the property. Paste it as a CSS rule: .my-element { box-shadow: [pasted value]; }. You can also paste it directly into browser DevTools.

Found this useful? Share it!

More Free Tools