Text Cleaner (Whitespace, Quotes, Invisible Characters)

Fix the invisible mess in text copied from Word, PDFs, chat and web pages, and see exactly what was changed.

Use the tool

Why this tool exists

Options convert curly quotes, en/em dashes and ellipses to plain ASCII, delete zero-width spaces, BOMs, soft hyphens, bidirectional controls and other control characters, replace non-breaking and exotic spaces, collapse repeated spaces and trailing whitespace, reduce runs of blank lines and apply Unicode NFC normalisation. A report lists how many of each were found.

Stripping typographic characters is not always wanted (it flattens proper dashes and quotes), so each step can be switched off. Invisible characters are also used in some attacks, so the zero-width detector is a good companion.

No data is sent anywhere: the work happens in your browser, so you can use it offline once the page has loaded.

How to use it

  1. Paste the text.
  2. Tick the clean-ups you want.
  3. Copy the cleaned text and read the change report.
  4. Use find and replace for anything specific to your text.

Frequently asked questions

Why remove zero-width characters?

They break searches, comparisons and code, and are sometimes used to hide text.

What does NFC do?

It combines base letters and accents into single characters so equal-looking text compares equal.

Will it change my line endings?

It normalises all line endings to \n.

Is my data sent anywhere?

No. Everything is processed in your browser, and the page makes no network requests with your input.