Map Extract
Free tool

CSS text shadow generator

Move the sliders and watch the sample heading change. When it looks right, copy the text-shadow line underneath and paste it into your style sheet.

Runs in your browser. Nothing you enter is uploaded.

Building a shadow

  1. Set the offset

    Across moves the shadow left or right and Down moves it up or down, each from -50 to 50 pixels. Small values such as 1 or 2 read as depth; zero on both gives a glow.

  2. Soften it

    Blur runs from 0, a hard copy of the letters, to 100 pixels. Opacity % controls how strong the colour is; below 100 the rule uses rgba().

  3. Pick a colour

    Use the colour box on the layer. Dark shadows suit light text on photos; a pale or coloured shadow on dark backgrounds gives a glow.

  4. Stack layers if needed

    Add a layer copies the last one with double the offset and blur, a quick way to build a softer, deeper shadow. Up to five layers are allowed, and Remove layer deletes one.

Example: a headline over a shopfront photo

A café's homepage puts white heading text over a busy street photo. The words keep vanishing into the bright window reflections. A crisp one-pixel dark edge plus a soft warm glow keeps every letter legible without making the text look heavy.

With the first layer at 1, 1, blur 0, black at 100%, and a second layer at 0, 0, blur 12, gold at 60%, the generator writes the rule below. Because the first layer is fully opaque it is written as a plain HEX colour.

Input
Layer 1: across 1, down 1, blur 0, #000000, 100%
Layer 2: across 0, down 0, blur 12, #FFD700, 60%
Result
text-shadow: 1px 1px 0px #000000, 0px 0px 12px rgba(255, 215, 0, 0.6);

Questions people ask

What do the four parts of text-shadow mean?

In order: horizontal offset, vertical offset, blur radius and colour. Positive offsets push the shadow right and down; negative ones push it left and up. Unlike box-shadow, text-shadow has no spread value and no inset option, which is why this generator does not offer them.

How do I add more than one shadow?

List them separated by commas. The first shadow in the list is drawn on top. In this tool each layer you add becomes one comma-separated part of the output, so you can see how they combine before copying the whole line.

Does text-shadow work in all browsers?

It is supported by every current desktop and mobile browser, including multiple shadows and rgba colours. Some email programs ignore it, so in marketing emails treat a shadow as decoration that may not show, never as the thing that makes text readable.

Where your data goes

The preview and the CSS are produced in your browser as you drag the sliders. No settings are saved or transmitted.

Checked against the tool on

Top