CSS Text Shadow Generator

Style a text-shadow with live preview and copy the CSS.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

CSS text-shadow generator

This tool styles a CSS text-shadow visually and gives you the exact value to paste into your stylesheet. It is for developers and designers adding depth, glow or readability to headings, hero text and labels. The preview applies the shadow to sample text so you can judge it before copying.

How it works

The text-shadow property follows the order offset-x offset-y blur-radius colour. Note there is no spread value as there is on box-shadow. The generator reads your sliders — offset X and Y move the shadow, blur softens it — and combines your hex colour with the opacity slider into an rgba() value so the shadow can be semi-transparent. The result is applied live to a sample heading.

Example

With offset X = 2px, offset Y = 2px, blur = 4px, colour #000000 and opacity 50%, the tool outputs:

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

That is a soft drop shadow below and to the right of the text. Set both offsets to 0 and raise the blur for a glow instead, e.g. 0px 0px 12px rgba(0, 200, 255, 0.8).

EffectOffset X/YBlur
Subtle drop1–2px2–4px
Strong drop3–4px6px
Glow / neon0px10–20px
Readability halo0px4px

The text-shadow value is generated locally in your browser — nothing is uploaded.

Ad placeholder (rectangle)