InstantTools.siteZero Latency Utilities
dev Tool
100% In-Memory (Zero Server Upload)

CSS Box Shadow Generator

Build layered CSS box shadows with offset, blur, spread, colour and inset, preview them live and copy the ready-made rule.

Shadow settings

Presets

Shadow layers (1/5)

Shadow 1

Live preview

Elevated card

Shadow applied inline

The card sits on a slate surface so even a 6% shadow stays visible. Every control changes the inline box-shadow style.

Generated CSS

/* Box shadow — generated by InstantTools.site */
.card {
  box-shadow: 0px 4px 6px -1px rgba(15, 23, 42, 0.08);
}

115 characters · 1 shadow layer

How a box-shadow value is built

box-shadow: [inset] x-offset y-offset blur spread rgba(r, g, b, a);

  • Offsets move the shadow right/down; negative values are valid and pull it back.
  • Blur sets how soft the edge is (0 = hard edge), spread grows or shrinks the shape before blurring.
  • Colour + opacity become rgba(r, g, b, a) with the alpha rounded to three decimals, so a 10% opacity reads 0.1.
  • Multiple shadows (add up to 5 layers) are comma-separated and painted first-to-last — the first layer sits on top.

About CSS Box Shadow Generator

Compose a box shadow by moving sliders instead of guessing numbers. Set the horizontal and vertical offset, blur and spread, pick a colour and an opacity, and toggle inset for an inner shadow. Up to five shadow layers can be stacked, each with its own settings, and presets for card, button, modal and inset input are one click away. The preview shows the result on a white surface, and the generated rule is formatted to paste straight into a stylesheet.

Key Features & Privacy Guarantee

  • Zero server transmission: all computation happens instantly in your local browser runtime.
  • No sign-up, no subscriptions, and no usage quotas.
  • Optimized for maximum speed, accuracy, and lightweight performance.
  • Instant one-click clipboard copying.

Frequently Asked Questions

Common questions and helpful answers about this utility.

Blur controls how soft the shadow's edge is, while spread grows or shrinks the shadow shape before it is blurred. A negative spread tightens the shadow against the element.