What is a text-shadow generator?
A text-shadow generator builds the CSS text-shadow property visually. Each shadow has a horizontal and vertical offset, a blur radius and a colour, and several can be combined for effects like glows, outlines, embossing and layered 3D text.
Pick one of six presets or start from scratch, type your own preview text, choose text and background colours, and adjust up to six shadow layers with sliders. The preview updates as you go and the finished CSS is ready to copy.
How to use the CSS text-shadow generator
1.Start from a preset
Soft drop, outline, neon glow, 3D stack, retro offset or letterpress.
2.Adjust the layers
Change offset, blur, colour and opacity, or add up to six layers.
3.Copy the CSS
Paste the text-shadow line into your stylesheet.
Example: a neon sign heading
The Neon glow preset on a near-black background:
- Layer 1
- 0 0 4px white
- Layers 2–3
- 0 0 12px and 28px cyan
- Layer 4
- 0 0 48px blue at 80%
White letters with a cyan-to-blue glow that looks like a lit neon tube.
Effects from stacked shadows
Most text effects are several shadows stacked together. An outline is four sharp shadows nudged in each diagonal direction, a neon glow is a few blurred shadows in the same colour at growing sizes, and 3D lettering is a row of shadows stepping down and to the right.
Text shadows don't take up space or move other content, so they're safe to change on hover. Keep large glows for headings; on body text they hurt readability.
Frequently asked questions
What's the difference from box-shadow?
text-shadow follows the letter shapes; box-shadow follows the element's rectangle.
Can text-shadow make a true outline?
It fakes one well for thin outlines. For thick outlines, -webkit-text-stroke is an alternative.
Do text shadows affect accessibility?
Shadows can raise or lower contrast. Check the text colour against the background either way.
Can I share an effect?
Yes. The layers and colours are saved in the page address.
Related tools
CSS Box-Shadow Generator
Layered, inset and soft shadows with a live preview.
CSS button generator
Design a button with hover, active and focus styles, then copy the CSS.
CSS Gradient Generator
Linear, radial and conic gradients with up to six stops.
CSS Border-Radius Generator
Rounded corners, linked or per-corner, in px or %.
CSS clamp() Generator for Fluid Sizes
Fluid font sizes and spacing that scale between two viewport widths.
Glassmorphism generator
Frosted-glass cards with backdrop blur, tint and edge highlight.
More Developer tools
JSON & data
CSV tools
Network & system
Web & API
Git & releases
Encoding & security
- Base64 encode & decode
- URL encode & decode
- JWT decoder
- Hash generator
- HTML entity encoder
- Text to binary
- Morse code translator
- Caesar cipher & ROT13
- Random string generator
- Secret key generator
- 2FA code generator (TOTP)
- Encrypt & decrypt text
- Encrypt & decrypt files
- SSH key generator
- Base32 encoder and decoder
- Unicode escape converter
- Nano ID generator
- JWT generator
Text & code
- Regex tester
- Text diff checker
- Cron expression explainer
- Lorem ipsum generator
- Markdown previewer
- Slug generator
- Strip HTML tags
- Unicode character inspector
- URL parser
- Markdown TOC generator
- cURL converter
- Whitespace visualizer
- Markdown link extractor
- Regex escape
- Regex match extractor
- Split text by regex
- HTML, CSS and JS playground
- Mock data generator
- Keyboard event tester
- ASCII table