Remove line breaks from text

Paste text copied from a PDF, an email, or a website. Lines are joined into paragraphs, with options to remove extra spaces and empty lines. Nothing is uploaded.

Options

How the line break remover works

Each line inside a paragraph is joined to the next with one space. A blank line marks the end of a paragraph, and paragraphs stay separated by one blank line.

Remove extra spaces turns runs of spaces and tabs into one space and trims each paragraph. Remove empty lines joins the paragraphs too, so the whole text becomes one block.

A word split with a hyphen at the end of a line, as in exam- ple, is not rejoined. Fix those by hand. To strip formatting, Markdown, or em dashes as well, use the plain text converter.

Frequently asked questions

How do I remove line breaks from text?

Paste the text. Lines inside each paragraph are joined with a space, and the blank line between paragraphs is kept. Copy the result when you are done.

Can I keep paragraphs?

Yes. Paragraphs are kept by default. Turn on Remove empty lines to join every paragraph into one block of text.

What does Remove extra spaces do?

It turns runs of spaces and tabs into one space and trims spaces from the start and end of each paragraph. It starts on.

Why does text from a PDF or email have line breaks?

PDFs and plain text email often break a line at a fixed width, so each line ends with a line break instead of wrapping. Removing them lets the text wrap again.

Is my text uploaded?

No. The line break remover runs in your browser. Nothing is uploaded.