CSS Text Stroke Generator
Create outlined text effects with -webkit-text-stroke. Live preview with transparent, solid, or gradient fills, plus optional drop shadow. Copy the CSS in one click.
STROKE
-webkit-text-stroke is supported in every modern browser despite the prefix. Pair it with color: transparent (or background-clip: text for a gradient) to get hollow letters. For very small type the stroke can clobber readability — keep stroke widths under 2px below 24px font sizes.
How to Use
Create outlined text effects with -webkit-text-stroke. Live preview with transparent, solid, or gradient fills, plus optional drop shadow. Copy the CSS in one click.
- 1Type the text you want to outline. Short headlines (3–10 characters) read best; the effect gets noisy on long sentences.
- 2Pick a font and weight. Bold weights (700–900) and display fonts like Impact or Arial Black give the cleanest stroke — thin fonts have too little room for the line to sit.
- 3Set the stroke width. 1–3px works for headline sizes (60–120px). Bigger strokes start to overlap and lose the open silhouette.
- 4Choose a fill mode. Transparent gives the classic hollow look. Solid is for two-tone (e.g. yellow letters with black outline). Gradient bleeds a fill into the open glyph — great for hero text.
- 5Toggle the drop shadow if the text needs to lift off a busy background. Then click Copy — the CSS goes straight into your stylesheet.
Key Features
- Live preview at any font size, weight, and family — see exactly what your headline will look like before shipping
- Three fill modes (transparent, solid, gradient) plus optional drop shadow — covers every common outlined-text recipe
- Outputs both -webkit-text-stroke and text-stroke for cross-browser support
- Works with any web font — drop the CSS variable into your design system and the effect inherits
- Pure client-side — no server processing, no signup, no tracking