About Text Shadow Generator
Type a word, pick a style and adjust it while the preview redraws. Custom gives you one or two soft layers with offset, blur, color and opacity. Long 3D stacks one-pixel steps in any direction to extrude the letters. Hard offset is a single crisp copy behind the text, the retro poster look. Glow stacks blurs of growing size for a neon halo.
The result is plain CSS that works on any text element. Copy the whole declaration or only the value.
How it works
- Every style is turned into a list of text-shadow layers. Custom and hard offset write one or two layers; long 3D writes one layer per pixel of depth; glow writes one to five layers.
- A long shadow moves one pixel per layer along the direction you set, using sine and cosine, so diagonal steps are rounded to two decimal places.
- With fade switched on, each step of a long shadow is a little more transparent than the one before, so the extrusion melts into the background.
- The settings, including the preview text, are kept in the page address so you can bookmark a style or share it as a link.
Questions
Does a long shadow with many layers slow a page down?
A few dozen layers on a heading is fine in current browsers. Depth is capped at 80 layers here; use long shadows on short headings rather than body text, where every glyph would repeat the work.
Can text-shadow have spread like box-shadow?
No. The text-shadow property only takes horizontal and vertical offsets, a blur radius and a color, so there is no spread or inset control in this tool.
Is the preview text included in the CSS?
No. The text is only there to judge the effect. The copied CSS is the same whatever you type, and it applies to any text you put it on.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.