Mello
◐ Design

CSS Box Shadow Generator

Design a box-shadow visually and grab the CSS.

Runs in your browserNo account requiredNo uploadFree
Loading tool…

About CSS Box Shadow Generator

CSS Box Shadow Generator designs a single CSS box-shadow visually and returns the ready-to-paste declaration. Sliders set horizontal and vertical offset, blur radius, spread radius, color, opacity, and the inset flag; a live preview over a sample surface updates as you tune.

Worked example: leave the defaults — offset 0 / 8 px, blur 24 px, spread −4 px, black at 40% opacity — and you get a soft, slightly recessed elevation suitable for a card. Drop the blur and lower the opacity for a sharper, tighter shadow; flip on inset for a sunken/pressed look. Copy the resulting box-shadow value with one click.

Two things are worth knowing. Blur and spread are independent — blur fades the shadow's edge softly, while spread enlarges the shadow before the blur is applied. Inset shadows live inside the element (perfect for sunken or pressed states); without inset they sit outside it. The CSS box-shadow property does support multiple stacked shadows (comma-separated), which is how design systems like Tailwind build multi-layer elevation — this tool generates one layer; combine the outputs of two passes by hand if you want a layered effect.

All design happens in your browser. The CSS is generated locally and nothing about your design is uploaded.

Frequently asked questions

CSS box-shadow accepts a comma-separated list of shadows, but this generator outputs one layer at a time. For a stacked effect, generate each layer and join them with commas in your stylesheet.

More design tools

Color Converter (HEX, RGB, HSL)
Convert colors between HEX, RGB, and HSL with a live preview.
◐Design
CSS Gradient Generator
Build CSS linear and radial gradients with a live preview.
◐Design
Color Palette Generator
Generate complementary, analogous, and triadic palettes from any base color.
◐Design
WCAG Contrast Checker
Check whether text and background pass WCAG AA and AAA contrast ratios.
◐Design
Favicon Generator
Upload an image to get favicons at standard sizes.
◐Design
CSS Border Radius Generator
Round corners visually — per-corner and elliptical — and copy the CSS.
◐Design