Remove Line Breaks from Text

Turn text with a line break after every few words back into normal paragraphs.

Input
Result

How to use

  1. Paste the text with broken lines.
  2. Choose: join with spaces, keep paragraphs, or remove breaks completely.
  3. Copy the result.

Good to know

"Join with spaces" turns every line break into a space, giving one long line. "Keep paragraphs" joins lines inside a paragraph but keeps the blank line between paragraphs, which is usually what you want for text from PDFs, emails and old documents.

"Remove fully" deletes line breaks without adding a space. Use it for data such as a long number, a key or a Base64 value that was split across lines; for normal text it would glue words together.

Spaces around each break are tidied so you do not get double spaces. Windows (CRLF) and Mac/Linux (LF) line breaks are both handled.

Questions

Why does PDF text have a line break after every line?

PDFs store each printed line separately, so copying keeps those breaks.

How do I keep paragraphs?

Choose "Keep paragraphs"; paragraphs must be separated by an empty line.

Can I make everything one line?

Yes, "Join with spaces".

Does it work with Hindi?

Yes.

Is my text uploaded?

No. It runs in your browser.

Last updated: