TextArray
100% local

Merge paragraphs

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

Input
Output

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.

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 tool runs entirely in your browser and your text never leaves your device.