100% FREE · NO SIGNUP

CSS Box Shadow Generator

Create beautiful box shadows with a visual editor. Multiple layers, inset shadows, presets — copy the CSS instantly.

Preview

16px

Shadow Layers

Generated CSS

Presets

🚀 More Free Dev Tools

CSS Gradient Generator, Color Converter, Meta Tag Generator, and 30+ more tools.

Browse All Tools →

CSS Box Shadow Guide

The CSS box-shadow property adds shadow effects around an element's frame. You can set multiple effects separated by commas. A box shadow is described by X and Y offsets, blur and spread radii, color, and an optional inset keyword.

Syntax

box-shadow: [inset] offset-x offset-y blur-radius spread-radius color;

/* Multiple shadows */
box-shadow: 
  0 4px 6px rgba(0,0,0,0.1),
  0 10px 15px rgba(0,0,0,0.05);

Properties Explained

Performance Tips

Browser Support

box-shadow is supported in all modern browsers including Chrome, Firefox, Safari, Edge, and Opera. No vendor prefixes needed since 2013+.

Related Tools

Border Radius Generator Gradient Generator CSS Animation Generator Flexbox Generator CSS Grid Generator

Frequently Asked Questions

How do I add a box shadow in CSS?

Use box-shadow: h-offset v-offset blur spread color. Example: box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1). The generator lets you adjust sliders visually and gives you the exact CSS to copy.

What are the box-shadow CSS parameters?

Horizontal offset (positive = right), vertical offset (positive = down), blur radius (higher = softer), spread radius (positive = larger), color with optional opacity, and the optional inset keyword for inner shadows.

How do I create an inset box shadow?

Add the inset keyword first: box-shadow: inset 0 2px 4px rgba(0,0,0,0.1). Inset shadows appear inside the element, creating a recessed or pressed-in look. Toggle inset in the generator to preview.

Can I add multiple box shadows to one element?

Yes, separate multiple values with commas: box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05). Layering shadows creates more realistic depth, like material design elevation.

What is a good box shadow for card designs?

A clean card shadow: box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24). Keep opacity low for a modern look. Harsh high-opacity shadows feel outdated.