AI Text Cleaner
An AI text cleaner removes the unwanted or invisible characters from ChatGPT or Claude copy-paste: zero-width spaces, direction marks, Unicode tag characters, curly quotes, non-breaking spaces and extra blank lines. This free tool does it in your browser, and nothing you paste leaves your device.
Changed 13 items:
3 hidden characters · 2 odd spaces · 3 curly quotes · 1 ellipses · 2 line-end spaces · 2 extra blank-line runs
Hidden characters found in your input: U+200B ×1, U+2060 ×1, U+FEFF ×1
What does it remove?
- Hidden characters: zero width space (U+200B), word joiner (U+2060), byte order mark (U+FEFF), soft hyphen (U+00AD), direction marks and controls (U+200E, U+200F, U+202A to U+202E, U+2066 to U+2069) and stray Unicode tag characters (U+E0000 to U+E007F).
- Odd spaces: the no-break space (U+00A0), the narrow no-break space (U+202F) and the fixed-width spaces U+2000 to U+200A become a normal space.
- Typography: curly quotes become straight quotes and the ellipsis character (U+2026) becomes three dots. Changing em and en dashes to a hyphen is off by default.
- Line breaks: Windows line endings become plain line breaks, spaces at line ends go, and runs of blank lines shrink to one.
You can check every code point above in the Unicode Consortium's General Punctuation chart. The tool also lists every invisible "format" character (Unicode category Cf) found in your input, using the \p{Cf} pattern that MDN documents for JavaScript.
Why do hidden characters matter?
They break string matching: password with a zero width space inside is not equal to password, even though both look the same. Unicode tag characters can carry text that people cannot see but language models can read. Our guide to stripping hidden Unicode from LLM output explains each group and has the tested JavaScript this tool is based on.
Cleaning text before you render it as HTML?
Clean first, then convert and sanitize. A sanitizer removes scripts and unsafe links, but it leaves hidden characters in place, so the two steps do different jobs. Paste a model's Markdown into the LLM output XSS tester to see what a sanitizer must catch, then try the conversion in the free playground. The API documentation shows the request format. If you need it in production, the Pro plan is ₹799 per month for 50,000 requests. Making a table for your docs? Try the Markdown table generator.
Frequently asked questions
Is my text sent to a server?
No. The cleaning runs in JavaScript in your browser. What you paste is not sent to TexToolsAI or anyone else, and it is not saved. Closing the tab clears it.
Does ChatGPT or Claude add hidden characters on purpose?
We have not verified that, so we make no claim about any model. Hidden characters can also come from copy-paste, web pages, documents and prompt injection. The tool lists the exact code points it finds, so you can see what your own text contains.
Will it break emoji?
Not with the default settings. It keeps the zero width joiner (U+200D) that builds emoji like the family emoji, and it keeps complete flag sequences such as England, Scotland and Wales, which are made of tag characters. Only turn on the joiner option if you have checked your text.
Why replace curly quotes?
Code, JSON and shell commands need straight quotes. Curly quotes (U+2018, U+2019, U+201C, U+201D) look similar but are different characters, so a command or config pasted with them will fail.
Does this make AI text undetectable?
No, and that is not its purpose. It only removes invisible characters and swaps punctuation. It does not rewrite any words, and we make no claim about AI detectors.