Free · Private · In-Browser

CSS Text Stroke Generator

Generate outlined text CSS for display headings.

CSS

Outlined display text

Outlined or stroked text — letters with a visible border, or hollow letters — is a strong look for display headings and posters. This generator builds the text-stroke CSS (with the -webkit- prefix) and previews it so you can tune the outline.

Text stroke behaves differently across browsers and pairs with fill in non-obvious ways, so a live preview matters. Adjust the stroke width and colors, and copy the CSS for a bold headline treatment.

Copy-ready text stroke

-webkit-text-stroke draws the outline, and a matching text-shadow can fake it where the property is unsupported. Generated in your browser.

Frequently asked questions

Does -webkit-text-stroke work in Firefox?

Yes. Despite the prefix, -webkit-text-stroke works in all current major browsers, including Firefox.

Why do thick strokes make letters look thin?

The stroke is centered on the glyph outline, so half of it covers the letter fill. Use a heavy font weight, or keep strokes to 1 to 3px on display sizes.

How do I make hollow outlined text?

Set the fill color to transparent (or the background color) and keep the stroke color, for example color: transparent; -webkit-text-stroke: 2px #0f172a.

Take it further
Design Tools

Practical utilities for front-end design and implementation work.

Learn more