Remove Line Breaks

Paste text with broken lines – for example from a PDF or an email – and get clean, continuous text back.

How to remove line breaks

  1. Paste your text – PDFs and emails often break lines in the middle of sentences.
  2. Choose “Replace with spaces” for one continuous text, or “Keep paragraphs” to keep empty lines between paragraphs.
  3. Copy the clean text.

Example

InputResult
This text was copied from a PDF and has broken lines.This text was copied from a PDF and has broken lines.

“Keep paragraphs” treats an empty line as the end of a paragraph and joins everything else. “Remove completely” deletes line breaks without adding spaces – useful for codes, numbers or lists you want to merge. Tick “Remove extra spaces” to collapse double spaces left behind.

Frequently asked questions

Why does text copied from a PDF have line breaks?

PDFs store each printed line separately, so copying adds a line break at the end of every line.

Can I keep paragraphs?

Yes. Choose “Keep paragraphs”: empty lines stay, single line breaks are replaced with spaces.

How do I remove line breaks in Word or Excel?

In Word, use Find and Replace with ^p (paragraph mark) or ^l (manual line break). In Excel, use =SUBSTITUTE(A1,CHAR(10)," ").