CSS Box Shadow Generator
Design box shadows visually and copy the CSS.
What does CSS Box Shadow Generator do?
Build CSS box shadows with sliders for offset, blur, spread and colour, including inset shadows and multiple layered shadows — which is how realistic elevation is actually achieved.
How to Use CSS Box Shadow Generator
- 1Adjust the slidersOffset, blur and spread.
- 2Set the colour and opacityLow opacity black reads as natural shadow.
- 3Add more layersTwo or three subtle shadows beat one heavy one.
- 4Copy the CSSPaste into your stylesheet.
Key Features
- Sliders for horizontal offset, vertical offset, blur, spread and opacity
- Multiple layered shadows, which is what makes elevation look real
- Inset shadows for inner depth
- Live preview on a configurable background
- Presets matching common elevation scales
- Copy-ready CSS with a Tailwind arbitrary-value variant
Frequently Asked Questions
What do the box-shadow values mean?
In order: horizontal offset, vertical offset, blur radius, spread radius, then colour. Blur softens the edge; spread grows or shrinks the shadow before blurring. The inset keyword moves it inside the element.
How do I make a shadow look realistic?
Layer two or three. A tight, slightly dark shadow close to the element plus a wider, very soft one further out mimics how real light behaves. A single large blur looks flat and artificial.
What is the difference between box-shadow and drop-shadow?
box-shadow follows the element’s rectangle and border radius. filter: drop-shadow follows the actual visible shape, including transparency in a PNG or SVG, which is what you want for irregular graphics.
Do shadows affect performance?
Large blur radii are expensive to composite, especially when animated. Animate transform and opacity instead of the shadow itself, or pre-render a shadow onto a pseudo-element and fade it.
Everything is generated in your browser. Nothing is sent to a server, so results are private and the tool keeps working offline.
Related Tools
CSS Gradient Generator
Build linear, radial and conic gradients with live preview.
CSS Border Radius Generator
Create rounded and organic shapes with live preview.
CSS Text Shadow Generator
Design text shadows, outlines and glow effects.
Colour Converter
Convert between HEX, RGB, HSL, HSV and CMYK.