Text Cleaner

Remove extra spaces, empty lines, invisible characters and emoji

Tidy up pasted text: trim lines, collapse repeated spaces, remove empty lines, fix invisible and non-breaking characters, straighten curly quotes, normalise dashes and remove emoji.
Try an example:

Output will appear here...

About Text Cleaner

How it works

  1. Invisible characters (zero-width spaces, byte-order marks, soft hyphens) are removed and unusual spaces such as non-breaking spaces become normal ones.
  2. Optional fixes straighten quotes, convert typographic dashes and ellipses, remove emoji and turn tabs into spaces.
  3. Repeated spaces are collapsed, every line is trimmed and empty lines are dropped - each step can be switched off.
  4. The stats show how many characters and lines were removed.

What you need

  • Any text - from a PDF, Word, a website, an email or a spreadsheet.

Tips

  • Invisible characters often break code, CSV imports, passwords and search - clean data before importing it.
  • Turn on straight quotes and plain dashes before pasting text into code or a terminal.
  • Keep empty lines (untick the option) when you want to preserve paragraphs.

Limitations

  • Spelling and grammar are not changed.
  • Line breaks inside paragraphs (from PDFs) are kept - use the Line Break Remover for those.

Runs in your browser. Your text never leaves your browser.

Frequently asked questions

What are invisible characters?+

Characters that take no visible space, such as zero-width spaces (U+200B), the byte-order mark (U+FEFF) and soft hyphens. They sneak in from websites and Word and can break code, searches and data imports.

What is a non-breaking space?+

A space (U+00A0) that stops a line from wrapping. It looks like a normal space, but code and spreadsheets treat it differently, so the cleaner converts it.

Will it change my words?+

No - only whitespace, invisible characters and (if you choose) quotes, dashes and emoji.

Can I keep paragraphs?+

Yes. Untick "Remove empty lines" and paragraphs separated by blank lines are kept.