AI CleaningAIText
🔒 100% In-Browser · Your text never leaves your device · Free & No Sign-Up

Homoglyph & Lookalike Character Detector

Spot Cyrillic/Greek lookalike spoofing, Bidi Trojan Source overrides, and apply Unicode NFKC normalization.

Source Input
0 Hidden Chars Found 0 Removed 0 Words 0 Characters
One-Click Presets:

What Is a Homoglyph Detector and How Does It Work?

Updated

A homoglyph detector scans text for visually identical characters from non-Latin scripts—such as Cyrillic "а" (U+0430) or Greek "Α" (U+0391)—as well as Bidi directional overrides (U+202E) used in Trojan Source attacks. CleaningAIText highlights them in Unicode X-Ray Mode and converts them back to standard Latin with NFKC normalization.

How to Detect Homoglyphs in 3 Steps

1

Paste Text, URLs, or Code

Paste any suspicious domain, code snippet, or AI text into the Source Input pane.

2

Inspect Orange [HOMOGLYPH] & Rose [RTL] Badges

The Unicode X-Ray viewer flags every lookalike character with its exact U+XXXX codepoint and Latin equivalent.

3

Normalize to Clean Latin

Copy the Cleaned Output where all homoglyphs are mapped back to ASCII Latin and normalized via NFKC.

Before Cleaning (Raw AI Output)
Check this domain: exаmple.com and Bidi‮ override text.
After Cleaning (Clean Plain Text)
Check this domain: example.com and Bidi override text.

Common Use Cases & Who Benefits Most

Phishing & Domain Spoofing Audits

Detect IDN homograph attacks where Cyrillic letters impersonate trusted brand domains.

Trojan Source Code Reviews

Catch dangerous Right-to-Left Overrides (U+202E) and Bidi isolates (U+2066–U+2069) in pasted code.

AI Watermark & Plagiarism Evasion Checks

Spot sneaky Cyrillic character substitutions used to bypass keyword filters or text matchers.

Unicode NFKC Normalization

Convert mathematical bold/italic Unicode letters and compatibility ligatures into standard ASCII.

Understanding Homoglyph Spoofing, Bidi Attacks, and NFKC Normalization

Homoglyphs are characters from different Unicode scripts that look identical or nearly identical to standard Latin letters. For example, Cyrillic small letter "а" (U+0430) looks indistinguishable from Latin "a" (U+0061) in almost every sans-serif font, yet computers treat them as completely different characters.

Attackers exploit homoglyphs for phishing domains (IDN homograph attacks) and to bypass content moderation filters. Similarly, Bidirectional (Bidi) control characters like U+202E (Right-to-Left Override) can visually reorder characters in source code—a vulnerability known as Trojan Source (CVE-2021-42574).

Our Homoglyph Detector combines a targeted Cyrillic/Greek lookalike mapping table with JavaScript’s built-in .normalize("NFKC") compatibility decomposition and full Bidi override stripping.

Because all inspection happens locally in your browser, you can safely audit sensitive URLs, credentials, and source code offline.

What Hidden Unicode Characters Does This Tool Detect & Remove?

Click any codepoint below to copy it for testing or documentation.

Codepoint Character Name Common Source Why Remove It
Zero Width Space (ZWSP) ChatGPT, web copy-paste, hidden watermarks Breaks keyword search, URLs, and code linting silently
Narrow No-Break Space (NNBSP) Claude AI, macOS typography, French punctuation Causes odd spacing and word-wrap bugs in Google Docs & CMS
Non-Breaking Space (NBSP) ChatGPT, HTML copy-paste, Notion, Word Prevents normal line wrapping and fails strict string matching
Zero Width Non-Joiner (ZWNJ) LLM tokenization artifacts & watermarked text Splits words invisibly in databases and SEO crawlers
Zero Width Joiner (ZWJ) Emoji sequences & invisible text signatures Joins adjacent glyphs or hides metadata between words
Byte Order Mark (BOM) File exports, UTF-8 streams, AI code blocks Breaks JSON parsers, CSV imports, and shell scripts
Em Dash (—) ChatGPT & Claude default prose punctuation Often flagged as an AI writing tell; replaced with hyphen (-)
Right-to-Left Override (RLO) Bidi spoofing & Trojan Source code attacks Visually reverses text order to disguise malicious strings
Unicode Tag Characters ASCII smuggling & hidden prompt injections Embeds invisible ASCII instructions inside normal-looking text
Cite / Link to This Tool: <a href="https://cleaningaitext.com/homoglyph-detector">Homoglyph & Lookalike Character Detector — CleaningAIText</a>

Related AI Text & Unicode Tools

Frequently Asked Questions

Which homoglyphs does this detector catch?

It detects common Cyrillic and Greek lookalikes (such as а, е, о, р, с, у, х, і, А, В, Е, К, М, Н, О, Р, С, Т, Х, Α, Β, Ε, Ο, etc.) and also applies Unicode NFKC normalization.

What is a Trojan Source (Bidi) character?

Bidi characters (U+202A–U+202E, U+2066–U+2069) change text rendering direction and can make malicious code appear benign. Our tool flags them as [RTL] / [LRI] and removes them.

What does Unicode NFKC normalization do?

NFKC (Normalization Form Compatibility Composition) converts compatibility variants—like fancy mathematical bold/italic letters or fullwidth ASCII—into standard characters.

How are homoglyphs highlighted in Unicode X-Ray?

They appear with an orange [HOMOGLYPH] badge, and hovering shows the codepoint and the Latin letter it mimics.

Does this also detect ASCII-smuggling Unicode Tags?

Yes, U+E0000–U+E007F tags are automatically decoded and flagged in a warning banner.

Is it safe to paste internal code or URLs here?

Yes. Everything runs 100% client-side with zero network requests.

Can I disable NFKC/homoglyph conversion if I only want to inspect?

Yes, uncheck "Homoglyphs & Unicode NFKC" while keeping the X-Ray tab open.

Does it work on fullwidth characters like abc?

Yes, NFKC normalization converts fullwidth Latin characters into standard ASCII.

Are my inputs logged?

Never.

Can I download the normalized output?

Yes, click "Download .txt".