Skip to main content

Fix Formatting

Clean text copied from a PDF

CleanPastedText editorial · Updated

Text workbench

Paste your text to clean it

Cleaning mode

Joins lines broken by PDF wrapping into paragraphs and removes hidden characters. Keeps typography.

Try a real example

Each sample contains a problem you cannot see.

Original

Pasted text

0 chars · 0 words

Cleaned

Ready to copy

0 changes

Text stays in this browser

Same words · No AI rewriting · No content logging

Match the PDF symptom to the fix

What you noticeWhat to checkWhat helps
A word looks correct but cannot be foundSoft hyphens or zero-width charactersInspect the code-point report and remove unwanted characters.
Words move to the next line togetherNon-breaking spacesNormalize special spaces to ordinary spaces.
Every visual line becomes a paragraphHard line breaks from the source layoutUse Join Lines mode, then check paragraph boundaries.
Sentences jump between two columnsPDF reading orderCopy smaller sections or export through your PDF reader.

A soft hyphen example you can verify

The string co[U+00AD]operate contains a soft hyphen between “co” and “operate.” Depending on the viewer, it may be invisible or appear only at a line break. Removing that character produces cooperate. A normal visible hyphen in well-known is a different character and is not removed by the invisible-character pass.

The report names U+00AD before modifying it, so you can tell whether a soft hyphen was actually involved. If the document instead contains co- followed by a newline and operate, Join Lines mode rejoins it only when the next line starts with a lowercase letter, so check words like well-known in the result.

A reliable PDF copy-paste workflow

  1. Select one paragraph or column in your PDF reader and copy it. If the page is an image, use OCR in the reader first.
  2. Paste into the cleaner. This page selects Join Lines, which joins wrapped lines and skips smart-quote and dash replacement. Unicode compatibility normalization still runs, so review symbols and ligatures.
  3. Read the detection report and compare the output with the PDF. Pay special attention to numbers, citations, mathematical notation, and words at line endings.
  4. Fix any remaining reading-order issues, then copy the cleaned text into your document.

When character cleanup is not enough

Missing letters, duplicated headers, and mixed-up tables are often extraction problems. A text cleaner cannot recover text that never reached the clipboard or know which column a sentence belonged to. Return to the source file, copy a smaller selection, or use an export that preserves reading order.

If the reading order is correct but spacing is still wrong, compare the spacing troubleshooting guide with the non-breaking space guide. For background on the difference between document styling and character data, read why copied text pastes differently.

Common questions

Frequently asked questions

Why does text copied from a PDF contain broken words?

A PDF can store a word across positioned text fragments or include a soft hyphen at a line break. Copying may carry that character into the clipboard. Removing U+00AD fixes soft hyphens, but a visible hyphen or a word split across hard line breaks needs separate review.

Can I upload a PDF to this cleaner?

No. Open the PDF in your usual reader, copy selectable text, and paste it here. Scanned pages need OCR first. The cleaner works on the copied characters and never uploads a PDF.

Does this remove all line breaks from PDF text?

No. Join Lines mode, which this page selects, joins the line breaks inside a paragraph and keeps blank lines between paragraphs and lines that start a list item. The other modes only standardize line endings, trim trailing whitespace, and reduce excessive blank lines.

Why are columns still in the wrong order after cleaning?

Character cleanup cannot infer the original reading order or page layout. Try copying one column or paragraph at a time, or use your PDF reader's document export feature before cleaning the text.

Continue reading

Related guides & tools