ZapKit

CSS text-shadow generator

Design text effects from soft shadows to neon glows, outlines and 3D lettering, see them on your own words, and copy one line of CSS.

What is a text-shadow generator?

A text-shadow generator builds the CSS text-shadow property visually. Each shadow has a horizontal and vertical offset, a blur radius and a colour, and several can be combined for effects like glows, outlines, embossing and layered 3D text.

Pick one of six presets or start from scratch, type your own preview text, choose text and background colours, and adjust up to six shadow layers with sliders. The preview updates as you go and the finished CSS is ready to copy.

How to use the CSS text-shadow generator

  1. 1.Start from a preset

    Soft drop, outline, neon glow, 3D stack, retro offset or letterpress.

  2. 2.Adjust the layers

    Change offset, blur, colour and opacity, or add up to six layers.

  3. 3.Copy the CSS

    Paste the text-shadow line into your stylesheet.

Example: a neon sign heading

The Neon glow preset on a near-black background:

Layer 1
0 0 4px white
Layers 2–3
0 0 12px and 28px cyan
Layer 4
0 0 48px blue at 80%

White letters with a cyan-to-blue glow that looks like a lit neon tube.

Effects from stacked shadows

Most text effects are several shadows stacked together. An outline is four sharp shadows nudged in each diagonal direction, a neon glow is a few blurred shadows in the same colour at growing sizes, and 3D lettering is a row of shadows stepping down and to the right.

Text shadows don't take up space or move other content, so they're safe to change on hover. Keep large glows for headings; on body text they hurt readability.

Frequently asked questions

What's the difference from box-shadow?

text-shadow follows the letter shapes; box-shadow follows the element's rectangle.

Can text-shadow make a true outline?

It fakes one well for thin outlines. For thick outlines, -webkit-text-stroke is an alternative.

Do text shadows affect accessibility?

Shadows can raise or lower contrast. Check the text colour against the background either way.

Can I share an effect?

Yes. The layers and colours are saved in the page address.

More Developer tools