Clean Copied PDF Text

Repair wrapped lines, words split by end-of-line hyphenation, non-breaking spaces and damaged paragraph formatting in text copied from PDFs.

Processed locally in your browser

The original input is preserved. The cleaner works on pasted text only; it does not upload or read PDF files.

Cleaning options
Preserve structure

Clean text copied from PDFs online

This PDF text cleaner repairs hard line wraps, rejoins high-confidence split words, removes soft hyphens, normalizes unusual spaces, preserves paragraph breaks, tries to preserve lists and structured lines, shows each important change, keeps the original input unchanged and runs locally in the browser.

PDF text cleaning example

A hyphen-
ated word and wrapped
PDF lines should become
one paragraph.

This line contains a non-breaking space.
A hyphenated word and wrapped PDF lines should become one paragraph.

This line contains a non-breaking space.

Expected summary: split words repaired 1, wrapped lines joined 2, paragraph breaks preserved 1, special spaces replaced 1.

Fix wrapped lines and broken paragraphs

PDFs often store visual lines rather than logical paragraphs. Copying can insert line breaks at every visual line. The cleaner can replace paragraph-internal line breaks with spaces while blank lines remain paragraph boundaries when preservation is enabled. Lists, headings and table-like structures require heuristic handling and should be reviewed.

Repair words split by PDF hyphenation

PDFs may split words at visual line endings. Soft hyphens and visible hyphens are different. Conservative mode repairs high-confidence cases such as docu- followed by ment. Aggressive mode may remove valid hyphens, and existing compounds such as well-known are preserved where possible. Review the change log before publishing.

Remove soft hyphens and unusual spaces

U+00AD SOFT HYPHEN is an invisible discretionary hyphen. U+00A0, U+202F, U+2007 and U+2009 are common special spaces. The cleaner can replace them with ordinary spacing where enabled. Zero-width characters are handled by the Invisible Character Detector and related removal tools.

Preserve lists, headings and paragraph breaks

The cleaner tries not to merge bullet items, numbered list items, blank-line paragraph boundaries, likely headings, code-like lines or table-like rows. Heading and table detection are heuristic, so structured or technical text still needs inspection.

PDF text cleaning vs OCR correction

This tool cleans text already copied or extracted from a PDF. It does not accept PDF uploads, read PDF files, perform OCR or reliably correct recognition substitutions such as c0de instead of code. It may improve spacing and wrapping in OCR-generated text, but full OCR correction requires source-aware review.

How to use the cleaner

  1. Paste text copied from a PDF into the input field.
  2. Select the line, hyphenation, spacing and structure options.
  3. Run the PDF text cleaner.
  4. Review the cleaned text, change counts and warnings.
  5. Inspect uncertain dehyphenation or structural changes.
  6. Copy the cleaned text or download the cleaning report.

Common use cases

Privacy and local processing

Cleaning runs with JavaScript directly in your browser. Your pasted text is not submitted to UnicodeNow servers.

Frequently asked questions

How do I clean text copied from a PDF?

Paste the copied text, choose the PDF-specific line, hyphenation, spacing and structure options, then run the cleaner and review the change log.

Why does copied PDF text have line breaks everywhere?

PDFs often store visual lines instead of logical paragraphs, so copying can insert hard returns at every displayed line.

Can the tool join wrapped lines into paragraphs?

Yes. When enabled, it joins likely prose line wraps while preserving blank-line paragraph breaks and common structured lines where possible.

How does it repair hyphenated words?

Conservative dehyphenation joins high-confidence end-of-line split words such as docu- followed by ment, and records the change.

Can dehyphenation remove a valid hyphen?

It can, especially in aggressive mode. Conservative mode preserves likely compounds and ranges where possible, but the result should still be reviewed.

Does it remove non-breaking spaces?

When special-space normalization is enabled, U+00A0, U+202F, U+2007 and U+2009 are replaced with ordinary U+0020 spaces and counted.

Will it preserve paragraph breaks?

With paragraph preservation enabled, blank-line paragraph boundaries remain and repeated blank lines are collapsed to one blank line.

Can it preserve bullet lists and numbered lists?

Yes. Common bullet and numbered-list markers are treated as structural boundaries so list items are not merged into paragraphs.

Does this tool perform OCR?

No. It cleans text already copied or extracted from a PDF. It does not read PDF files or infer OCR substitutions such as 0 versus O.

Does it upload or read PDF files?

No. The tool accepts pasted text only and does not upload, parse or read PDF files.

Is my pasted text sent to a server?

No. Cleaning runs with JavaScript directly in your browser; your pasted text is not submitted to UnicodeNow servers.

Related tools

For broader cleanup, use the Unicode Text Cleaner. To inspect hidden characters before removing them, use the Invisible Character Detector. For spacing-only cleanup, use the Whitespace Normalizer.

Unicode Text Cleaner

Normalize, trim and clean problematic Unicode text safely.

Text CleaningProcessed locally

Whitespace Normalizer

Normalize tabs, special spaces, duplicate spaces and line endings.

Text CleaningProcessed locally

Control Character Remover

Remove control characters while optionally preserving tabs and line breaks.

Text CleaningProcessed locally