Add Line Breaks screenshot

Add Line Breaks

Insert line breaks into a paragraph after each sentence, every N words or every N characters, with the original wording untouched.

Privacy First
0 Runs
Updated 2026-11-22
Runs in your browser
No upload
Deterministic

What this page does

A paragraph pasted from a PDF or a chat box is often one long line. This page inserts line breaks at the boundary you choose: after each sentence-ending punctuation mark, after every N words, or every N characters. Nothing else in the text changes.

How to use it

Paste or type the text and press Run. The result appears beside the form. With "First sentence. Second sentence! Third one?", the page gives:

First sentence.
Second sentence!
Third one?

The rule it applies

In sentence mode a break replaces the whitespace after each full stop, question mark or exclamation mark; in words mode the whitespace after every Nth whitespace-separated word becomes a newline; in characters mode the text is cut every Nth character, which can split a word.

Every word, every punctuation mark and the order of the text are unchanged; only whitespace at the chosen boundary becomes a newline. Every character is read in your browser: nothing is uploaded and nothing is stored.

A paragraph pasted from a PDF or a chat box is often one long line. This page inserts line breaks at the boundary you choose: after each sentence-ending punctuation mark, after every N words, or every N characters. Nothing else in the text changes.

The rule this page applies: In sentence mode a break replaces the whitespace after each full stop, question mark or exclamation mark; in words mode the whitespace after every Nth whitespace-separated word becomes a newline; in characters mode the text is cut every Nth character, which can split a word.

Worked example: "First sentence. Second sentence! Third one?" with the default controls gives the output recorded in the example below, character for character.

How to use the Add Line Breaks

Paste or type the text into the box, set Break after, N (words or characters modes), then press Run. The page re-reads whatever is in the box and prints the rule it applied.

Worked example: with "First sentence. Second sentence! Third one?" the page prints the output in the What to Expect block below, and running it again prints the same bytes.

The rule this page applies

In sentence mode a break replaces the whitespace after each full stop, question mark or exclamation mark; in words mode the whitespace after every Nth whitespace-separated word becomes a newline; in characters mode the text is cut every Nth character, which can split a word.

Every word, every punctuation mark and the order of the text are unchanged; only whitespace at the chosen boundary becomes a newline.

What to Expect

Best for

  • Turning a pasted paragraph into one sentence per line
  • Preparing subtitles or bullets from prose

Not ideal for

  • Wrapping to a visual width, where word wrap is the right page
  • Text with abbreviations, which sentence mode reads as sentence ends

What this tool keeps

  • Your text, read in this tab and nowhere else
  • The same answer on every run
  • Nothing sent, stored or logged

What may need cleanup

  • Your own wording, which the page never composes for you
  • Spacing carried over from the text you pasted

Common errors

  • Sentence mode refuses a text with no sentence-ending punctuation followed by a space, because no boundary would be inserted.
  • An empty box, which the page refuses rather than printing a blank result

Example use cases

  • One sentence per line for a diff review
  • Splitting a paragraph into chat messages

Sample input

First sentence. Second sentence! Third one?

Sample output

First sentence. Second sentence! Third one?

Who this is for

  • editors
  • developers

Frequently asked questions

What rule does this page apply?

In sentence mode a break replaces the whitespace after each full stop, question mark or exclamation mark; in words mode the whitespace after every Nth whitespace-separated word becomes a newline; in characters mode the text is cut every Nth character, which can split a word.

What input does it refuse?

Sentence mode refuses a text with no sentence-ending punctuation followed by a space, because no boundary would be inserted.

What is left unchanged?

Every word, every punctuation mark and the order of the text are unchanged; only whitespace at the chosen boundary becomes a newline.

Is anything uploaded?

No. The text is read by JavaScript in this page and nothing is posted, stored or logged.

How is this different from word wrap?

Word wrap breaks at a width and never splits a word; this page breaks at a stated boundary. Character mode here does split words, which is the point of that mode.

Does a break replace a space?

Yes in sentence mode, where the whitespace after the punctuation becomes the newline. The punctuation itself is kept.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.