Skip to main content
WorkUtilities

Box Shadow CSS Generator

Generate multi-layer CSS box shadows with live preview. Copy pure CSS or Tailwind classes with Apple-style presets.

Runs in your browserFree ยท No signup
Layer 1
Preview

Output

.shadow {
  box-shadow:
    0px 4px 6px 0px rgba(0, 0, 0, 0.10);
}

About Box Shadow CSS Generator

Our free Box Shadow CSS Generator creates multi-layer shadows with up to 4 layers, live preview, and CSS + Tailwind output.

Six presets including Apple-style 3-layer shadows and colored glow effects. Preview on white, grey, dark, and gradient backgrounds.

No signup, runs entirely in your browser. Natural companion to our Glassmorphism Generator.

Read the full guide: CSS box shadow generator โ€” multi-layer shadow guide

When Should You Use the Box Shadow Generator?

Card elevation

Add realistic depth to cards and modals.

Multi-layer shadows

Stack shadows like Apple and Google design systems.

Inset effects

Create pressed button and input field depth.

Colored glows

Generate accent glow effects for dark mode UIs.

Tailwind projects

Export arbitrary Tailwind box-shadow values.

Frequently Asked Questions

What is a CSS box-shadow?

CSS box-shadow adds shadow effects to an element. It takes up to 6 values: horizontal offset, vertical offset, blur radius, spread radius, color, and an optional "inset" keyword for inner shadows. Multiple comma-separated shadows can be stacked for more realistic, layered effects.

How do I create an inset shadow in CSS?

Add the "inset" keyword before the other values: box-shadow: inset 0 2px 4px rgba(0,0,0,0.2). Inset shadows appear inside the element instead of outside, useful for creating pressed button states or depth effects on input fields.

How do multi-layer shadows work?

Multiple box-shadow values separated by commas stack on top of each other. This technique creates more realistic shadows by simulating how light in the real world produces soft, diffused shadows. Apple's design system, for example, uses 3-4 shadow layers at different blur intensities.

What is the difference between box-shadow and filter:drop-shadow?

box-shadow only applies to the element's rectangular box โ€” it doesn't follow the element's border-radius or transparent cutouts. filter:drop-shadow follows the element's actual shape, including transparency. However, box-shadow is generally more performant and better supported. Use filter:drop-shadow for non-rectangular elements like PNG icons.

Is this generator free?

Yes. WorkUtilities Box Shadow CSS Generator is free with no signup.

Help Us Improve

Your feedback helps us build better tools.