Friday, November 6, 2026 · Asia/KarachiFree tools · No signup · Runs in your browser

Add Line Breaks Tool

Insert line breaks into text in four ways: after every N words, by wrapping lines at N characters without splitting words, after each sentence, or wherever a chosen character such as a comma appears. It is handy for subtitles, poems, SMS-length chunks, code comments and turning comma-separated lists into one item per line.

How to use

  1. Paste the text.
  2. Choose how to break it: every N words, wrap at N characters, after each sentence, or at a character.
  3. Enter N or the character, press Add breaks and copy the result.

Formula / how it works

Every N words. The text is split on spaces and line breaks, then a new line starts after every N words. With N = 4, "One two three four five six" becomes "One two three four" and "five six". Existing line breaks are treated as spaces, so the result is evenly chunked.

Wrap at N characters. This works like the word wrap in a text editor. Words are added to the current line until the next one would push it past N characters, and then a new line starts. Words are never cut in half, so a line can be shorter than N; if a single word is longer than N, it gets a line of its own and a note says how many such words there were. Common widths:

  • 32–42 characters: a subtitle line (many broadcasters use about 37–42).
  • 72–80 characters: plain-text email and code comments.
  • 160 characters: a single SMS, although one message per line is usually what you want there.

After each sentence. A new line starts after full stops, question marks and exclamation marks that are followed by a capital letter or a number. That rule avoids breaking after common abbreviations such as "Dr.", "Mr.", "e.g." and "a.m." followed by a lower-case word. Existing line breaks are kept, so a paragraph structure survives. It is not perfect: an abbreviation followed by a capitalised name, such as "Prof. Lee", is handled from a built-in list, but unusual abbreviations may still cause a break.

At a character. Type a character or a short string such as a comma, a semicolon, a pipe or " - ". Each occurrence is replaced by a line break and the spaces around it are trimmed, which turns "apples, pears, plums" into one item per line. Empty items are dropped.

What it does not do. It does not hyphenate words, justify text or count display width; wide characters such as Chinese or emoji count as one character each, though they may look wider on screen. For HTML, line breaks in the source are not displayed unless the text sits in a pre element or you convert them to br tags.

Removing line breaks. To go the other way and join lines back into a paragraph, use the remove line breaks tool.

Privacy. The text is processed in your browser and is not uploaded.

Worked examples

Four words per line

Inputs: Text: One two three four five six seven eight nine ten; Break: Every N words; N (words or characters): 4

Paste ten words, choose "Every N words" with N = 4 and press Add breaks. The last line holds the two words left over.

Result: One two three four five six seven eight nine ten

Wrap at 20 characters

Inputs: Text: The quick brown fox jumps over the lazy dog near the riverbank today.; Break: Wrap at N characters; N (words or characters): 20

Paste the sentence, choose "Wrap at N characters" with 20 and press Add breaks. "dog near the" stops at 12 characters because adding "riverbank" would make 22.

Result: The quick brown fox jumps over the lazy dog near the riverbank today.

One sentence per line, abbreviations kept

Inputs: Text: Dr. Lee arrived. He sat down! Was he tired? Yes.; Break: After each sentence

Paste the four sentences and choose "After each sentence". "Dr." is recognised as an abbreviation, so there is no break before "Lee".

Result: Dr. Lee arrived. He sat down! Was he tired? Yes.

Comma list to one item per line

Inputs: Text: apples, pears, plums,figs; Break: At a character; Character to break at: ,

Paste the list, choose "At a character" and type a comma. Spaces around each item are trimmed, including where there was none after the comma.

Result: apples pears plums figs

Use cases

  • Splitting text into subtitle-length lines.
  • Formatting poems or lyrics.
  • Turning a comma-separated list into lines.
  • Wrapping plain-text email or code comments.

Tips & limitations

  • Use 72 characters for plain-text email.
  • Use the sentence mode before translating line by line.
  • Check sentence breaks around unusual abbreviations.
  • Use the delimiter mode for CSV-style lists.

FAQ

Does wrapping split words?

No. A word longer than the width gets its own line, and the tool tells you.

Why was there no break after "e.g."?

Breaks only happen before a capital letter or number, and common abbreviations are skipped.

Are existing line breaks kept?

In sentence mode, yes. In word and character modes they are treated as spaces.

Can I break at more than one character?

Yes, type a short string such as " - " or " | ".

How do I show the breaks in HTML?

Wrap the text in a pre element or replace each break with a br tag.

Is there a length limit?

No fixed limit; very large texts depend on your browser's memory.

Runs entirely in your browser; your text is not uploaded. Counts and scores are heuristics, so review the output before you publish it.