Loading…

How to use CSS Text Stroke Generator

Type sample text and set the stroke width and color, and the tool renders a live preview with the matching -webkit-text-stroke CSS.

Frequently asked questions

What is -webkit-text-stroke?

A property that draws an outline around each glyph. Set the fill color to transparent for fully hollow text.

Is text-stroke supported everywhere?

-webkit-text-stroke works in all modern browsers. The un-prefixed text-stroke is included for forward compatibility.

How do I make hollow outlined text?

Set a stroke width and color, then set the text color (fill) to transparent.

More CSS Generators

CSS Outline Generator
Generate outline width, style, color and offset with preview
CSS Backdrop Filter Generator
Build backdrop-filter blur, brightness and saturation effects
CSS Blend Mode Generator
Preview all mix-blend-mode values on overlapping shapes
CSS Mask Fade Generator
Fade element edges with mask-image linear gradients
CSS 3D Perspective Generator
Rotate elements in 3D space with perspective and live preview
CSS Aspect Ratio Generator
Get aspect-ratio plus the padding-hack fallback for any ratio
CSS Multi-Column Generator
Build newspaper-style column-count layouts with column rules
CSS Object Fit Generator
Preview object-fit and object-position on images live
CSS Line Clamp Generator
Truncate multi-line text with -webkit-line-clamp ellipsis
CSS Writing Mode Generator
Set vertical and horizontal writing-mode with text-orientation
CSS Image Rendering Generator
Control pixelated vs smooth image-rendering with live preview
CSS Type Scale Generator
Generate a modular type scale as CSS custom properties

← View all CSS GeneratorsBrowse all 1,100+ tools →