Skip to content
Shadow layers → box-shadowDeveloper tools

CSS Box Shadow Generator

Design CSS box shadows with up to six layers, presets (soft, layered, retro, glow, neumorphic), inset shadows and Tailwind output.

Did this tool work for you?

About this tool

About CSS Box Shadow Generator

CSS Box Shadow Generator helps you design shadows that make cards, buttons and images look lifted off the page. Begin with a preset: Subtle for borders that barely show, Soft for a gentle floating card, Layered for the natural depth used by modern interfaces, Lifted for a hovering card, Retro for a hard offset shadow with no blur, Glow for a coloured halo, Inner for an inset shadow, or Neumorphic, which pairs a dark and a light shadow on a matching background for the soft “extruded” look. Then fine-tune. Each shadow layer has its own horizontal and vertical offset, blur, spread, colour, opacity and an inset option. Add up to six layers and switch between them; the first layer in the list is drawn on top. Several faint layers usually look more realistic than one dark shadow, because real light makes a sharp shadow close to an object and a soft, wide shadow further away. Negative spread is useful too: it pulls a large blur in from the sides so the shadow sits mainly underneath. You can change the background colour, the box colour and the corner radius of the preview, so you see the shadow on your own design colours. The CSS uses rgba colours so the shadow blends with any background, and a second button copies the same shadow as a Tailwind CSS arbitrary class, such as shadow-[0_10px_30px_-5px_rgba(15,23,42,0.18)]. Everything runs in your browser.

CSS Box Shadow Generator tool

Where shadows help

Depth that guides the eye

Cards

Separate content from the page.

ExampleThe Layered preset on product cards.

Buttons

Lift a button on hover.

ExampleSwitch from Subtle to Lifted on :hover.

Retro designs

Bold, hard-edged offset shadows.

Example6px 6px 0 black on a bright card.

Inputs

Inner shadows make fields look pressed in.

ExampleThe Inner preset on a search box.

Shadow tips

Soft beats heavy

Keep opacity low

5–20% opacity looks natural on light backgrounds.

Stack layers

Two or three soft layers look more real than one.

Tint the shadow

Use a dark shade of the background colour instead of pure black.

Round the corners

Match the radius of the shadowed box.

Border Radius Generator
Built & tested by

HemantInsights

Senior Software Engineer · Developer of Toolyconvert

Hemant developed CSS Box Shadow Generator and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.

Last updated 24 November 2026

Answers and guidanceFrequently Asked Questions
What are the box-shadow values?
Horizontal offset, vertical offset, blur radius, spread radius and colour, with optional inset at the start.
How do I add more than one shadow?
Separate shadows with commas. The first one is drawn on top. The generator does this when you add layers.
What does negative spread do?
It shrinks the shadow before blurring, so a large blur stays under the element instead of spreading out to the sides.
How is neumorphism made?
With two shadows, one darker and one lighter than a background that matches the element’s colour, offset in opposite directions.
Do shadows slow pages down?
Static shadows are cheap. Animating a large blur can be heavy; animate opacity of a pseudo-element with the shadow instead.
How do I use it in Tailwind?
Copy the Tailwind class. Spaces become underscores inside the square brackets, as Tailwind requires.
What is the difference between box-shadow and drop-shadow?
box-shadow follows the rectangular box and its rounded corners. The drop-shadow() filter follows the visible shape, so it suits transparent PNGs, icons and clip-path shapes.
Why is my shadow cut off?
A parent element with overflow: hidden clips it. Add padding to the parent or remove the overflow rule.
More tools for your workflowRelated Tools

Featured on

Toolyconvert is listed on these product directories and launch platforms.