Remove Line Breaks

Join hard-wrapped lines back into flowing text.

Free remove line breaks tool — join hard-wrapped lines into one paragraph, with options to keep paragraph breaks, choose the join character and trim each line. Runs entirely in your browser, nothing is uploaded. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

Will it keep my paragraphs separate?

Yes, if you enable "Keep paragraph breaks" the tool treats blank lines as paragraph boundaries and only removes the single line breaks inside each paragraph, leaving the paragraphs separated.

Paste text that has been hard-wrapped across many lines and join it back into flowing paragraphs — useful for un-wrapping email quotes, copying out of PDFs, reflowing pasted code comments, or turning a column of values into one line.

How it works

The tool first normalises line endings, converting Windows CRLF and old-Mac CR to a single LF so any source is treated the same. It then removes the single line breaks according to your options. With Keep paragraph breaks enabled, it splits the text on blank lines into paragraphs, joins the lines inside each paragraph, and reassembles them with the blank lines preserved; without it, every line break is removed. Lines are joined with your chosen separator — a space, nothing, or a comma — and each line can be trimmed of leading and trailing whitespace before joining. A live character count shows the result size.

Example

Input (hard-wrapped, with a paragraph break), joined with a space and keep paragraph breaks on:

The quick brown
fox jumps over

the lazy dog.

Output:

The quick brown fox jumps over

the lazy dog.
Join withResult for two lines a / b
Spacea b
Nothingab
Commaa, b

Why hard-wrapped text exists

Hard wrapping — inserting a line break every 72 or 80 characters — was a convention from the era of fixed-width terminals and email clients that could not reflow text. Plain-text email, old-fashioned text editors, and some code-generation tools still produce it. The problem is that when you paste hard-wrapped text into a modern context — a document editor, a database field, an AI prompt — each line break turns into a paragraph break, breaking the flow of every sentence.

Practical scenarios

PDF copy-paste is the most common trigger. PDFs encode text as character positions, not as paragraphs, so a single paragraph that happens to be 40 lines tall in the PDF arrives as 40 separate lines on paste. Select all, join with space, keep paragraph breaks, and you recover readable prose in seconds.

Email quote unscrambling — email threads quoted with > and re-wrapped by successive clients arrive as narrow columns of 40-character lines with > prefixes. Strip the > markers first, then use this tool to rejoin the sentences.

Spreadsheet-to-sentence — copying a single spreadsheet column gives one value per line. Join with a comma to turn that column into a, b, c, d in a single step, ready for an IN clause or a comma-separated list in a brief.

Reflowing pasted code comments — doc comments extracted from code often have a hard wrap at 80 characters. Join with a space (no paragraph breaks) to get one long string, then re-wrap to whatever width your new context needs.

Everything runs in your browser — nothing is uploaded.