CSS Text Shadow Generator
Design text shadows with stacked layers for glow, outline, retro and long-shadow effects, preview them on your own text and copy the CSS.
Reviewed 23 November 2026 · Free · No account needed
How to use
- Pick an effect such as Soft, Neon glow, Outline, Retro 3D or Long shadow, or start with one layer.
- Type your own preview text and set its size, colour and the background colour.
- Adjust each layer with the offset X, offset Y, blur, colour and opacity controls, and use Add layer for more.
- Press Copy CSS to take the text-shadow declaration.
Example
Input: Offset 2px 2px, blur 4px, black at 40%
Output: text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
How it works
Each layer is one text-shadow value: horizontal offset, vertical offset, blur radius and colour. The tool joins your layers with commas in the order shown. The browser paints the first layer on top and the last one at the back.
text-shadow: offset-x offset-y blur-radius color, offset-x offset-y blur-radius color, ... The colour is written as rgba(r, g, b, opacity).
A single layer of 2px 2px 4px in black at 40 percent gives text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4). Four layers of 1 px offsets in each diagonal direction, with no blur, draw an outline around the letters.
Limits and edge cases
- Up to 8 layers. Offsets go from -60 to 60 px and the blur from 0 to 80 px.
- Colours are entered as hex with a separate opacity, and the CSS is written as rgba().
- text-shadow has no spread value and no inset option, unlike box-shadow, so neither is offered.
- The preview text is limited to 40 characters. It is only for the preview and is not part of the CSS.
- A blur of 0 gives a hard-edged shadow, which is how outlines and long shadows are built.
- A glow is several layers with no offset and growing blur values.
- Several layers are written on separate lines so the result is easy to read. CSS ignores the line breaks.
- A shadow is not part of the text, so it does not add contrast by itself. Check the text colour against the background.
Privacy
Everything is generated in this browser tab. Nothing you set is sent to a server or stored.
About this page
Written and reviewed by Toolnexo on 23 November 2026. The limits above describe the published tool, not an idealised version of it. If a result looks wrong or the page is unclear, email [email protected] with the tool URL and what you entered. Corrections are published here.
Guides that use CSS Text Shadow Generator
Related tools
Questions about CSS Text Shadow Generator
What is the syntax of text-shadow?
text-shadow takes a horizontal offset, a vertical offset, an optional blur radius and a colour, such as 2px 2px 4px rgba(0, 0, 0, 0.4). Several shadows are separated by commas.
How do I make a glow effect?
Stack layers with 0 offset in the same bright colour and increasing blur, such as 0 0 6px, 0 0 14px and 0 0 28px. The Neon glow preset shows this on a dark background.
How do I outline text with CSS?
Add four shadows of the same dark colour with no blur, offset by 1 pixel up-left, up-right, down-left and down-right. The Outline preset does exactly this.
In what order are the layers painted?
The first shadow in the list is painted on top and each later one sits behind it. Put a sharp layer first if you want it in front of a soft glow.
Does text-shadow have a spread value like box-shadow?
No. text-shadow accepts offsets, a blur radius and a colour only. There is no spread and no inset, so build larger shadows by stacking layers.
Is anything uploaded?
No. The CSS is built in your browser from the options you pick, and nothing is sent anywhere.