Code · Made a little simpler

Text Decoration Generator

Build CSS underlines, overlines and strike-throughs with custom line styles, color, thickness and underline offset. Preview and save the stylesheet.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device
Rising type
Decoration lines

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

Text Decoration Generator: how to use it

  1. Enter sample text and choose any combination of decoration lines.
  2. Choose a line style, hex color and thickness. Adjust underline offset and ink skipping while checking letters with descenders.
  3. 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.

Guides