Text · Made a little simpler

PDF Text Cleaner

Fix line wraps, discretionary hyphens, Latin ligatures and spacing in copied PDF text. Review the changes, preserve paragraph breaks and save UTF-8 text.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Cleaning rules

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

PDF Text Cleaner: how to use it

  1. Paste the text you copied from a PDF or open its UTF-8 text export. Start with the built-in receiving notes to compare a soft hyphen and a printed one.
  2. Choose the repairs and check the preview. Keep the printed hyphen for compound words. Select Adjacent prose lines to review a more extensive wrap repair.
  3. Review changes around lists, unfamiliar words and page boundaries. Copy or download the result as plain text.

Limits and notes

Use up to 250,000 UTF-16 code units. The UTF-8 file limit is 1 MB. Processing stays in your browser. Editing the source field can normalize imported carriage returns to line feeds. Use PDF to Text to extract selectable text or run OCR first. Layout, columns and headings cannot always be inferred from copied text.

How your privacy works →

PDF Text Cleaner: common questions

Can I join wrapped PDF words without losing their printed hyphens?

Yes. Keep the printed hyphen joins a likely split such as re- followed by check into re-check when wrap joining is enabled. A Unicode soft hyphen is removable because it marks a discretionary break.

Which invisible characters are removed?

The optional zero-width rule removes U+200B and interior U+FEFF. It keeps a leading UTF-8 byte-order mark, joiners used by scripts and emoji, and direction marks.

Does the cleaner keep paragraphs and bullets?

Blank lines separate paragraphs, and wrap joining skips recognized list markers, indented blocks and explicit separators. The optional bullet rule changes supported markers to a hyphen without dropping the item text.

Guides