Text Stroke Generator

Outline text with a stroke width and color.


-webkit-text-stroke is the widely supported way to outline glyphs. paint-order: stroke fill keeps the stroke from eating a thin fill. A transparent fill leaves only the outline.

Frequently asked questions

Does the stroke sit inside the letters?

The WebKit stroke is centered on the glyph edge, so a thick stroke covers part of the fill. Paint-order draws the fill on top.

Can the fill be transparent?

Set the fill to the backdrop color, or use color: transparent in the copied CSS, for a hollow outline.