Remove Line Breaks

Strip the hard line breaks out of pasted text and join everything back into flowing lines — optionally keeping paragraph gaps intact. Free, instant and private, all in your browser.

0
Breaks removed
0
Characters

How to remove line breaks

  1. Paste your text. Drop in the content whose line breaks you want gone — often a PDF copy, an email or a wrapped code comment.
  2. Choose how lines are joined. Join with a single space, nothing at all, a comma, or your own custom separator, and decide whether to keep the blank lines between paragraphs.
  3. Copy or download the clean text. The result updates instantly, ready to paste wherever you need it.

About this tool

This free remove line breaks tool fixes text that has been chopped into short lines — the classic problem when you copy from a PDF, an email client or a fixed-width document and every sentence is split across several lines. Removing those hard returns lets the text reflow naturally in Word, a CMS, a spreadsheet cell or a chat box. You can join the broken lines with a space (the usual choice for prose), with nothing for reassembling split words or codes, or with a comma to turn a stacked list into a single comma-separated line.

With Keep paragraph breaks enabled, blank lines that separate real paragraphs are preserved while only the line breaks inside each paragraph are removed, so your document keeps its structure. Both Windows (CRLF) and Unix (LF) line endings are handled. Everything runs locally in your browser, so your text is never uploaded, stored or logged, and the tool keeps working offline.

Frequently asked questions

What is the difference between removing line breaks and removing empty lines?

Removing line breaks joins lines together so text flows continuously. Removing empty lines only deletes the blank lines while keeping every other line on its own row. Use this tool to reflow text and the Remove Empty Lines tool to tidy spacing.

How do paragraph breaks get preserved?

When "Keep paragraph breaks" is on, the tool treats a blank line as a paragraph boundary. It joins the wrapped lines inside each paragraph but keeps a blank line between paragraphs, so headings and sections stay separated.

Can I join lines without adding any space?

Yes. Choose "Nothing (no gap)" as the join option. This is useful when a long token, URL or code string was split across lines and you need to glue the pieces back together exactly.

Does it handle both Windows and Mac/Linux line endings?

Yes. Carriage returns and line feeds (CRLF and LF) are both recognised and removed, so text copied from any operating system is cleaned the same way.