EN
My tools

CSS Text Shadow Generator

Build CSS text-shadow values with offset, blur, color and opacity, extra layers and presets: soft, hard, outline, neon glow, 3D, retro, emboss, letterpress.

Outline thickness, hard/retro offset, 3D depth or glow size for the presets.
One full shadow per line (x y [blur] [color]); added after the main shadow.
My tools →
Advertisement

The CSS text-shadow property paints one or more blurred or sharp copies of the text behind it. With a single layer it lifts a heading off a photo; with several layers it can draw outlines, neon glows, 3D lettering and retro offsets — all without images, so the text stays selectable and sharp at any size. This generator writes the value, validates any extra layers you add, and renders the result in your own browser.

How to use this tool

  1. Pick a preset, or keep "Custom" and set the offsets, blur, color and opacity.
  2. Use "Preset size" to make outlines thicker, glows wider or 3D text deeper.
  3. Add extra layers, one per line, to combine effects.
  4. Set the preview text and colors to match your page, then copy the CSS line.

Formula

text-shadow: <x> <y> [<blur>] <color> [, more layers]

Positive x moves the shadow right and positive y down; blur softens it and cannot be negative. Unlike box-shadow there is no spread and no inset. The outline preset places 8 sharp copies one "preset size" away in every direction; 3D extrude stacks one copy per pixel of depth.

Example

The defaults — 2 px right, 2 px down, 4 px blur, black at 40% — give text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);, a soft drop shadow. The hard preset at 3 px in tomato gives 3px 3px 0 #ff6347, and a 1 px outline needs 8 layers such as -1px -1px 0 #000000 and 1px 1px 0 #000000.

Frequently asked questions

How do I outline text in CSS?

Either stack shadows in all directions, as the outline preset does, or use -webkit-text-stroke: 2px black, which every current browser supports. Shadows sit behind the letters and keep their shape; a stroke is centered on the outline and thins the letters.

Does text-shadow hurt readability or accessibility?

A light shadow can help text on busy photos, but WCAG contrast is measured between the text and its background, not the shadow. Keep the text color itself readable and avoid heavy glows on body text.

Is text-shadow slow?

A few layers are cheap. Dozens of blurred layers on large, animated text can cost frames on phones; keep long 3D stacks for headings.

Sources

Last updated:

Cite or embed this tool
APA

kakaoCalc. (2026, November 8). CSS Text Shadow Generator. https://kakao.mobile/tools/css-text-shadow-generator/

MLA

“CSS Text Shadow Generator.” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/css-text-shadow-generator/.

Paste this code into your page. The widget runs in your visitors' browsers, shows no ads and keeps a link back to this page. Embedding terms

Advertisement