English

Remove Line Breaks from Text

Join broken lines from PDFs and emails into clean paragraphs. Free, private and runs in your browser.

Advertisement

About the Remove Line Breaks

Text copied from a PDF, an email or an old document often contains hard line breaks in the middle of sentences. This tool removes those unwanted line breaks in one click and gives you clean, flowing text. You can replace each break with a space, remove it completely, turn lines into a comma-separated list, or keep real paragraph breaks while fixing the lines inside them.

Like every tool on this site, it runs entirely in your web browser using JavaScript. Your files and text are never uploaded to a server, which makes it fast, free and private.

How to use the Remove Line Breaks

  1. Paste the text with unwanted line breaks into the first box.
  2. Choose what to replace the line breaks with – a space is the most common choice.
  3. Keep 'Remove extra spaces' ticked to clean up double spaces.
  4. Copy the result from the second box.

When should I keep paragraphs?

Choose 'A space, but keep paragraphs' when the original text has blank lines between paragraphs. The tool joins the broken lines inside each paragraph but keeps the empty line between paragraphs, which is ideal for PDF text you want to paste into Word or Google Docs.

Turning lines into a list

Choose 'A comma' to convert a column of values, such as a list of email addresses or product codes copied from a spreadsheet, into a single comma-separated line that you can paste into a form, a query or a mail program.

Frequently asked questions

Why does text copied from a PDF have line breaks?

PDFs store text line by line as it appears on the page, so copying adds a line break at the end of every visual line instead of only at the end of paragraphs.

Does it work with Windows and Mac line endings?

Yes. Windows (CRLF), Mac and Linux (LF) and old Mac (CR) line breaks are all detected and removed.

Is there a text length limit?

No fixed limit. Very long texts of several megabytes work because everything is processed locally in your browser.

Is my text private?

Yes. The text is never sent to a server; it is processed on your own device.

Guides and how-tos

Related tools

Advertisement