AZ Tools

Remove Line Breaks

Text

Text copied from a PDF, email or terminal often arrives with a line break at the end of every line, so it won't reflow when you paste it. This tool joins those lines back together: pick what to join them with (a space, nothing, or a custom separator), keep blank-line paragraph breaks intact, collapse runs of spaces, and trim whitespace from each line. The result is clean, single-paragraph (or properly paragraphed) text ready to paste anywhere. Everything runs locally in your browser — nothing is uploaded.

Output

Lines: 0 → 0 · 0

How to use

  1. Paste the text with unwanted line breaks.
  2. Choose what to join lines with, and toggle keep-paragraphs, collapse-spaces and trim as needed.
  3. Copy the cleaned-up result from the output box.

Frequently asked questions

What does 'keep paragraphs' do?
Blank lines are treated as paragraph breaks. Lines within a paragraph are joined together, but the paragraph breaks themselves are preserved as blank lines, so structure isn't lost.
Why join with a space instead of nothing?
Most wrapped prose needs a space where the line broke (otherwise words run together). Use 'Nothing' for things like a long token or URL that was split across lines.
Does it change line endings (CRLF vs LF)?
It removes the breaks entirely while joining. If you only need to convert between Windows and Unix line endings, use a line-endings converter instead.
Is my text uploaded anywhere?
No. All processing happens in your browser; the text never leaves your device.

Related tools