Paste text that’s been chopped into many short lines — from a PDF, an email or a code comment — and get it back as clean, flowing paragraphs. Choose whether line breaks become spaces or vanish entirely, and whether blank-line paragraph gaps are preserved. It all runs in your browser.
How it works
Every line is trimmed, empty lines are dropped, and the remaining lines are joined using your chosen separator: a space (the usual choice for prose) or nothing (useful when text was split mid-word). Windows and Unix line endings are both handled, and any double spaces the joining creates are collapsed to one.
With “keep paragraphs” on, the text is first split on blank lines, each paragraph is joined on its own, and the paragraphs are rejoined with a single blank line between them. That turns hard-wrapped paragraphs into clean ones while preserving the structure of a multi-paragraph document.
Practical examples
Un-wrapping a PDF copy-paste
Text copied from a PDF often breaks every 80 characters. Joining with a space turns those fragments back into readable sentences.
Keeping paragraphs intact
A two-paragraph article with hard line wraps becomes two clean paragraphs — the blank line between them stays, but the wraps inside each disappear.
Fixing a word split across lines
When a copy split “inter\nnational” across a line, joining with nothing (no space) rejoins it — though check for cases where a space was actually intended.
Frequently asked questions
Should I replace breaks with a space or nothing?
Use a space for normal prose, so words don’t run together. Use nothing when the text was split inside words or you’re assembling a single token — but review the result, since removing all breaks can glue separate words.
What does “keep paragraphs” do?
It treats blank lines as paragraph boundaries: line breaks inside a paragraph are removed, but the gap between paragraphs is preserved. Turn it off to flatten everything into one continuous block.
Does it handle Windows line endings?
Yes. Both Windows (CRLF) and Unix (LF) breaks are recognised and removed, so text from any source is handled consistently.
Will it collapse multiple spaces too?
When joining with a space, any doubled spaces created by the join are reduced to single spaces, and each line is trimmed first. For deeper whitespace cleanup, our text cleaner and remove-extra-spaces tools go further.
What happens to empty lines?
Empty lines are dropped when flattening. With “keep paragraphs” on, runs of blank lines act as a single paragraph separator rather than adding extra gaps.
Does it change the words themselves?
No. It only removes and normalises line breaks and surrounding whitespace; the words, punctuation and their order are untouched.
Is there a length limit?
No practical limit — it processes as you type, locally, so large pastes are fine.
Is my text uploaded?
No. Everything happens in your browser; nothing is sent to a server.
Related tools
Text Cleaner
Tidy messy text: trim lines, collapse spaces, convert tabs, drop blank lines and strip invisible characters. In your browser.
Text tools
Add Line Numbers
Add a number to the start of every line, with a custom start, step, separator and zero-padding. In your browser.
Text tools
Remove Extra Spaces
Clean up double spaces, stray tabs, trailing whitespace and blank lines in one pass.
Text tools
Remove Duplicate Lines
Delete repeated lines from any list while keeping the original order — with optional case-insensitive matching.
Text tools
Sort Lines Alphabetically
Sort lines A→Z or Z→A with correct Serbian alphabet order (č, ć, đ, š, ž) and number-aware sorting.
Text tools
VAT Calculator
Add VAT to a net price or extract it from a gross amount — Serbian 20% and 10% rates preset, any custom rate supported.
Finance & salary