A LITTLE CLARITY, RIGHT HERE

CSS Box Shadow Generator

Build CSS box shadows with live offset, blur, spread, color, opacity and inset controls. Explore presets, layer shadows and copy matching CSS.

Let’s work it out.

On your device
Design a CSS box shadow
Preview only; it is not included in the box-shadow CSS.

Shadow layers

1–4 layers

Offsets and spread: −200 to 200px. Blur: 0–200px. Opacity: 0–100%. The first layer appears on top.

Copy this declaration into the CSS rule for your element. Invalid edits keep the last valid preview and CSS.

Technical numeric controls use a decimal point, without thousands separators. CSS and machine-readable output always use invariant syntax.

Processed in your browser. Your content is not sent to KEVEEK.

How to use this tool

Adjust horizontal and vertical offsets, blur, spread, color and opacity. Choose inset for an inner shadow, add layers where useful, and change the preview background. Copy the generated declaration or use a preset and reset controls.

How it works

CSS box-shadow combines horizontal offset, vertical offset, nonnegative blur radius, signed spread radius and color. Each additional layer is comma-separated in the same order as the preview. Opacity is expressed through an RGBA color.

A QUICK EXAMPLE

Put it into practice.

box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.2); adds a soft outer shadow below the box. Negative spread contracts it; inset places it inside the box.

Good to know

Offsets and spread may be negative; blur cannot. Preview dimensions and surrounding colors affect how a shadow looks in a real layout. Values are bounded to keep the tool responsive. Only box shadows are generated, not text shadows or filter effects.

Common questions

Does the copied CSS match the preview?

Yes. The preview and output use the same validated shadow value, including layer order and inset choices.