Text Cleaner
Remove smart quotes, em dashes, zero-width characters, emoji and other artefacts that break when text moves between systems.
Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.
What the Text Cleaner does
This text cleaner will remove smart quotes, em dashes, zero-width characters, emoji and other artefacts that break when text moves between systems. Paste your text in, pick the options you need, and copy the result straight back out. It is most often used for preparing text copied from Word for use in code or a CSV file. The companion to this one is our find and replace text tool.
How to use it
- Paste text that is behaving oddly.
- Leave the first three options on — they fix the usual word-processor artefacts.
- Turn on the stricter options only if you need plain ASCII.
- Copy the cleaned text.
How it works
Word processors silently substitute characters as you type: straight quotes become curly ones, double hyphens become em dashes, three dots become a single ellipsis character. Those look better in a document and break in code, CSV files, URLs and older systems.
Zero-width and invisible characters are the harder problem. Zero-width spaces, soft hyphens and byte-order marks are genuinely invisible, survive copy and paste, and cause string comparisons to fail for no visible reason. The counter above tells you how many your text contains before you clean it.
The non-ASCII option is a blunt instrument: it removes accented letters and every non-Latin script along with the artefacts. Use it only when a downstream system genuinely requires plain ASCII, and check the result.
When to use it
- Preparing text copied from Word for use in code or a CSV file.
- Diagnosing why two strings that look identical do not match.
- Cleaning pasted content before importing it into a database.
Common mistakes to avoid
- Using "remove all non-ASCII" on text containing names with accents, which silently mangles them.
- Removing emoji from content where they carry meaning, such as social copy.
Frequently asked questions
What is a zero-width space and why does it matter?
It is a character that occupies no visual space but is present in the string. It typically arrives via copy and paste from a web page or word processor, and causes exact-match comparisons, URL lookups and form validation to fail in ways that are invisible when you inspect the text.
Will this remove formatting like bold and italics?
There is nothing to remove — pasting into a plain textarea already discards rich formatting. This tool deals with the characters themselves, not styling.