Hidden Unicode character detector
Paste text or code and list every invisible or misleading character: zero-width, bidi controls, Unicode tags and look-alike letters. Get a cleaned copy.
Checked as you type. Nothing you paste leaves this page.
Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.
How to use the hidden Unicode character detector
- Paste the text or code, or load the example.
- Read the table: each row is one character, with where it is and what it does.
- Check look-alike letters by hand; they are reported but never changed.
- Copy the cleaned version, which has the invisible characters removed.
About this tool
Unicode has characters that take no space, characters that reorder the text around them, and letters from different alphabets that look the same. In prose they are harmless typesetting tools. In code, a prompt, a file name or a domain they let two things that look identical be different, or let text read one way to a person and another to a machine.
The best known case is Trojan Source (CVE-2021-42574): bidirectional override characters in a comment or string make a compiler see different logic from what a reviewer sees. The same family is used against language models, where invisible Unicode tag characters carry instructions that no interface displays but the model reads as plain text.
This detector lists every such character with its line, column, code point and name, and gives you a cleaned copy. It tries not to cry wolf: joiners inside emoji, Arabic, Persian and Indic text are part of correct spelling and are left alone, and Cyrillic or Greek letters are flagged only inside a word that is otherwise Latin.
Sources
Questions
A way to hide logic in source code with Unicode bidirectional control characters. They change the order in which a line is displayed, so a reviewer sees, for example, a comment where the compiler sees an early return. It was published in 2021 as CVE-2021-42574, and most editors and code hosts now warn about these characters.
U+200B, a character with no width that marks a possible line break. Pasted into a word it is invisible, but the word no longer equals the same word without it, which breaks searches, filters and comparisons. Related characters are the zero-width joiner, non-joiner and the word joiner.
The block U+E0000 to U+E007F, which mirrors ASCII with invisible characters. Their only current standard use is in emoji flag sequences. Because language models can read them as ordinary letters while people see nothing, they are used to smuggle hidden prompts, sometimes called ASCII smuggling.
A character that looks like another, such as Cyrillic "а" (U+0430) and Latin "a" (U+0061). Swapping one in makes a package name, a domain or a variable that looks right and is not. This tool flags them inside words that mix scripts, which is rare in honest text.