At a glance. This underline text generator makes underlined text two ways. Copy and paste gives 19 styles that go into a bio, caption or name: each adds a small mark after your letters, so the underline is part of the text. Real fonts is a picture studio: it draws your text in one of 28 free fonts with a line you control, in 6 line styles, under, over or through the letters, with a thickness, distance and colour you set and an option to skip the tails of g, j, p, q and y. It adds effects, backgrounds and 16 style presets, and saves PNG, JPG, WebP, SVG or PDF, with a transparent background if you want one. It also writes the matching CSS and HTML for a web page. You can underline only the words you put in [square brackets]. There is no watermark and no sign-in.
How to use the underline text generator
Your text and the options sit at the top, with a quick result under the text. Then there are two tabs. Copy and paste lists every style, with a box underneath that tests your device and the length, and a way to take an underline off again. Real fonts is the picture studio, with an Underline tab for the line, quick presets, effects, backgrounds and an Export tab.
Type your text
A name, a heading or a short caption. Put [square brackets] around words and turn on the brackets option to underline only those words.
Pick text or picture
Copy and paste gives 19 styles for bios, captions and names. Real fonts draws the text in a font you choose, with a line you set.
Shape the line
In the Underline tab pick one of 6 line styles, put it under, over or through the letters, and set the thickness, the distance, the colour and whether it skips the tails of g, j, p, q and y. Start from one of 16 style presets if you like, or press Surprise me.
Copy, download or take the code
Copy a style and paste it. Download the picture as PNG, JPG, WebP, SVG or PDF, with a transparent background if you want one. Or copy the CSS or HTML for a web page.
Which output should you pick?
- A bio, caption, comment or name: copy and paste. The result is text, so it can be selected and kept in an edit box, but it is underlined only by marks, and every device draws marks its own way.
- A chat message: the Markdown form shown under the styles, where an app supports it. It is a message feature, not a way to style a name.
- A poster, thumbnail, sticker or social graphic: the picture from Real fonts. The line is really drawn, it can be dotted, dashed or wavy, and it looks the same for everyone.
- A website or an app: the CSS or HTML from the Export tab. The text stays real text, so it can be read aloud and found by search.
For a line through the letters, see the strikethrough text generator (opens in a new tab). For a line that rises and falls, see the wavy text generator (opens in a new tab).
The copy and paste styles
Every style uses a combining mark (opens in a new tab). A combining mark is a character with no width of its own that a device draws on the letter before it. The single underline puts U+0332 (combining low line) after each letter, the double underline uses U+0333, and the others use the marks in the table. Two-mark styles carry two extra characters on every letter.
| Style | Group | Code point | Unicode name |
|---|---|---|---|
| Single underline | Under the letters | U+0332 | combining low line |
| Double underline | Under the letters | U+0333 | combining double low line |
| Macron below | Under the letters | U+0331 | combining macron below |
| Minus sign below | Under the letters | U+0320 | combining minus sign below |
| Equals sign below (later in the block) | Under the letters | U+0347 | combining equals sign below |
| Tilde below | Under the letters | U+0330 | combining tilde below |
| Dots below | Under the letters | U+0324 | combining diaeresis below |
| Cross below (later in the block) | Under the letters | U+0353 | combining x below |
| Plus below | Under the letters | U+031F | combining plus sign below |
| Asterisk below (later in the block) | Under the letters | U+0359 | combining asterisk below |
| Arrow below (later in the block) | Under the letters | U+034D | combining left right arrow below |
| Overline | Over the letters | U+0305 | combining overline |
| Double overline | Over the letters | U+033F | combining double overline |
| Strike-through | Through the letters | U+0336 | combining long stroke overlay |
| Short strike | Through the letters | U+0335 | combining short stroke overlay |
| Slash through | Through the letters | U+0338 | combining long solidus overlay |
| Underline and overline | Two marks together | U+0332 + U+0305 | combining low line + combining overline |
| Double under and over | Two marks together | U+0333 + U+033F | combining double low line + combining double overline |
| Underline and strike | Two marks together | U+0332 + U+0336 | combining low line + combining long stroke overlay |
The styles marked "later in the block" use marks after U+0345. They are valid Unicode, but a font is less likely to include them, so an older device may draw a box or leave a gap. By default the tool leaves spaces, punctuation and emoji plain, because a mark after an emoji often draws badly, and keeps web addresses unchanged. Options lets you change each of those, and Show code points lists what was added.
Each row shows how many letters it holds and how many UTF-16 units that comes to, so you can see the cost of a style. Star a style to keep it in Favourites, and the last few you copied appear above the list. For heavier mark stacking, see the fancy text generator (opens in a new tab).
How the line is drawn
In the picture the line is not a character. It is drawn under the text from the measured letters, so you can set it. The 6 styles are solid, double, dotted, dashed, wavy, zigzag. Position puts the line under, over or through the letters, or under and over together. Thickness, distance and reach are a share of the letter size, so the line scales with the text.
Skip letter tails breaks the line where a letter such as g, j, p, q or y hangs through it, the way a browser's text-decoration-skip-ink (opens in a new tab) does by default. The tool finds those gaps by looking at what the letters actually cover, so it works with any font. The line takes the text colour or its own colour, and follows a gradient fill when the text has one. Its ends can be flat or round. Where letters are underlined is the same choice as in Options, so the picture and the pasted text agree, including words chosen with [square brackets].
The real fonts and the picture
The 28 open fonts are Inter, Roboto, Open Sans, Lato, Source Sans 3, Montserrat, Poppins, Nunito, Raleway, Work Sans, DM Sans, Plus Jakarta Sans, Lora, Merriweather, Playfair Display, Source Serif 4, Libre Baskerville, EB Garamond, Bebas Neue, Anton, Bangers, Lobster, Pacifico, Dancing Script, Caveat, JetBrains Mono, Space Mono, IBM Plex Mono. All are under the SIL Open Font License 1.1 (opens in a new tab), obtained through Fontsource (opens in a new tab) from Google Fonts (opens in a new tab), and stored on this site as Latin subsets. Each loads with the FontFace API (opens in a new tab) only when you look at it, so the page makes no request to a font service. A Latin subset covers English and most Western European text. A letter from another alphabet is drawn by a font on your device instead.
The picture is drawn on a canvas and saved with the browser's own canvas export (opens in a new tab), as PNG, JPG or WebP. The SVG is built from the same layout as the preview, with the font file placed inside it and the line as a path, so it looks the same on any device. The words in the SVG are still text, not outlines. The PDF holds the finished picture, so its text cannot be selected. Many browsers cannot make a canvas of more than about 16.7 million pixels, and the page warns you when a size and resolution go over that.
The studio has eight tabs. Underline sets the line and which letters get one. Fonts sets the typeface, weight, size and spacing. Effects adds colour, gradient, outline, hollow letters and glow. Shadows, Borders and Backgrounds set the rest of the picture, including your own photo or transparency. Symbols adds characters such as © and é to your text. Export downloads one file, a ZIP of several sizes or several texts, copies the share link and the code, and saves your looks as a file. 16 style presets and up to eight of your own looks are a click away, and Compare puts two looks side by side.
CSS and HTML
On a web page the line is a property of the text. The Underline tab shows the CSS for your current line, and Export gives the full rule, the HTML and a React component. text-decoration-line (opens in a new tab) chooses under, over or through, text-decoration-style (opens in a new tab) chooses solid, double, dotted, dashed or wavy, text-decoration-thickness (opens in a new tab) sets the weight, and text-underline-offset (opens in a new tab) moves the line away from the letters.
CSS cannot do everything the picture can. It has no zigzag line, so the code uses a wavy one. It cannot move an overline, let a line reach past the letters, round the line ends or give a line a gradient. The code adds a comment wherever it has to leave something out. The semantic <u> element (opens in a new tab) is for text that is marked in a way that is not a link, such as a misspelling, and a plain underline on other text can be mistaken for a link, so use it with care.
Where underlined text breaks
Here is what we know for each kind of output, and how sure we are. We have not tested live apps, and apps change.
| Output | What to know | How sure |
|---|---|---|
| Single and double underline (U+0332, U+0333) | In the first part of the combining-marks block. Drawn by the device's font, so thickness and joins vary. | Block and code points from the Unicode chart. How each app draws them is untested. |
| Styles later in the block (4 of 19) | An older device or font may show a box or leave a gap. | Positions from the Unicode chart. Which devices lack them is untested. |
| An app that cleans text | An app may remove, limit or reorder combining marks, and the result would be plain or uneven letters. | Not tested for any named app. Paste into a draft first. |
| Names, handles and hashtags | Usually limited to plain letters, digits and underscores, so marks are unlikely to work. | General practice. Check the app's own rules. |
| Length limits | Each mark counts as a character in some apps, and some apps count UTF-16 units (opens in a new tab). A single underline roughly doubles the length. | Counts are exact. Each app's limit should be checked in the app. |
| Markdown underline in a message | Documented by Discord (opens in a new tab) for messages. Other apps differ, and it does not apply to names or bios. | Discord's own help page. Other apps untested. |
| PNG, JPG, WebP, SVG in a browser | Drawn from the same layout as the preview with the font loaded, and the SVG carries the font. | Checked by this tool's own tests. |
| SVG in a design or cutting program | The words stay as text. A program may swap the font or need outlines. | Untested in named programs. |
Some sites change text as it comes in. The Unicode rules for normalisation (opens in a new tab) compose some letter and mark pairs into one character, such as an n followed by a macron below into ṉ, which looks the same, so pasted text can differ from what you copied without looking different.
Underline, bold or strike-through
| Style | What it does | Best for |
|---|---|---|
| Underline | A line under the letters. On a page it can look like a link. | Section labels, a key word, a name in a bio. |
| Bold (opens in a new tab) | Heavier letters, with no extra line. | Emphasis that does not look like a link. |
| Strike-through (opens in a new tab) | A line through the letters, to show something is removed. | Old prices, corrections, jokes. |
Reading and accessibility
- A single line under normal text reads easily. A heavy, dotted or wavy line across a long sentence is tiring, so save it for a title or a key word.
- Text and background need enough contrast. The Export tab shows the ratio for plain colours, against the WCAG contrast guidance (opens in a new tab), and a small-size preview.
- Do not rely on a line or a colour alone to carry meaning, see WCAG on the use of colour (opens in a new tab).
- Screen readers may read each combining mark or skip the styled letters. Add a plain copy of the words, which the Will it work where I paste it? box provides.
- A picture of text needs alt text. The Export tab copies a ready one.
- Do not use pasted underlined text for anything people must be able to search for, such as a name to find, or for essential information.
For keeping blank lines in an Instagram caption that holds underlined text, see the Instagram line break generator (opens in a new tab).
Licence
The 28 open fonts are under the SIL Open Font License 1.1 (opens in a new tab), which allows use in a logo, a poster or a video, including commercial work, and does not allow selling the font file by itself. Each family keeps its designer's copyright, and the Export tab has a licence link and the font file. The device font is not hosted here, and a picture made with it uses a font whose licence is the device maker's.
Privacy
Everything is worked out in your browser, including the pictures. The fonts are served from this site, so no request goes to a font service. Your text is not uploaded or saved. Your style settings, My looks and favourite styles are kept in your browser storage on this device, and a background picture you choose is not saved. The optional import of a web page sends that one address to our server so it can read the page's text, and nothing is stored.
Frequently asked questions
What is underline text?
Underlined text is writing with a line under the letters. There are two different things behind the name. One is pasteable text with a tiny combining mark added after each letter, which looks underlined only because of how a device draws that mark. The other is a picture or a web page where a line is really drawn under the text. This tool makes both and labels which is which.
How do I copy and paste underlined text?
Type your text, then press Copy next to a style in the Copy and paste tab, or use the Quick copy box at the top. There are 19 styles. Each one adds a combining mark, such as U+0332 for a single underline, after every letter you chose, so the letters underneath are unchanged. Paste into a draft first to see how the app treats it.
Does Unicode have an underline font?
No. Unicode has no alphabet in which every letter is already underlined, unlike the Mathematical Bold and Italic letters. A pasted underline is a combining mark placed after each letter. For a line that is really part of the picture, use the Real fonts tab or CSS.
Why does my underlined text look different on someone else's phone?
A combining mark has no shape of its own. Each device draws it with the font it has, so the thickness, the height and the way marks join between letters change from one phone, system or app to the next. Nothing on this site can control that, and we have not tested live apps, so paste into a draft and look before you post. A picture looks the same everywhere because it is a picture.
Which underline style is the safest to paste?
The single underline (U+0332) and the double underline (U+0333) are in the first part of the Combining Diacritical Marks block and are the most commonly used marks for this, so they are the least likely to show as a box. 4 of the 19 styles use a mark late in that block (after U+0345), and an older device or font may draw those as a box or leave a gap. Options has a switch that hides them. How a particular app treats combining marks is something to test in the app.
Can I underline only some words?
Yes. Put [square brackets] around the words, then turn on Only underline [bracketed] words in Options. The brackets are removed from the result, and everything outside them stays plain. The picture uses the same choice, so the line is drawn under those words only.
Can I underline text on Instagram, WhatsApp, Facebook, TikTok or X?
Often you can paste it, but we have not tested live apps and apps change what they accept, so we cannot say which ones keep the marks. Some apps clean text, and usernames and handles usually accept only plain letters, digits and underscores. Use the Will it work where I paste it? box to check the length, then paste a short test into the app before you post.
Does Discord have its own underline?
Discord documents Markdown in messages, where two underscores on each side of a phrase make it underlined. The Copy and paste tab shows your text in that form. It is a message feature, so it does not help in a nickname or a bio, where the Unicode styles are the thing to try. Other chat apps differ.
How is a picture or CSS underline different from a pasted one?
A pasted underline is made of extra characters that the reading device draws. A picture is a finished image, so it looks the same everywhere and the line can be dotted, dashed, wavy or any colour. CSS draws a real line under real text on a web page, so the text can still be read by a screen reader and found by search. The Real fonts tab gives you the picture and the CSS for the same design.
What do the thickness, distance and reach sliders mean?
Each is a share of the letter size, so the line keeps its look when the text gets bigger or smaller. Thickness is how heavy the line is. Distance is the gap between the letters and the line. Reach lets the line run a little past the first and last letter. Skip letter tails breaks the line around g, j, p, q and y, as browsers do by default for an ordinary underline.
Can I make underlined text with a transparent background?
Yes. In the Real fonts tab, open Backgrounds and pick Transparent, then download a PNG or WebP. The squares in the preview show what will be see-through. JPG and PDF cannot be transparent, so the tool adds a white background to those. The Crop option trims the empty space so the file is only as big as the drawing.
Does the SVG look right in Illustrator, Cricut or Canva?
We have not tested those programs. The SVG keeps the words as text, has the font file inside it, and draws the line as a path, so a browser draws it exactly as in the preview. A program that reads SVG may replace the embedded font with one it has, and cutting machines usually need outlines. If a program changes the look, use the PNG, or convert the text to outlines in that program.
Which fonts are available, and are they free to use?
28 fonts are stored on this site, and all are under the SIL Open Font License 1.1, which allows use in pictures and projects, including commercial ones, but not selling the font file by itself. They come from Google Fonts through Fontsource. There is also a device font that uses whatever your device has, so a picture made with it can look different on another device. Fonts under other licences are left out.
Can I remove the underline from text I already made?
Yes. At the bottom of the Will it work where I paste it? box, Take an underline off removes the marks this tool adds and leaves your letters, emoji and other accents alone. Marks that came from another tool are not removed.
How long can the text be?
The text box takes up to 2,000 characters for the copy and paste styles. The picture draws up to six lines, because a long paragraph stops being legible as a picture. Many apps count each combining mark as a character, so a single underline roughly doubles the length of your text. The length check counts UTF-16 units against commonly quoted limits so you can see it before you paste, but confirm each limit in the app.
Is there a watermark, a sign-in or a limit on downloads?
No watermark is added, no account is needed and the downloads are not counted. The picture can be up to 4,000 pixels on each side, and the page warns when a size and resolution would make a canvas bigger than many browsers can draw.
Is my text uploaded or saved?
No. Everything is worked out in your browser, including the pictures and the fonts, which are served from this site, so no request goes to a font service. Your text is not saved. Your style settings, My looks and favourite styles are kept in your browser storage on this device, and nothing leaves it. The only exception is the optional import of a web page, which sends that one address to our server so it can read the page's text.
Sources
- Unicode chart, Combining Diacritical Marks (U+0300) (opens in a new tab)
- Unicode Standard Annex #15, Normalization Forms (opens in a new tab)
- MDN, String length (UTF-16 code units) (opens in a new tab)
- MDN, text-decoration-line (opens in a new tab)
- MDN, text-decoration-style (opens in a new tab)
- MDN, text-decoration-thickness (opens in a new tab)
- MDN, text-underline-offset (opens in a new tab)
- MDN, text-decoration-skip-ink (opens in a new tab)
- MDN, the <u> element (opens in a new tab)
- MDN, FontFace (opens in a new tab)
- MDN, HTMLCanvasElement.toBlob() (opens in a new tab)
- W3C, Understanding contrast (minimum) (opens in a new tab)
- W3C, Understanding use of colour (opens in a new tab)
- Discord, Markdown Text 101 (opens in a new tab)
- SIL Open Font License 1.1 (opens in a new tab)
- Fontsource, font catalogue and licences (opens in a new tab)
How an app or a device draws a character is not something we can test everywhere, and apps change what they accept. The code points come from the chart above, and the length limits shown in the tool are commonly quoted figures that should be confirmed in each app.
Last updated: