About the Text Cleaner tool
Text copied from Word, Google Docs, PDFs, websites, chat apps or AI assistants often carries hidden baggage: curly quotes that break code and CSV files, em dashes that some systems cannot store, zero-width spaces that make identical words fail to match, and non-breaking spaces that stop lines wrapping. Most of these characters are invisible, so you cannot see what is wrong.
This text cleaner fixes them in one pass and tells you what it found. Eleven rules can be switched on or off: smart quotes to straight quotes, en and em dashes to hyphens, the ellipsis character to three dots, removal of zero-width and direction-control characters, conversion of non-breaking and other Unicode spaces to normal spaces, removal of stray control characters, tabs to spaces, trimming trailing spaces, collapsing repeated spaces, emoji removal and line-ending normalisation.
After cleaning, a row of counters shows how many characters each rule changed, which is handy for spotting pasted text that contained hidden zero-width characters. Joiners inside emoji sequences such as family emoji are kept unless you remove emoji entirely, and ©, ® and ™ are not treated as emoji. Everything runs locally in your browser.
How to use Text Cleaner
- Paste your text into “Messy text”, or click “Sample” to see typical problems.
- Review the “Cleaning rules” switches, or use “Select all”, “Defaults” or “None”.
- Read the cleaned text in “Clean text” as you type.
- Check the “Fixed” counters under the result to see what was changed.
- Copy the result or download it as a .txt file.
Features
Eleven independent rules
Quotes, dashes, ellipsis, invisible characters, odd spaces, control characters, tabs, trailing spaces, repeated spaces, emoji and line endings.
Invisible character removal
Deletes zero-width spaces, BOMs, soft hyphens, word joiners and bidirectional control marks.
Per-rule counts
Shows exactly how many characters each rule changed.
Emoji-safe joiner handling
Keeps zero-width joiners that glue multi-part emoji together unless emoji removal is on.
Private by design
Runs in your browser with no uploads.
When to use it
- Clean text copied from Word before pasting it into HTML, JSON or a CMS.
- Find and strip hidden zero-width characters from a copied username, password or code.
- Normalise product descriptions before importing a CSV into a shop platform.
- Remove emoji and fancy punctuation from chat logs for analysis.
- Tidy AI-generated text so it uses plain quotes and hyphens.
Frequently asked questions
What are zero-width characters?
They are Unicode characters such as U+200B (zero-width space) and U+FEFF (byte order mark) that take up no visible space. They can stop search, comparisons and code from working even though the text looks normal.
Why convert smart quotes to straight quotes?
Programming languages, CSV files, shell commands and many older systems expect straight quotes (" and '). Curly quotes from word processors cause syntax errors or show up as garbled characters.
Will emoji removal delete symbols like © or ™?
No. Copyright, registered and trademark signs are kept unless they are followed by an emoji variation selector. Other pictographic symbols such as ☀ or ✔ are treated as emoji.
Does it change my words or spelling?
No. The cleaner only replaces or removes the specific character types listed in the rules. Letters, digits and normal punctuation are left unchanged.
Can it detect watermarks in AI-generated text?
It removes invisible characters of any origin and shows how many it found, but it cannot tell who inserted them or prove where the text came from.