Remove Line Breaks

Paste text copied from a PDF, an e-mail or a web page, where each line ends in the middle of a sentence. Get it back as clean paragraphs or as one line.

Free Runs in your browser Checked Tuesday, November 10, 2026

Remove

Runs of spaces inside a line become one space.

For example infor- and mation become information. A compound such as well-known split at a line end is joined too.

Result

Line breaks removed —
Text without line breaks

This tool runs in your browser. What you enter is not sent to us.

How to use it

  1. Paste the text in Text.
  2. Choose what to Remove: all line breaks, or only those inside paragraphs.
  3. Choose what goes Put between the lines, and tick the other options you need.
  4. Copy the Text without line breaks.

Paragraphs and lines

An empty line marks the end of a paragraph. With Line breaks inside paragraphs only, the lines of each paragraph are joined and the empty lines between paragraphs are kept. With All line breaks, every line break goes, so the whole text becomes one line.

  • Line ends written as CR LF (Windows), LF (Unix) or CR (old Mac systems) all count as line breaks.
  • Lines are trimmed at both ends before they are joined, so no double space appears where a line ended.
  • A line that holds only spaces counts as an empty line.

Hyphenated words

A word split by a hyphen at the end of a line is written in two parts, such as infor- and mation in a PDF. The option joins the two parts when the next line starts with a lower-case letter.

The option cannot tell a split word from a compound that happens to end a line, so well-known split there is joined to wellknown as well. Check the joined words, and correct any compound by hand.

What the tool does not do

  • It does not change punctuation or capital letters.
  • It does not know which line breaks must stay, such as those in a poem or an address. Use All line breaks only when every line break can go.

Worked example: two paragraphs from a PDF

The sample has two paragraphs. The first one has three lines, and the empty line between the paragraphs is kept in the paragraph mode. The table counts the line breaks removed with each setting, with a space between the lines and extra spaces removed.

Setting Line breaks removed
Line breaks inside paragraphs only 2
All line breaks 4

Frequently asked questions

What is the difference between the two modes?

Inside paragraphs keeps the empty lines as paragraph breaks, so the text keeps its paragraphs. All line breaks makes the whole text one line, including the empty lines between paragraphs.

Will the tool break a poem or an address?

It removes every line break inside a paragraph, so the lines of a poem or an address are joined. Use the paragraph mode and check the result, or copy the lines you need one by one.

Why does the hyphen option join well-known into wellknown?

The option cannot tell a split word from a compound that happens to end a line, so it joins both. Turn the option off, or correct the compound by hand.

Does the tool work with Windows line endings?

Yes. The CR LF line end of Windows text is changed to a single line feed before anything else is done, so the result is the same as for text from other systems.

Is my text sent to a server?

No. The text is changed in your browser, and nothing is stored or sent to our server.

Sources

Figures and text last checked on Tuesday, November 10, 2026.

We use necessary cookies to run the site. With your consent, Google also uses advertising cookies to show personalised ads. If you reject them, you still see ads, but they are not personalised.