Remove line breaks from text

Fix broken lines from PDFs and emails.

Remove line breaks

Replace with

0 lines · 0 characters

0 lines · 0 characters

Results update as you type.

Runs in your browser. Nothing uploaded.

How to remove line breaks from text

  1. Paste the broken text into Input.
  2. Lines inside each paragraph are joined with spaces. Blank lines between paragraphs are kept.
  3. Copy the result back into your document or email.

Where broken lines come from

  • Text copied from a PDF keeps the PDF’s line ends, so every line becomes its own paragraph when you paste it into Word or Google Docs.
  • Many email programs wrap plain-text emails at about 72 characters, and replies quote each wrapped line.
  • Terminals and other fixed-width tools wrap long lines of code output with real line breaks.

This page is set up for those cases: it joins the lines of each paragraph with a space, trims stray spaces and leaves your paragraph breaks alone. For other separators, such as commas, use the full Replace newlines tool.