Remove line breaks

Text pasted from a PDF breaks at the end of every line. Join it back into clean paragraphs.

Why pasted text has broken lines

PDFs, old emails and some websites store a line break at the end of every visual line. When you paste that text into a document or form, each line stays separate and the text looks jagged. This tool joins the lines back together.

Options

To also tidy double spaces and tabs, run the result through remove extra spaces — click Use as input to carry the result over.

How to use it

  1. Paste the text with unwanted line breaks.
  2. Choose what to keep — paragraphs, hyphenated words.
  3. Copy the clean text from the result box.

Frequently asked questions

How do I remove line breaks but keep paragraphs?

Leave "Keep paragraphs" ticked. Single line breaks are joined, and blank lines between paragraphs stay.

How do I turn a list into a comma-separated line?

Untick "Keep paragraphs" and choose "Comma" as the replacement. Each line becomes an item separated by ", ".

Does this work with Windows line breaks?

Yes. Windows (CRLF), Mac and Linux (LF) and old Mac (CR) line breaks are all handled.

More free text tools