SMALL TOOLS. BIG POSSIBILITIES.111 free tools
FREE · NO SIGN-UP · LOCAL PROCESSING

CSS Box Shadow Generator

Layer outer or inset shadows with live color, opacity, blur and spread controls.

Loading tool controls…
A PRACTICAL STARTING POINT

Get a useful result from CSS Box Shadow Generator.

Design a soft card shadow or a restrained glow using individual layers. Compare offset, blur and spread on the sample element before exporting the box-shadow declaration.

When this tool helps

  • Separate softness from size
  • Combine a core with a halo
  • Check clipping and paint cost

Separate softness from size

Blur softens a shadow edge; spread expands or contracts its shape. A large blur with a negative spread can produce a soft shadow without a heavy outline. X and Y offsets position the shadow relative to the box.

Combine a core with a halo

For a neon-style border add one small, stronger shadow and a second wider, lower-opacity layer. Use restrained values on real interfaces so glows do not obscure text, focus indicators or neighboring controls.

Check clipping and paint cost

An ancestor with overflow hidden can clip the result. Large shadows over many elements can add paint cost; this generator does not benchmark your website. Compare the final layout on a mobile device, not just the sample card.

Example input

X 0, Y 12, blur 28, spread 0, blue at 30%

Expected output

box-shadow: 0px 12px 28px 0px rgb(37 99 235 / 30%);

Illustrative settings; actual output follows your chosen controls and browser.

Questions about this task

Can I create inset shadows?

Yes. Select Inset shadow for the current layer. Other layers can remain outside.

How many layers are supported?

Up to six. The comma-separated CSS preserves their order; the first shadow is drawn on top.

Is box-shadow the same as drop-shadow?

No. Box-shadow follows the element box; a filter drop-shadow can follow visible alpha content such as a transparent image.

How to use CSS Box Shadow Generator

Add up to six shadow layers, select one to edit, adjust offsets and color, then copy or download CSS.

Good to know

Large shadows can increase paint work and be clipped by overflow. Preview is illustrative; check contrast, performance and clipping in your actual design.

A few helpful answers

Is this tool free?

Yes. All features on this page are free and require no account.

Where is my data processed?

In your browser. Tool input and selected images are not sent to our servers. Clear the page or close the tab to discard your input.

What should I check before using the result?

Large shadows can increase paint work and be clipped by overflow. Preview is illustrative; check contrast, performance and clipping in your actual design.

WhatsApp