CSS Box Shadow Generator

Developer Tools

Design a box-shadow with sliders and a live preview, then copy the CSS or a Tailwind class.

Preview
box-shadow: 0px 1px 3px 0px rgba(15, 23, 42, 0.1), 0px 10px 15px -3px rgba(15, 23, 42, 0.1);
2 layersfirst layer rgba(15, 23, 42, 0.1)

Processed in your browser. A copy of each run is saved to your past runs so you can reopen it. Privacy

About

What the CSS Box Shadow Generator does

The CSS Box Shadow Generator lets you shape a shadow by eye. Sliders set the horizontal and vertical offset, blur, spread and opacity, a color picker sets the color, and layers stack for soft, realistic depth. The preview updates live on a box whose color, background and corner radius you control. Copy the result as box-shadow CSS, a Tailwind arbitrary class or a filter: drop-shadow value.

Steps

How to use it

  1. 1Start from a preset or the default soft card shadow.
  2. 2Adjust each layer with the sliders, color and Inset; add layers for depth.
  3. 3Copy the CSS, the Tailwind class or the drop-shadow filter.

Example

A real run

Input

Layer 1: 0 1px 3px, slate at 10%
Layer 2: 0 10px 15px, spread -3px, slate at 10%

Output

box-shadow: 0px 1px 3px 0px rgba(15, 23, 42, 0.1), 0px 10px 15px -3px rgba(15, 23, 42, 0.1);

A tight shadow close to the box plus a larger, softer one with negative spread gives the natural card look used by many design systems.

Options

Every setting, and when to use it

Offset, blur and spread
Offsets move the shadow right and down (negative values go left and up). Blur softens the edge; spread grows or shrinks the shadow before blurring, and a negative spread keeps a shadow under the box instead of around it.
Layers
Real shadows are rarely one layer: a tight, darker shadow plus a wide, faint one looks more natural. Up to 10 layers; select a layer to edit it.
Output
CSS box-shadow for stylesheets, a Tailwind arbitrary value such as shadow-[0_1px_3px_…] for Tailwind projects, or filter: drop-shadow() for transparent images and SVG icons, where the shadow follows the shape.

Good to know

Common problems and limits

Up to 10 layers. The preview uses your browser's rendering, which matches what visitors see in modern browsers.

drop-shadow() has no spread or inset, so those values are left out of that output.

To convert colors between formats, use the Color Converter; to shrink the finished stylesheet, use the CSS Minifier.

Audience

Who uses it

  • Front-end developersGet an elevation shadow for cards, dropdowns and modals that matches a design without guessing numbers.
  • DesignersHand developers exact shadow values, including Tailwind classes, instead of a screenshot.
  • LearnersSee what each part of the box-shadow syntax does by moving one slider at a time.

FAQ

Frequently asked

What is the box-shadow syntax?

box-shadow: [inset] offset-x offset-y blur spread color, for example 0 4px 12px 0 rgba(0, 0, 0, 0.15). Only the two offsets are required. Separate several shadows with commas; the first is drawn on top.

What is the difference between box-shadow and drop-shadow?

box-shadow draws a shadow around the element's rectangular box, including its rounded corners. filter: drop-shadow() follows the visible shape, such as the outline of a transparent PNG or an SVG icon, but has no spread or inset.

How do I put a shadow on one side only?

Offset it toward that side and use a negative spread so it does not show on the others, for example 0 8px 6px -6px rgba(0, 0, 0, 0.3) for a shadow only at the bottom.

What is an inset shadow?

A shadow drawn inside the element instead of outside, which makes it look pressed in. It is common for input fields and toggles. Turn on Inset for a layer to try it.

Do large shadows slow pages down?

Large blur radii take more work to paint, which can matter when many elements have them or when they animate. For animated elevation, a common trick is fading in a pseudo-element that already has the larger shadow.

Is anything sent anywhere?

No. The preview and code are produced in your browser. A copy of the settings is saved to your past runs when you copy the code.

Automation: an MCP tool box_shadow(layers) → css and an n8n node are planned for this tool.

GuideA web developer's toolbox: timestamps, cron, permissions and headers →Unix timestamps in seconds or milliseconds, cron fields and time zones, chmod numbers, HAR files and user agents: the details web developers look up.
Built and maintained by Radhika SinghLast updated Questions: hello@operativez.ai