CSS Box Shadow Generator
Build CSS box shadows visually with layer support and live preview
box-shadow: 4px 4px 10px 0px rgba(0, 0, 0, 0.25);
Related Developer Tools
What Is CSS Box Shadow Generator?
The CSS Box Shadow Generator lets you visually create and customize box-shadow effects for any HTML element. Control offset, blur radius, spread, color, opacity, and inset mode with sliders and a live preview. Stack multiple layers and export the complete CSS with one click.
How to Use
- Adjust the sliders to set offset X/Y, blur, spread, and opacity
- Pick a shadow color using the color picker
- Toggle Inset to create an inner shadow effect
- Click "Add Layer" to stack multiple shadow layers
- Click Copy CSS to copy the generated code
Features
- Full control over offset, blur, spread, color and opacity
- Inset shadow support for inner glow effects
- Multi-layer shadow stacking
- Adjustable preview background and box colors
- Real-time live preview
- One-click CSS code copy
Frequently Asked Questions
What does the blur radius control?
The blur radius controls how soft or sharp the shadow edge appears. A value of 0 produces a hard-edged shadow, while larger values create a softer, more diffused effect.
What is an inset shadow?
An inset shadow appears inside the element rather than outside, creating a pressed-in or embossed look. Toggle the Inset checkbox to switch between outer and inner shadow modes.
Can I stack multiple shadow layers?
Yes. CSS supports multiple comma-separated box shadows. Click "Add Layer" to add another shadow and switch between layers using the layer tabs to configure each one independently.