Skip to content
100% local

Merge paragraphs

Unwrap paragraphs by joining their lines into single lines, without double spaces.

Input

Merge paragraphs

Text copied out of a PDF, an e-book, an email or an OCR scan arrives with hard line breaks in the middle of every sentence. This tool unwraps it: the lines of each paragraph — the blocks separated by blank lines — are joined back into one continuous line, with a single space where each break used to be. Line edges are trimmed before joining, so no double spaces ever appear at the seams.

By default every paragraph becomes one line and the blank lines between paragraphs stay, so the structure of the text survives. Untick "Keep blank line between paragraphs" to get one paragraph per line with no gaps — handy before feeding the text to line-based tools. Tick "Collapse into a single line" and the entire input becomes one long line, which is what forms, chat fields and spreadsheet cells usually want. The joining string can also be customized: join with nothing to fuse hyphen-split fragments, or with any marker you need. Text lifted out of a PDF often has words broken across lines with a hyphen, so switch on "Rejoin hyphenated words" and those halves are glued back together before the paragraph is unwrapped.

Windows (CRLF) and Unix (LF) line endings are handled interchangeably, lines containing only spaces count as blank, and runs of several blank lines collapse into a single separator. The tally under the output shows how many paragraphs and lines went in and how many lines came out, so you can verify the unwrap at a glance.

Everything happens in your browser. Nothing is uploaded anywhere, so contracts, manuscripts and private notes are safe. Copy the result with one click or download it as a .txt file.

FAQ

Why does text copied from a PDF need this?
PDF viewers copy the visual lines, so every wrapped line ends with a hard break. Merging the paragraphs restores the original flowing sentences.
Can I merge everything into one single line?
Yes. Tick "Collapse into a single line" and paragraphs are joined with the same separator as the lines inside them.
Will double spaces appear where lines are joined?
No. The edges of every line are trimmed before joining, so exactly one separator sits at each seam.
Is my text uploaded anywhere?
No. The unwrapping runs entirely in your browser — your text never leaves your device, so formatting fixes stay confidential.
My PDF text has words split by a hyphen at the end of a line. Can this repair them?
Yes. Switch on "Rejoin hyphenated words". The trailing hyphen is dropped and the halves are glued back together whenever the next line starts with a lowercase letter, so "la-" and "zy" become "lazy". A hyphen followed by a capital, or a doubled "--", is kept, because that one belongs to the text. Soft hyphens are always removed, and the tally shows how many words were rejoined.