The Util Box

Text Shadow Generator

Free online text shadow generator for developers. Visual text-shadow builder. Fast and private.

Shadow
CSS
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);

Embed this tool

Copy and paste the code below into your website to embed this tool for free. An attribution link to The Util Box is required.

<iframe src="https://www.theutilbox.org/embed/text-shadow-generator" width="600" height="500" frameborder="0" style="border: none; max-width: 100%;" title="Free Text Shadow Generator tool from The Util Box"></iframe>
<!-- Free tool by The Util Box — https://www.theutilbox.org/tools/text-shadow-generator -->
<a href="https://www.theutilbox.org/tools/text-shadow-generator">Text Shadow Generator by The Util Box</a>

Frequently Asked Questions about Text Shadow Generator

Text Shadow Generator — Offsets, Blur and Colour

This text shadow generator builds a text-shadow declaration from three sliders and a colour picker, with a live sample word rendered using the value you produce. The controls are horizontal offset, vertical offset and blur — each from −20px to 20px — plus the shadow colour.

Text shadow is deliberately simpler than box shadow: there is no spread and no inset. Spread has no meaning for glyph outlines, and an inset text shadow would be drawn behind the letters where it could never be seen. If a tutorial tells you to add a fourth length to text-shadow, it is describing a browser feature that does not exist.

One caveat on the controls: the offset and blur sliders run down to −20px, but a negative blur radius is not valid CSS — a browser ignores the whole declaration rather than un-blurring the glyph. Keep blur at zero or above, and use negative values only for the offsets.

Getting the Effect You Actually Want

  • Hard drop shadow — blur 0, small positive Y offset. A crisp retro offset with no softening.
  • Soft lift — a 1–2px Y offset with 2–4px blur and a low-alpha dark colour.
  • Legibility halo — a large blur with a light colour behind dark text on a busy photo, or a dark shadow behind light text.
  • Outline — set blur to 0 and add four comma-separated shadows pointing up, down, left and right. Generate one here, then repeat it with mirrored offsets.

Keep contrast in mind: a shadow can push text below WCAG contrast thresholds. Check the pair with the contrast checker when the text is user-facing copy rather than a decorative heading.

Related CSS Generators

Nothing leaves your browser.