textcleanups

Remove line breaks

Paste text that breaks in the wrong places and get it back as flowing paragraphs.

Options
Replace each line break with

Your text stays in your browser. Nothing is uploaded or saved.

Why copied text breaks in the wrong places

PDFs don't store paragraphs. They store lines of text placed at exact positions on a page. When you copy from one, each visual line comes with a hard line break at its end, so a single paragraph arrives as a dozen short lines. Email clients that wrap plain text at a fixed width, and some websites, do the same thing.

Fixing it by hand means clicking at the end of every line and pressing Delete, then adding a space. This tool does it for the whole text at once.

How to remove line breaks

  1. Paste your text into the box on the left.
  2. Leave Keep paragraph breaks on if your text has blank lines between paragraphs and you want to keep them.
  3. Copy the result from the box on the right, or download it as a .txt file.

What the options do

Keep paragraph breaks

A blank line usually means a real paragraph break. With this option on, single line breaks are joined, but a blank line between paragraphs stays. Turn it off to put everything on one line.

Rejoin words split with a hyphen

Justified PDF text often splits long words across lines, like informa- and tion. With this on, a hyphen at the very end of a line followed by a lowercase letter is treated as a split word and removed. Real hyphenated words in the middle of a line, such as well-known, aren't touched.

Replace with a space or nothing

Most text needs a space where each line break was. Choose Nothing when you're joining items that shouldn't be separated, such as a long URL or code that was wrapped across lines.

Common uses

  • Pasting a quote from a research paper or report into your own writing
  • Cleaning up text from scanned documents after OCR
  • Fixing plain-text emails that wrap every 72 characters
  • Preparing text for a form field, spreadsheet cell or social post that expects one line

Questions

Will this remove the spaces between words?

No. Each line break is replaced with a single space by default, and any spaces left at the start or end of a line are tidied so you don't get double spaces.

How do I remove line breaks in Word instead?

In Word, open Find and Replace, search for ^p and replace it with a space. That also removes your paragraph breaks, which is why this tool's Keep paragraph breaks option is usually easier.

Is my text uploaded anywhere?

No. The tool runs entirely in your browser. Your text never leaves your device, so it's safe for confidential documents.

Can I put everything on one single line?

Yes. Turn off Keep paragraph breaks and every line break, including blank lines, is removed.