Create beautiful box shadows with a visual editor. Multiple layers, inset shadows, presets — copy the CSS instantly.
CSS Gradient Generator, Color Converter, Meta Tag Generator, and 30+ more tools.
Browse All Tools →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.
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);
will-change: box-shadow if animating shadowsfilter: drop-shadow() for non-rectangular shapesbox-shadow is supported in all modern browsers including Chrome, Firefox, Safari, Edge, and Opera. No vendor prefixes needed since 2013+.
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.
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.
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.
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.
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.