Why text from PDFs pastes with broken lines
This is the #1 reason people need this tool. A PDF doesn't store paragraphs — it stores the position of every visual line on the page. When you copy that text, most PDF readers emit a hard line break wherever a line wrapped visually, so a single flowing paragraph arrives as a dozen short lines, often with hyphens splitting words at the old line ends. Pasting that into a document, form, or translator produces choppy, badly wrapped text. The fix: Breaks → spaces mode above, with Remove extra spaces on. Paragraph gaps (a fully blank line) are the signal that a real paragraph ended — which is exactly what Keep paragraphs mode preserves.
The three modes, precisely
Breaks → spaces replaces every line break with a single space, so words that were split across lines rejoin correctly. Keep paragraphs treats one break as a soft wrap (replaced by a space) but two or more consecutive breaks as a paragraph boundary (kept as one blank line) — the right choice for multi-paragraph documents. Remove all breaks deletes breaks without adding spaces, producing one unbroken string — useful for data values, URLs split across lines, or single-line form fields that reject whitespace.
Extra space remover
Joining lines often exposes a second problem: doubled or tripled spaces, tabs used as padding, and space-before-punctuation artifacts. The Remove extra spaces option collapses any run of spaces and tabs into a single space and drops spaces that end up before commas and periods after the merge. It runs on every mode, so you can also use this page purely as an extra-space cleaner: pick Keep paragraphs, leave your breaks alone, and only the spacing is normalized.
Strip HTML tags
Text copied from web editors or exported from CMS fields sometimes arrives wrapped in markup — <p>, <br>, <span style="…">. Enable Strip HTML tags and tags are removed before the line-break logic runs, with <br> and closing </p> treated as the line breaks they represent, and common entities like and & decoded to their characters.
Frequently asked questions
Can I remove breaks but keep my paragraphs?
Yes — that's the Keep paragraphs mode. A single line break (a visual wrap) becomes a space; a blank line (two breaks or more) is kept as a paragraph separator. If your source marks paragraphs by indentation instead of blank lines, keep-paragraphs can't detect them — merge fully and re-split by hand.
Why does copying from a PDF add a break on every line?
Because PDFs record where each line sits on the page, not where paragraphs begin and end. The copy operation walks those positioned lines and inserts a newline after each. Some readers try to reflow intelligently, but most don't — so the standard cleanup is to convert breaks to spaces and let genuine blank lines mark the paragraphs.
Does my text get uploaded when I use this?
No. The cleaning runs as JavaScript in your browser tab; there is no server processing and no network request with your text in it. You can disconnect from the internet after the page loads and the tool keeps working — worth knowing when the text is a contract, medical note, or anything else private.
Is there a size limit?
No hard limit — the processing is a single linear pass, tested comfortably past 100,000 lines. Extremely large pastes are bounded by your browser's textarea memory rather than this tool; if the tab struggles beyond several tens of megabytes, split the file.