Remove Line Breaks from Text

Flatten multi-line text into a single line by stripping every line break and carriage return.

Strip line breaks and newlines from any text. Free online tool to flatten paragraphs into one line.

Remove Line Breaks from Text examples

InputOutput
first line second line third linefirst line second line third line

How the remove line breaks from text works

  1. All CR, LF and CRLF line endings become spaces.
  2. Resulting double spaces are collapsed.
  3. Perfect for pasting PDF text into a single paragraph.

Rules and edge cases

  • CR, LF and CRLF endings are all replaced with a single space, so text from Windows, macOS and Linux behaves the same.
  • Double spaces created by the join are collapsed afterwards, so no gaps are left behind.
  • Hyphenated words split across two lines are not rejoined automatically — check for word- breaks after converting.
  • The empty line remover deletes blank lines but keeps the remaining line structure.

Frequently asked questions

Why does PDF text have a line break on every line?

PDFs store text line by line with hard breaks rather than as flowing paragraphs, so pasting keeps every break. Removing them restores a single paragraph you can reflow.

Can I keep paragraph breaks and only remove the ones inside paragraphs?

Not automatically — the tool cannot tell an intentional paragraph break from a wrap. Remove empty lines first if you want to keep paragraph separation, then rejoin.