Unicode homoglyphs: same appearance, different characters
Identify look-alike characters in domains, usernames, codes, and copied text.
Quick answer: Homoglyphs are characters that look alike but have different code points, such as Latin “a” and Cyrillic “а”. They can break string matching and can be abused to imitate trusted domains or account names.
A difference that is hard to see
Latin a is U+0061; Cyrillic а is U+0430. Many fonts draw them almost identically. A familiar brand name can contain characters from another script and still look convincing at a glance.
Before
a — LATIN SMALL LETTER A — U+0061
After
а — CYRILLIC SMALL LETTER A — U+0430
Common Unicode homoglyph examples
These characters may look similar depending on the typeface and size, while retaining distinct encoded values. Confusion is not limited to mixed scripts: Latin O and the digit 0 can be mistaken for one another too.
- Latin a U+0061 and Cyrillic а U+0430.
- Latin o U+006F, Cyrillic о U+043E and Greek ο U+03BF.
- Latin p U+0070 and Cyrillic р U+0440.
- Latin capital O U+004F and digit 0 U+0030.
Normalization is not a complete fix
NFC and NFKC resolve some equivalent or compatibility forms, but they do not turn all Cyrillic letters into Latin because those letters are valid in their own languages. Detection requires code-point, script, and context checks.
Inspect homoglyph code points in JavaScript
You can reproduce this check with sample text, without a library or a server request. Array.from iterates over code points. The sample contains a Latin a followed by a Cyrillic а; the second check demonstrates that NFKC keeps them distinct.
Before
const text = "aа"; Array.from(text, char => "U+" + char.codePointAt(0).toString(16).toUpperCase().padStart(4, "0"));
After
["U+0061", "U+0430"]
"a".normalize("NFKC") === "а".normalize("NFKC"); // false Inspect suspicious strings
Paste the string into the Unicode normalizer and inspect every code point. Take extra care with domains, wallet addresses, usernames, and codes received from untrusted sources. Do not rely on appearance alone for authentication or payments.
A code-point inspector is not a spoofing detector
The linked Unicode normalizer helps you inspect encoded characters and normalization forms. It does not certify a domain as safe or implement a complete confusable-detection system. For identifier systems, Unicode UTS #39 describes comparisons using confusable data and skeletons, alongside context-specific script restrictions.
A skeleton is for internal comparison, not a display name or a replacement for the original identifier. Preserve legitimate text and review suspicious cases instead of silently replacing every Cyrillic or Greek letter with a Latin one.
Frequently asked questions
Are homoglyphs always malicious?
No. Different writing systems naturally contain similar shapes. Risk comes from deceptive mixing.
Does accent removal detect homoglyphs?
No. Removing marks does not convert Cyrillic letters to Latin.