Remove Line Breaks

Paste text with broken lines and get clean, flowing paragraphs.

Loading tool…

  • Free
  • No sign-up
  • Runs in your browser

How to use the remove line breaks

  1. Paste the text with unwanted line breaks.
  2. Choose what replaces each break: a space, nothing, or a comma.
  3. To keep real paragraphs, pick A space, but keep paragraphs.
  4. Copy the result.

Why text gets broken lines

PDFs store text as separate lines positioned on a page, with no idea where a paragraph ends. When you copy from a PDF, every visual line ends in a hard line break, so pasting into an email or document gives you ragged text that will not reflow. Emails forwarded several times, subtitles and text copied from narrow columns have the same problem.

Which option should I choose?

  • A space joins everything into one long paragraph. Best for a single block of text.
  • A space, but keep paragraphs treats an empty line as a real paragraph break and only joins the lines inside each paragraph. Best for whole pages copied from a PDF.
  • Nothing joins lines with no space, useful for long codes, hashes or URLs that were wrapped.
  • A comma and space turns a vertical list into a comma-separated one.

Words that were split with a hyphen at the end of a line (such as *infor-* / *mation*) will keep the hyphen, so skim the result for those.

Frequently asked questions

How do I remove line breaks in Word?

Open Find and Replace, type ^p in Find and a space in Replace, then Replace All. This page does the same without affecting real paragraph breaks.

Is my text stored or sent anywhere?

No. Everything happens inside your browser. Your text is not uploaded, logged or read by anyone. The page remembers your last text on this device only, so you can pick up where you left off; press Clear to remove it.

Related tools