Remove Line Breaks

Remove line breaks and extra spaces from copied text, while keeping paragraphs if you want.

Line breaks
Lines

How to use Remove Line Breaks

  1. Paste the text you copied from a PDF, email or web page into this text cleaner.
  2. Choose how to join lines – keep paragraphs, or put everything on one line.
  3. Tick any extra clean-up options, then copy or download the cleaned text.

About this tool

Text copied from a PDF, an email or a narrow web page often arrives broken into short lines, with double spaces and words split by hyphens. Pasting that into a document or a form looks messy. This tool helps you remove line breaks in one step: lines inside a paragraph are joined back together, while the blank lines between paragraphs can be kept.

You can also remove all line breaks to get one long line (joined with spaces, commas or nothing), trim spaces at the start and end of each line, remove extra spaces, rejoin words that were hyphenated across lines, delete empty lines and duplicate lines, and sort lines alphabetically. The result updates as you change the options, and everything happens in your browser.

Frequently asked questions

PDFs store text as positioned lines, not flowing paragraphs, so copying keeps a break at the end of every line. Choosing "Remove, but keep paragraphs" joins those lines back into paragraphs.

Choose "Remove, but keep paragraphs". Single line breaks are replaced with a space and blank lines between paragraphs stay, so your text keeps its structure.

Yes. Choose "Remove all line breaks" and set "Replace breaks with" to a comma. A column of names or emails becomes one line, ready to paste into a form or spreadsheet.

No. The text is cleaned in your browser, so private emails and documents stay on your device.