Word and Text Tools
Word and Text Tools › Clean up and compare text › Remove line breaks

Remove line breaks

How do I use a remove line breaks? Joins lines of text into one line, for text copied from a PDF or an email.

What it doesJoins lines of text into one line, for text copied from a PDF or an email.
Exact ruleEach line is trimmed, blank lines are dropped and the lines are joined with a single space (or nothing, if you choose).
Example textFirst line ⏎ second line ⏎ ⏎ third line
Example resultFirst line second line third line
LimitsA hyphen at the end of a line stays: words split across lines in a PDF are not repaired.
Where it runsIn your browser: your text is never uploaded, stored or logged.

All tools in Clean up and compare text

How to use the remove line breaks

  1. Paste the text.
  2. Choose whether to join lines with a space or with nothing.
  3. Copy the single line.

How it works

Each line is trimmed, blank lines are dropped and the lines are joined with a single space (or nothing, if you choose).

A hyphen at the end of a line stays: words split across lines in a PDF are not repaired.