Skip to main content
TOP free online tools Your Workbench
English

CSS Box Shadow Generator

Design CSS box shadows visually with live preview. Adjust offset, blur, spread, color and inset.

Local browser processing — zero server uploads

How to Use

  1. Paste or type your shadow parameters into the CSS Box Shadow Generator input area above.
  2. Configure any format or mode options to generate the CSS box-shadow code in real time.
  3. Click Copy to copy the formatted result to your clipboard, or Reset to clear the workbench.

What is CSS Box Shadow Generator?

The CSS Box Shadow Generator provides interactive sliders for horizontal offset, vertical offset, blur radius, spread radius, custom color, and inset toggle with a live card preview. UI engineers and designers use it to craft subtle elevation shadows or recessed inner shadows and copy exact CSS declarations immediately.

How It Works

Adjusting X offset (-50 to 50 px), Y offset (-50 to 50 px), Blur (0 to 100 px), Spread (-50 to 50 px), color string (default #00000010), or the Inset checkbox updates the live box-shadow string in real time. A centered 6rem × 6rem white card renders the live shadow while a read-only CSS textarea and Copy CSS button expose the generated rule locally.

Common Use Cases

  • Design system elevation — fine-tune soft drop shadows for cards, dropdown menus, and modal dialogs
  • Inset depth effects — toggle Inset to preview recessed input fields, wells, or pressed button states
  • Alpha transparency tuning — test RGBA or 8-digit hex shadow colors (like #00000010) against a light card surface
  • Rapid CSS copy-paste — grab clean single-line "box-shadow: ..." syntax without manual trial and error
Technical Details

Controls: X/Y offset (-50..50px), Blur (0..100px), Spread (-50..50px), freeform CSS color input (default #00000010), Inset boolean toggle. Renders live 6rem preview card + readonly CSS output with Copy CSS and Reset. Pure client-side.

FAQ

Can I create inset shadows?

Yes, toggle the inset checkbox to create inner shadows.