Text Shadow Generator
Set the offset, blur, colour and opacity of a text shadow, see it on your own words and copy the CSS.
Text Shadow Generator sets the offset, blur, colour and opacity of a CSS text shadow and shows it on your own words, text colour and background. Copy the finished text-shadow line straight into your stylesheet. It runs in your browser.
What is a CSS text shadow?
text-shadow
A CSS property that draws a copy of the text behind it, moved by an offset and softened by a blur. Unlike box-shadow it has no spread value.
Glow and lift
Zero offsets with a blur make a glow. A small offset with little blur gives a crisp drop shadow that lifts text off a busy background.
Why use Text Shadow Generator?
- Preview on your own text. Type the heading you are styling and see how the shadow sits on its letters.
- Match your colours. Set the preview text and background colours to your design.
- Ready to paste. Colour and opacity become one rgba() value in the CSS.
How to use Text Shadow Generator, step by step

- Open Text Shadow Generator and set the offsets and blur. Use the sliders on the right.
- Pick a shadow colour and opacity. Change the preview text, text colour and background to match your page.
- Copy the CSS. Press Copy text to take the text-shadow line.
Frequently asked questions
Can I stack several shadows?
This tool makes one shadow. To combine, copy each value and separate them with commas in one text-shadow property.
Does a shadow help readability?
It can on photos and busy backgrounds. It does not count toward the WCAG contrast ratio, so still check the text and background with the Contrast Checker.
Which fonts does the preview use?
Your system font, in bold. The shadow values work the same with any font.
Looking for the long version? The guides cover each of these jobs in depth.