Remove Line Breaks

Repair text that copied out of a PDF with a break after every line, or flatten a list into one comma separated row. Nothing is uploaded.

Result
0Lines in
0Lines out
0Characters


          

How to use it

  1. Paste the text with the unwanted breaks into the box on the left.
  2. Leave Join the lines with a space selected if you are fixing text copied out of a PDF.
  3. The repaired text appears instantly — there is no button to press.
  4. Press Copy result and paste it wherever you needed it.

The PDF problem, and why this fixes it

A PDF does not store paragraphs. It stores the position of every visual line on the page, so when you select and copy a column of text, a real line break comes with the end of each line rather than the end of each paragraph. Paste that into a document and you get text that breaks mid-sentence, refuses to reflow, and looks wrong at every window width.

Joining the lines with a space puts the paragraphs back. Keep Keep paragraph breaks ticked and the blank line between two paragraphs is respected, so you get proper paragraphs rather than one enormous block. Rejoin words split by a hyphen handles the other PDF annoyance: a word hyphenated across two lines, like infor- / mation, is stitched back into information.

The same tool flattens lists. A column of email addresses becomes one comma separated line ready for the To field, and a custom separator covers semicolons, pipes or anything else a particular form expects.

Frequently asked questions

Why does text copied from a PDF break in the middle of sentences?

A PDF stores each visual line separately, so a real line break is saved at the end of every line on the page rather than at the end of every paragraph. Joining the lines back together with a space restores the original paragraphs.

How do I keep my paragraphs but remove the broken lines inside them?

Leave Keep paragraph breaks ticked. Lines inside a paragraph are joined into one flowing sentence, while a blank line between two paragraphs is kept as a paragraph break.

Can I turn a list into a comma separated line?

Yes. Choose Join with a comma to get one comma separated line, which is what most spreadsheet and email address fields expect. Use Join with a custom separator for anything else, such as a semicolon or a pipe.

Is my text sent anywhere?

No. The joining happens in JavaScript inside your own browser. Nothing is uploaded and nothing is saved — close the tab and the text is gone.

Related tools