CSS Text Shadow Generator

Type your heading and give it a shadow: a gentle lift for readability, stacked layers for 3D or long-shadow text, a neon glow, an outline, or the hard offset of neo-brutal and retro designs. Every effect is made of text-shadow layers you can edit, and the result is copyable CSS or a Tailwind class.

Preview background

Edesy

Presets
Layers (6)

The first layer is drawn on top. Several soft layers look more natural than one big blur.

Code
text-shadow: 0.71px 0.71px 0 #1E3A8A, 1.41px 1.41px 0 #1E3A8A, 2.12px 2.12px 0 #1E3A8A, 2.83px 2.83px 0 #1E3A8A, 3.54px 3.54px 0 #1E3A8A, 4.24px 4.24px 0 #1E3A8A;

Generating runs in your browser. What you type never leaves this device.

Features

  • Presets: subtle, 3D, long shadow, neon, neo-brutal, outline and retro

  • Up to 30 stacked layers with offset, blur, colour and opacity

  • Preview your own text at any size on light, dark or colourful backgrounds

  • Works with any font on your site; no images, so text stays selectable and searchable

  • Copy as CSS or as a Tailwind [text-shadow:...] class

Where text shadows help

Text over photos

A soft dark shadow keeps white headlines readable on busy hero images and thumbnails.

Posters, events and gaming sites

3D, neon and retro effects for headings, without exporting text as images.

Outlined text

Four small hard shadows draw an outline around letters that works in every browser.

Text shadow techniques

How the effects are built

  • 3D and long shadow: many layers, each 1 px further along a diagonal, with no blur.
  • Neon: a white core layer plus two or more wide glows in the neon colour.
  • Outline: four layers offset up-left, up-right, down-left and down-right by 1 to 2 px.
  • Neo-brutal and retro: one or two solid offsets with zero blur.

Readability first

Heavy effects suit short headings, not paragraphs. For body text over images, a light shadow (0 1px 2px at 25 to 50% black) is usually enough. Check that the text still passes contrast against the background with the colour contrast checker.

Outline: text-shadow or -webkit-text-stroke?

-webkit-text-stroke draws a true outline but eats into thin letters and is drawn on top of the fill. A four-layer text-shadow outline sits outside the letters and works with every font, at the cost of slightly rounded corners at large widths.

Related tools

CSS Text Shadow Generator - FAQ