For one quick shadow, any of the free generators will do. If you want several layers, reordering and a Tailwind class, the field narrows to MDN's editor for layering and our own tool for layers plus Tailwind output. This comparison shows what each one does so you can pick.

What to look for

Questions that separate these tools

  • ✓Can you stack several shadow layers and reorder them?
  • ✓Is inset supported?
  • ✓Does it give you a starting point (presets, a smooth-shadow builder) or a blank slider?
  • ✓What do you get out: plain CSS, vendor prefixes, a CSS variable, Tailwind?
  • ✓Can you paste in a shadow you already have and edit it?

How we tested

On 19 November 2026 we opened each page in a browser with no account. For each editor we looked at the default output, then tried to add a second layer. Where an embedded tool could not be driven by our test setup, we say we only read the page.

1. html-css-js.com box-shadow generator

Sliders for shift right, shift down, spread, blur and opacity, a colour picker, an inset checkbox and a gallery of example effects. Its default line was 5px 5px 15px 5px #000000, and clicking Add new + added a second line, so multiple layers work. Output is CSS only: we saw no Tailwind output, no presets for soft layered shadows and no import box. Strengths: layers, an effect gallery, preview colour controls. Shortfalls: no import, no Tailwind, no ready-made soft elevation presets.

2. cssgenerator.org box-shadow generator

A simple editor with sliders, a colour and opacity control and an inset toggle. Its default output was box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75), repeated with -webkit- and -moz- prefixes and a Copy button. The editor controls one shadow at a time and we did not find a layer control. Strengths: very quick for a single shadow, copy button. Shortfalls: no layers that we could find, outdated vendor prefixes in the output.

3. MDN box-shadow generator

We only read MDN's description; we did not drive the embedded tool. According to that page, it lets you add several shadows, mark each as inset, set position, blur and spread with sliders, change the order with up and down buttons, and style the element and its ::before and ::after pseudo-elements. Nothing on the page mentions Tailwind output. Strengths: layering and pseudo-elements, from a reference site. Shortfalls (from the page): we cannot say what its output looks like.

4. CSS box-shadow generator (ours)

We built this one, so judge our claims with that in mind. It supports up to 10 layers that you can add, duplicate, reorder and delete, inset shadows, a live preview on a box and background colour you choose (light or dark), and elevation presets. A smooth layered builder creates a stack of shadows that double in offset and blur. You can paste an existing box-shadow to edit it. Output is CSS, a CSS variable, or a Tailwind arbitrary-value class. It runs in your browser with no sign-up.

Where it falls short: the preview is one rectangle (no pseudo-elements or your own HTML), it supports px lengths and hex, rgb and hsl colours only, and the slider layout is busier than a single-shadow tool. If you want one quick shadow, cssgenerator.org is faster. Try the generator.

5. CSSnippets box shadow generator

A single-shadow editor with horizontal and vertical offset, blur, spread, opacity and an inset toggle, a live preview and a Copy button. Its default output was box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2). We did not see layers, presets or Tailwind output on the page. Strengths: clean, fast, no prefixes. Shortfalls: one shadow only as far as we could tell.

Which one to use

Recommendations

  • One quick shadow: CSSnippets or cssgenerator.org, but drop the vendor prefixes from the latter.
  • A few layers and an effect gallery: html-css-js.com.
  • Layering with pseudo-elements: MDN's generator (we only read its description).
  • Soft layered shadows, presets, import and a Tailwind class: our generator.
  • Always check the shadow on your real background, light and dark.

Common questions

Do I still need -webkit- prefixes for box-shadow?

Not for current browsers. Generators that output prefixed lines are following older habits; the unprefixed property is what you need now.

How do I use a box shadow in Tailwind?

Use an arbitrary value such as shadow-[0_4px_6px_-1px_rgba(0,0,0,0.1)], with underscores in place of spaces.

Pages we used

  1. Box-Shadow CSS Generator and Style Gallery — html-css-js.com
  2. Box Shadow CSS Generator — cssgenerator.org
  3. Box-shadow generator — MDN Web Docs
  4. CSS Box Shadow Generator — CSSnippets
css box shadow generatorbox-shadowtailwinddeveloper tools

Written from hands-on work at Huntsville Software. About the author →