Skip to content
Toolars
Explore

CSS Box Shadow Generator

One to eight box-shadow layers; each has offsets, blur, spread, color, opacity and inset state.

Local processing

Processing details

Tool inputs are processed on your device.

Resources may be downloaded to run this tool. Account services are separate.

Privacy information
Report bug

Task path / input to outcome

How to build a CSS box shadow

  1. 01

    Position the shadow

    1–8 Shadow layers · X/Y (px): −100…100 · Blur (px): 0–100 · Spread (px): −100…100 · Color · Opacity: 0–1 · inset

  2. 02

    Tune blur and spread

    One to eight box-shadow layers; each has offsets, blur, spread, color, opacity and inset state.

  3. 03

    Set the color and opacity

    Pick a six-digit Shadow color — the default #0b0d12 is a near-black — and set Shadow opacity from 0 to 1 in 0.01 steps. The opacity becomes the alpha channel of the rgba() color in the output, so 0.28 renders as rgba(11, 13, 18, 0.28).

  4. 04

    Toggle the inset mode

    Turn on Inset shadow to move the shadow inside the box, which reads as a pressed or recessed surface — useful for input fields and toggled buttons. The generated declaration prepends the inset keyword when the toggle is on.

  5. 05

    Compare with the sample

    Press Load sample for a sharp reference style: an 8 px offset on both axes with zero blur and zero spread in #0f4cff at 0.35 opacity — a hard-edged offset outline. Reset returns the soft default shadow, and the live preview re-renders on every change.

  6. 06

    Copy or download the CSS

    Press Copy CSS to copy the .shadow-card rule, or Download .css to save it as toolars-box-shadow.css. Copying is blocked while any value is out of range, so the declaration you paste always validates. HTML includes the current CSS and a working example. Native controls support keyboard input.

Tool facts

Processing
In your browser
Input leaves this device
Never
Retention
Nothing is stored
Price
Free

Your input stays in the browser.

CSS Box Shadow Generator uses its verified local execution path and does not create a hidden input or output history.

Local execution

Runs inside the current browser tab.

No hidden processing

Active tool data never becomes a Toolars document record.

No account required

Use the core workflow without creating a profile. Favorites sync to your account after you sign in.

Immediate reset

Clear the tab and the active working data is gone.

What CSS Box Shadow Generator actually does

Elevation is easy to feel and hard to guess: a pricing card that should float just above the page, a modal that needs real depth, a pressed button that reads as inset. Writing offsets, blur, and spread blind means reloading the page for every nudge. CSS Box Shadow Generator shows the exact result as you drag each slider, from a subtle 0.28-opacity lift to a hard offset outline. The copied declaration drops straight into a stylesheet — all computed locally in the tab.

Common questions

What do the sliders map to in the CSS?
The output follows the box-shadow order: horizontal offset, vertical offset, blur radius, spread radius, then the color. Shadow opacity becomes the alpha channel of an rgba() color, and the Inset shadow toggle prepends the inset keyword to the whole value. One to eight box-shadow layers; each has offsets, blur, spread, color, opacity and inset state. HTML includes the current CSS and a working example. Native controls support keyboard input.
What does a negative spread radius do?
It shrinks the shadow on all sides before the blur is applied, which keeps a large blur from leaking too far past the element's edges. The default -4 px spread is exactly that trick: a soft 32 px blur that still hugs the card instead of blooming outward.
Can I stack multiple shadows in one run?
One to eight box-shadow layers; each has offsets, blur, spread, color, opacity and inset state. Add / Remove · 1–8 Shadow layers
When should I use an inset shadow?
An inset shadow renders inside the element's border, so the surface looks pressed in or recessed rather than raised. It suits text inputs, wells, and toggled-on buttons. Toggle Inset shadow and the preview shows the effect immediately — the copied rule simply gains the inset keyword.
What are the value ranges?
1–8 Shadow layers · X/Y (px): −100…100 · Blur (px): 0–100 · Spread (px): −100…100 · Color · Opacity: 0–1 · inset. Check the source, selected controls and visible validation before exporting. An invalid result cannot be exported.
Is anything uploaded or stored?
No. Everything renders in this browser tab from validated style values, and no generated value enters storage, logs, analytics, or the network.

Related tasks, not a dead end.

Move into another focused workspace without returning to the full index.

CSS Loader Generator

264 loader templates: 24 geometries × 11 motion profiles; filter by category and inspect the animation.

Create

CSS Checkbox Generator

24 checkbox templates: eight marks × three transitions; click or press Space in the native preview.

Create

CSS Switch Generator

18 switch templates: six thumb shapes × three transitions; test the native control by click or keyboard.

Create

CSS Clip Path Generator

24 clip shapes, primitive parameters and editable polygon points; export CSS or a declaration.

Create