TXT · Text & Data tools

CSS Box-Shadow Studio

Live Box Shadow Preview

Box shadow generation

Generate CSS box-shadow rules by adjusting the offset, blur, spread, and color visually.

The preview matches the exact CSS output. Match the preview background and box colors to your website’s palette to test the shadow’s contrast before copying the rule.

Blur and spread

The blur radius determines how soft the shadow edges become. A value of 0 leaves a solid, hard edge, which is useful for retro or brutalist web designs.

The spread radius expands or shrinks the base size of the shadow before it blurs. A negative spread radius makes the shadow smaller than the element, preventing it from leaking out of the top or sides when applying a bottom-heavy offset.

Inset vs drop shadows

Standard drop shadows render behind the element. Toggling the Inset shadow option moves the shadow inside the box, painting it over the element’s background but beneath its content. Use inset shadows to simulate depth, pressed buttons, or debossed forms.

Frequently Asked Questions

Generate CSS `box-shadow` rules visually. Adjust the X/Y offsets, blur, spread, color, and opacity, then copy the CSS output.

Yes, toggling the 'Inset shadow' option applies the shadow inside the element rather than outside, which is useful for pressed or debossed effects.

Large blur radii and multiple layered shadows can slow down scrolling on lower-end devices because the browser must repaint the soft edges continuously.

No, `box-shadow` strictly follows the element's rectangular CSS bounding box. To make a shadow hug the transparent pixels of a PNG or WebP, use the CSS `drop-shadow()` filter instead.

Explore Our Tools

Browse all tools