Underline text generator — an underline that survives copy and paste

Paste a line of text and the tool adds a combining underline mark after every character, so the line travels with the words into apps that have no underline button.

Live demo · real result from this tool
Keeps the line continuous across word gaps.

Styled text

H̲e̲l̲l̲o̲ ̲w̲o̲r̲l̲d̲ ̲2̲0̲2̲6̲

Processed on your device — nothing is uploaded.

How to use the underline text generator

  1. Type or paste your text in Your text.
  2. Leave Also mark spaces ticked for one continuous line, or untick it to underline word by word.
  3. Look at Styled text; it updates as you type.
  4. Press Copy and paste it where you need it.

What it does and when to use it

Underline is normally formatting, which most plain-text fields throw away. This tool builds the line into the text instead. It is handy for a heading in a profile, a highlighted rule in a group chat, or a title inside a code comment. It works on any script, not only Latin letters, because the mark is added after whatever character you type.

For a heavier line try the double underline generator. A line above the letters is the overline generator, and a line through them is the strikethrough generator.

How it works

The tool splits your text into user-visible characters, so an emoji or an accented letter counts as one, and appends U+0332 COMBINING LOW LINE after each one. U+0332 lives in the Combining Diacritical Marks block (U+0300–U+036F). A combining mark has no width of its own; the font draws it under the character before it. Line breaks are never marked, so a multi-line paste keeps its shape.

Worked examples

From the tool’s own function:

  • Sale ends today with the default settings becomes S̲a̲l̲e̲ ̲e̲n̲d̲s̲ ̲t̲o̲d̲a̲y̲, one unbroken line.
  • The same text with Also mark spaces unticked becomes S̲a̲l̲e̲ e̲n̲d̲s̲ t̲o̲d̲a̲y̲, three separate underlines.
  • gyp becomes g̲y̲p̲. The line runs through the tails of g, y and p, as a real underline would in many fonts.

Limits and tips

  • Accessibility. A screen reader will usually read the letters, but some announce “combining low line” after each one, which turns a short phrase into a long, confusing list. Search boxes may also fail to find the words. Underline decoration, not information people must read or search for.
  • Emoji and wide characters. The mark is attached to them too, but many fonts place it badly under emoji or Chinese and Japanese characters.
  • Usernames and URLs do not accept combining marks; keep them plain.
  • Everything happens in your browser; the text is not uploaded.

Frequently asked questions

Why does the underline look dotted or broken?
Each letter carries its own short piece of line. Whether the pieces join up depends on the font and the letter widths. Most phone and desktop fonts join them well; some show small gaps between letters.
What does "Also mark spaces" do?
When it is ticked (the default), the spaces get a mark too, so one long line runs under the whole phrase. Untick it to underline each word separately, which looks closer to a link.
Why does my underlined text use twice the character limit?
Every visible character is followed by an invisible mark that counts as a character. "Sale ends today" is 15 characters before and 30 after.
Can I remove the underline later?
Keep a copy of your original words, or retype them. The marks are part of the text itself, so the target app's formatting buttons cannot switch them off.
Does Discord or Reddit need this?
No. Discord has its own underline syntax, two underscores on each side, which the Discord text formatter writes for you. Use this tool for places with no formatting at all.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close