Box Shadow Generator
Build CSS box shadows from one or more layers, see them on a live preview, and copy the CSS. Drag layers to change their order.
Shadow Layers
1 Layer
- ☁️
Layer 1
0px, 10px, 20px, 0px
Editing Layer 1
Preset Shadows
Preview Element
💡 How Box Shadows Work
Box shadows are defined by offset (X and Y), blur radius, spread distance, color, and optional inset property. Multiple shadows can be combined by separating them with commas. The order matters - earlier shadows appear behind later ones.
Generated CSS
box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.2);
Copy and paste this CSS into your stylesheet to apply the box shadow effect.
Visual Preview
Drag me around to see the shadow from different angles
1 layer • Drag to interact
Layer Visualization
🚀 Usage Example
.card {
box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.2);
/* Add other styles as needed */
background: white;
border-radius: 12px;
padding: 24px;
}☁️ Multi-Layered Shadows
Create complex shadow effects by combining multiple layers with different offsets, blur, and colors.
🔄 Drag & Drop Reordering
Reorder shadow layers visually to control which shadows appear in front or behind others.
🔒 Privacy First
All CSS generation happens locally in your browser. Your design parameters never leave your device.
Related tools
All 64 tools →- Glassmorphism GeneratorGenerate CSS backdrop-filter code for frosted-glass effects with customizable blur and transparency.
- CSS Clamp CalculatorGenerate fluid typography code that scales between specified minimum and maximum screen sizes.
- CSS Grid/Flexbox GeneratorVisual drag-and-drop interface to generate CSS Grid and Flexbox layout code instantly.
- SVG to JSX/TSX ConverterConvert raw SVG into clean React/TypeScript component code with proper attribute casing.
- Color ConverterConvert between HEX, RGB, HSL, and CMYK color formats. Includes color picker and preview.