Line Break Remover

Remove line breaks from text

Remove line breaks while optionally preserving paragraphs.

Input

Output

About the Line Break Remover

Text copied from a PDF, an email, or a terminal often has a hard line break at the end of every line, and it looks broken when you paste it into a document or a form. The Line Break Remover joins those lines back into flowing text.

Keeping paragraphs

With Preserve Paragraphs on, a blank line counts as a paragraph break and is kept, while single line breaks inside a paragraph become spaces. Switch to Remove All to join everything into one block.

This line was
broken by a PDF.

New paragraph.

// becomes

This line was broken by a PDF.

New paragraph.

Extra cleanup

Runs of spaces and tabs are collapsed into a single space, and whitespace at the start and end is trimmed, which cleans up the gaps PDFs tend to leave. Windows (CRLF) and Unix (LF) line endings are handled the same way.

When it helps

  • Pasting paragraphs from a PDF into a document, email, or CMS.
  • Cleaning up quoted email replies and terminal output.
  • Preparing text for a single-line field, such as a CSV cell or a JSON string.

Frequently asked questions

What does the Line Break Remover tool do?
The Line Break Remover tool automatically removes unwanted single line breaks from text while preserving paragraph structure. It converts text with line breaks into flowing paragraphs.
How does it preserve paragraphs?
The tool treats double line breaks (or more) as paragraph separators and keeps them intact. Only single line breaks within paragraphs are removed and replaced with spaces.
When would I use this tool?
This tool is useful when copying text from PDFs, emails, or documents that have unwanted line breaks, or when preparing text for web content, emails, or documents that need clean formatting.
Does it remove all line breaks?
No, the tool intelligently preserves paragraph breaks (double line breaks) while only removing single line breaks that interrupt the flow of text within paragraphs.