Skip to content
ToolFarmToolFarm
DesignComing soon

CSS Box Shadow Generator

Build a CSS box-shadow with a live preview: set the offset, blur, spread, color and opacity, then copy the code. Free and in your browser.

2 min read
Expected release: Soon

This tool is growing

This tool is currently being prepared.

While we plant it, browse other tools below.

What this tool does

Box shadow generator with a live preview. Adjust the horizontal and vertical offset, the blur, the spread, the color and the opacity, and switch to an inset shadow when you need it. The box-shadow rule appears ready to copy, and everything runs in your browser.

What you can use it for

  • Add depth to a card, a button or a modal on a landing page.
  • Create a soft drop shadow for a floating menu or a tooltip.
  • Build an inset shadow to make an input or a well look recessed.
  • Try shadow settings before pasting the rule into your stylesheet or Tailwind theme.

How to use it

  1. Set the horizontal and vertical offset in pixels.
  2. Adjust the blur and the spread until the shadow feels right.
  3. Pick the shadow color and its opacity from 0 to 100.
  4. Turn on inset for an inner shadow, then copy the box-shadow rule below.

Everything runs inside your browser. No file is uploaded to any server. See more tools in this field.

Other tools people reach for in the same flow.

Design

Frequently asked questions

What does each box-shadow value mean?

The first two numbers are the horizontal and vertical offset, the third is the blur radius and the fourth is the spread. The color, with its opacity, sets the shadow tint. A larger blur softens the edge; a positive spread grows the shadow, a negative one shrinks it.

What is an inset shadow?

An inset shadow is drawn inside the element instead of behind it, so the box looks carved in rather than lifted up. Turn on the inset option to switch any shadow to that inner style.

How does opacity work here?

The opacity from 0 to 100 is folded into the color as an rgba alpha value, so 25 means a shadow at 25 percent opacity. Lower values give a subtle, realistic shadow; higher values make it bold.

Can I use the generated CSS directly?

Yes. The output is a complete box-shadow declaration you can paste straight into your stylesheet, a CSS variable or a Tailwind arbitrary value. This version builds a single shadow; for stacked layers, copy the rule and add more shadows separated by commas.

CSS Box Shadow Generator · ToolFarm