home/dev/box-shadow

Free Online CSS Box Shadow Generator

Design CSS box shadows with live preview

Layer
Offset X4px
Offset Y4px
Blur10px
Spread0px
Color#000000
Opacity25%
box-shadow: 4px 4px 10px 0px rgba(0, 0, 0, 0.25);

How to Use Box Shadow Generator

  1. 1

    Adjust shadow values

    Use sliders to set X/Y offset, blur radius, spread, color, and opacity.

  2. 2

    Add more shadows

    Click 'Add Shadow' to layer multiple shadows for depth effects.

  3. 3

    Toggle inset

    Check the inset option for inner shadows.

  4. 4

    Copy CSS

    Click Copy to get the box-shadow CSS property value.

Frequently Asked Questions

Is my data safe?
Yes. All processing happens entirely in your browser. Your data never leaves your device and is never uploaded to any server.
Can I use multiple shadows?
Yes. Click 'Add Shadow' to add additional shadow layers. Multiple shadows are comma-separated in the CSS output.
What is an inset shadow?
An inset shadow appears inside the element rather than outside, creating an inner shadow effect often used for pressed buttons or input fields.
Does it support transparency?
Yes. The opacity slider controls the alpha channel of the shadow color, outputting proper rgba() values.

Learn more

About Box Shadow Generator

Design CSS box shadows visually with real-time preview. Adjust offset, blur, spread, color, opacity, and inset for each shadow layer. Stack multiple shadows for complex depth effects. Copy clean CSS code with one click. Everything runs in your browser — no uploads or sign-ups needed.

Why Use Box Shadow Generator?
  • Visual sliders make it easy to fine-tune shadow parameters without trial-and-error in CSS.
  • Stack multiple shadow layers to create complex, realistic depth effects.
  • Real-time preview shows exactly how the shadow will look on a white element.
  • Supports inset shadows for inner shadow effects.
  • Generates clean CSS with proper rgba() color values.
Common Use Cases

Card elevation

Add depth to cards, modals, and floating elements with layered shadows.

Button effects

Create pressed/raised button states using inset and outer shadows.

Material design depth

Implement Material Design elevation levels with multi-layer shadows.

Neumorphism

Combine light and dark shadows to achieve soft UI (neumorphic) design effects.