Box-shadow generator

Build a CSS box-shadow with sliders for offset, blur, spread, and color. The preview updates live and the CSS is one click away.

Pick a color or paste any HEX value.

box-shadow: 0px 8px 24px -4px rgba(15, 23, 42, 0.15);

Drop into any element’s style.

How to use this tool

  1. 1Adjust the x and y offsets to position the shadow.
  2. 2Tune blur radius and spread to control softness and reach.
  3. 3Pick a shadow color and toggle inset for inner shadows. Copy the CSS when ready.

About this tool

A well-tuned box-shadow gives elements depth without the heaviness of a real drop shadow. Subtle defaults (small offset, medium blur, low opacity) read as "elevation" in modern UI. Inset shadows are great for indicating pressed states or recessed surfaces.

Related tools

FAQ

Frequently asked questions

How do I use the output CSS?

Paste it as a `box-shadow` declaration on any element. The generated rule includes the full value string including offset, blur, spread, and color.

What does “spread” do?

Spread expands or contracts the shadow before the blur is applied. A positive spread makes the shadow larger than the element; a negative spread shrinks it inward.

When should I use inset?

Inset places the shadow inside the element, useful for pressed buttons, recessed inputs, or simulating depth on a surface that should look carved.

Can I stack multiple shadows?

Yes. CSS allows comma-separated shadows in a single `box-shadow` value. Generate each one here, then combine them: `box-shadow: shadow1, shadow2, shadow3;`.

Reviewing work with your team?

Pin comments directly on a live website or design — no extension, no setup.

Annotate live sites and screenshotsCapture browser, viewport, and CSS contextFree for your first project