Box Shadow Generator

Design pixel-perfect CSS box shadows with real-time preview, multiple layers, and one-click code copying

Layer 1
0px
4px
6px
-1px
box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1);

How to Use This Tool

1

Adjust the shadow controls: X offset, Y offset, blur radius, and spread.

2

Set the shadow color and opacity using the color picker and slider.

3

Toggle "Inset" for an inner shadow effect.

4

Add multiple shadow layers for complex effects. Remove layers you don't need.

5

Try a preset (Subtle, Medium, Heavy, Floating, Pressed) to get started quickly. Copy the CSS code when done.

About This Tool

Box Shadow Generator is a visual CSS box-shadow builder with real-time preview. Design single or multi-layered shadows by adjusting X/Y offset, blur, spread, color, and opacity with intuitive sliders. Add multiple shadow layers for depth and complexity, toggle inset for inner shadows, and use built-in presets to get started quickly. The tool generates clean, standards-compliant CSS you can copy directly into your stylesheets.

Frequently Asked Questions

Spread expands or contracts the shadow. Positive values make the shadow larger than the element, negative values make it smaller.

An inset shadow appears inside the element rather than outside it, creating a pressed or recessed effect.

Multiple layers create more realistic, natural-looking shadows. Combining a tight, dark shadow with a broader, lighter one mimics real-world lighting.

Share This Tool

Related Tools

Back to Generators