Back to Tools

Add Line Breaks

Break long text into readable lines at a custom character width

0
0
0
Input Text

Turn one long line into readable, fixed-width lines

Some text arrives as a single unbroken stream: an exported description, a copied paragraph from a database field, or a log message that runs far past the edge of your editor. Add Line Breaks inserts new lines so that no line is longer than the width you set. It is a hard-wrap tool, useful whenever the destination expects short lines rather than text that reflows on its own.

How to wrap your text

  1. Paste your text into the Input Text box, or use the Paste button, or load a plain .txt file with File.
  2. In the Break at field, enter the maximum number of characters per line. The field starts at 80 and accepts values from 10 to 500.
  3. Leave Break at word boundary ticked if you want lines to end between words. Untick it to cut at the exact character count, even in the middle of a word.
  4. Click Add Line Breaks. The result appears below with a Before and After comparison of characters, words and lines, plus a note saying how many line breaks were added.
  5. Use Copy or .TXT to take the result away.

How the wrapping behaves

  • Each existing line is handled separately, so paragraphs you already separated stay separated. Only lines longer than the width are split.
  • In word-boundary mode the tool splits on spaces. A single word that is longer than the width is left whole on its own line rather than chopped.
  • In exact mode every chunk is precisely the chosen length except the last one, which holds whatever remains.

Where it helps

  • Preparing a plain-text email or commit message body that should stay under a 72 or 80 character limit.
  • Formatting a license header or README paragraph for a terminal-friendly file.
  • Breaking a long product description into lines for a printer, label template or fixed-width display.
  • Making pasted log lines or captions easier to read before sharing them in a ticket.

Tips and limits

The width counts characters, not pixels, so the wrapped text lines up properly only in a monospaced font. Tabs are not treated as word separators, and a URL with no spaces cannot be wrapped in word-boundary mode without being left as one long line. Exact mode is better suited to code-like strings such as long hashes or encoded values, where splitting mid-token is acceptable. If the result has more breaks than you wanted, raise the width and run it again on your original text. The tool works in your browser page and only handles text, so formatting such as bold or links is not preserved.


Related Tools







Frequently Asked Questions

What range of line widths can I use?
The Break at field accepts values from 10 to 500 characters and starts at 80. Enter the limit your destination needs, for example 72 for a commit message body or 60 for a narrow label, then click Add Line Breaks to apply it.
What is the difference between word boundary and exact breaking?
With Break at word boundary ticked, lines end between words so nothing is split in half. With it unticked, the text is cut every exact number of characters, which can split a word in two. Use exact mode mainly for hashes, keys or other long tokens.
Will it change lines that are already short?
No. Any existing line that is at or under the chosen width is left exactly as it is. Only longer lines are split, and your original line breaks between paragraphs are kept in the output.
Why is one very long word still longer than my width?
In word-boundary mode the tool only breaks at spaces. A URL or long string with no spaces stays on one line even if it exceeds the width. Untick Break at word boundary if you want it cut at the exact limit instead.
Can I upload a file instead of pasting?
Yes. The File button loads a plain .txt file into the input box. Other formats such as Word documents or PDFs are not read, so copy the text out of those first and paste it in.
Support Chat
We typically reply within minutes

Hello! 👋 Before we start, please tell us your name.