Text Decoration Generator
Build CSS underlines, overlines and strike-throughs with custom line styles, color, thickness and underline offset. Preview and save the stylesheet.
Set Underline Thickness and Skip Ink
Text Decoration Generator: how to use it
- Enter sample text and choose any combination of decoration lines.
- Choose a line style, hex color and thickness. Adjust underline offset and ink skipping while checking letters with descenders.
- Copy the CSS or download the stylesheet. Apply the tm-decorated-text class to the target element.
Limits and notes
The preview uses system fonts available on your device. The CSS export contains a class rule and the chosen font settings. It leaves the preview text out of the source file. This tool uses CSS line decorations. It accepts 3-, 4-, 6- and 8-digit hex colors and supports thickness and offset in pixels.
How your privacy works →Text Decoration Generator: common questions
Can I underline and strike through the same text?
Yes. Select both checkboxes. They share the chosen line style, thickness and color.
Why are there gaps in some underlines?
Skip ink lets the browser keep a decoration clear around glyphs such as g and y. Select Draw through glyph ink to request a continuous line.
Does underline offset move a strike-through?
Underline offset changes underline placement. The browser positions overlines and strike-throughs according to its decoration and font rules.