Text toolsPDF text cleaner

PDF text cleaner

Rebuild paragraphs copied from PDFs by joining visual line wraps and repairing words split by hyphens.

Ready to clean
Your text never leaves this device
0 characters · 0 words
0 characters · 0 words
A focused cleanup

How to use pdf text cleaner

Text copied out of a PDF arrives with a line break at every visual line ending and hyphens in the middle of split words. This tool reverses both, using the blank line between paragraphs as its signal for which breaks are real.

  1. 1
    Copy from the PDF and paste it here

    Select the passage in your PDF reader, copy it, and paste it into the left editor unedited. The broken line endings and split words are exactly what the tool keys on, so pre-tidying only removes its evidence.

  2. 2
    Check the two repair rules

    Join hyphenated words repairs splits like "docu-" / "ment", joining only where a hyphen sits at a line ending and the next line starts with a lowercase letter. Keep paragraph breaks treats every blank line as a paragraph boundary; switch it off to flow everything into a single block.

  3. 3
    Clean and verify the paragraphs

    Select Clean text and check that the right panel reads as continuous prose. If two paragraphs merged, the PDF put no blank line between them — add one on the left and clean again.

When this tool is useful

Quoting research papers
Moving PDF text into Word
Cleaning exported reports

How it tells a wrapped line from a real break

The core rule is simple: a blank line is a paragraph boundary, and every other line break is assumed to be a visual wrap. Within a paragraph, each break becomes a single space, which is what rebuilds flowing sentences out of the fixed-width lines a PDF reader hands the clipboard.

Hyphen repair is deliberately conservative. A word is joined only when a hyphen is immediately followed by a line ending and the next line opens with a lowercase letter — the signature a typesetter’s mid-word split leaves behind. A compound like "well-being" sitting mid-line is never touched. The one unresolvable case is a compound split across lines exactly at its own hyphen: in the file that is indistinguishable from a typesetting split, so the tool joins it, accepting the rarer of the two possible errors.

Multi-column PDFs are the hardest input. If the copy came out with the columns interleaved, the sentence order itself was scrambled during extraction, and no text-level repair can un-shuffle it. Copy one column at a time and the cleaner handles the rest.

Why text copied from a PDF has broken line breaksRead the guide · 6 min read
Why PDF copy-paste splits words with hyphensRead the guide · 5 min read
Good to know

PDF text cleaner questions

A PDF stores where each character is painted on the page, not which paragraph it belongs to. The reader reconstructs text by position and inserts a line break wherever the vertical position changes, so every visual line ending becomes a real newline on the clipboard.