Box Shadow Generator

.box {
  box-shadow: 10px 10px 20px 0px rgba(0, 0, 0, 0.25);
}

CSS Box Shadow Generator

Create beautiful, layered shadows for your web elements. Customize offsets, blur, spread, and color with live preview.

Why Use Our Generator?

🎛️

Full Control

Adjust X/Y offsets, blur radius, spread, and opacity with precision

📥

Inset Shadows

Toggle between outer drop shadows and inner inset shadows

🎨

Custom Colors

Choose any shadow color and adjust transparency (alpha channel)

Instant CSS

Get the exact CSS code ready to paste into your stylesheet

👁️

Real-time Preview

See changes immediately on a sample element

📱

Cross-Browser

Generates standard CSS3 code compatible with all modern browsers

How It Works

1

Set Offsets

Use Horizontal and Vertical sliders to position the shadow relative to the element.

2

Adjust Blur & Spread

Increase Blur for softer shadows. Use Spread to resize the shadow shape.

3

Copy Code

Copy the generated CSS snippet and add it to your website's stylesheet.

Perfect For

Adding depth and dimension to your designs

🔲 Cards

Add elevation to content cards to make them pop off the page

🔘 Buttons

Create clickable-looking buttons with drop shadows

🖼️ Images

Give photos a frame-like effect or lift them from the background

✨ Neumorphism

Create soft, extruded plastic-looking UI elements

🔦 Glow Effects

Use colored shadows with high blur to create glowing elements

📥 Inputs

Use inset shadows to create depth for text fields and inputs