Text Cleaner

Paste messy text and see exactly what is wrong with it before anything changes.

Presets

Choose exactly what to fix
Safe fixes

These cannot change the meaning of ordinary text.

Optional fixes

These can change meaning or formatting, so they are never applied automatically.

Processed in your browser. No signup.

What this tool does

Text copied out of a PDF, an email client or a web page rarely arrives clean. It carries doubled spaces, hard line breaks in the middle of sentences, non-breaking spaces that look identical to ordinary ones, soft hyphens left over from print layout, and zero-width characters you cannot see at all. Text Cleaner finds those, tells you how many there are, and lets you decide which to fix.

How to use it

  1. Paste the text. The list of problems appears immediately — nothing has changed yet.
  2. Press Fix safe issues for the common repairs, or pick a preset that matches where the text came from.
  3. Open Choose exactly what to fix if you want control over each rule.
  4. Copy the result, or press Undo if you preferred the previous version.

Safe versus optional

A safe fix cannot change what the text means: collapsing repeated spaces, trimming the ends of lines, normalising line endings, replacing a non-breaking space with an ordinary one, removing a zero-width space or a soft hyphen.

An optional fix might. Removing zero-width joiners breaks emoji sequences and changes how Arabic, Persian and several Indic scripts render. Converting tabs to spaces destroys code indentation. Un-wrapping lines is a guess about which line breaks were deliberate. Rejoining hyphenated words will also join words that were genuinely hyphenated at a line end. These stay off until you turn them on.

Presets

  • Clean plain text — the safe fixes, and nothing else.
  • Clean copied PDF text — adds rejoining hyphenated words and un-wrapping paragraphs, which is what PDF text usually needs.
  • Clean Markdown text — deliberately leaves trailing spaces and repeated spaces alone, because Markdown uses two trailing spaces as a line break and spaces to align tables.
  • Clean list — also removes indentation and every blank line, so each item sits on its own line.

Example

A paragraph copied from a PDF might report “14 repeated spaces, 6 hard-wrapped lines, 3 soft hyphens, 1 invisible character”. The PDF preset turns it back into flowing paragraphs you can paste anywhere.

Limitations

Un-wrapping lines and rejoining hyphenated words are heuristics, not certainties. A short line that was meant to stay short — a line of poetry, an address, a list item without a bullet — will be joined to the next one. Always read the result before using it.

Privacy

Every rule runs in your browser. The text is not uploaded, and neither the input nor the output is stored anywhere.