How to Identify Unicode Characters That Look Like the Letter a
Find out whether an a in your text is really U+0061 or a Cyrillic, Greek, fullwidth or math lookalike, and fix it without changing meaningful text.
A letter that looks like a plain Latin a can be one of several different Unicode characters. On screen they can be almost identical. To software they are completely different, so a search for a word can fail, a sort can put it in the wrong place, or a lookalike domain or username can pass as the real one. This guide shows how to find out which character you actually have, how to tell harmless variants from deceptive ones, and how to correct only what needs correcting.
What Unicode inspection does for your text
A Unicode inspector takes a piece of text and reports each character's code point and official name. A code point is the unique number Unicode assigns to a character, written as U+ followed by hexadecimal digits. The ordinary Latin letter is U+0061 LATIN SMALL LETTER A. A lookalike has a different code point and name, such as U+0430 CYRILLIC SMALL LETTER A, even if it renders the same.
Inspection only reads your text. It does not modify it. That matters because replacing lookalikes automatically can damage legitimate content. Cyrillic а belongs in Russian text, and ª is a real ordinal marker in Spanish and Portuguese, as in 1ª. Inspect first, then decide what to change.
Common characters that resemble a
The table lists well-known lookalikes of lowercase a. It is not exhaustive, and how similar each one looks depends on the font. The last column shows whether NFKC normalization turns the character into a plain U+0061. NFKC is a standard Unicode transformation that replaces compatibility variants, such as width, style, superscript and enclosed forms, with their basic equivalents. The NFKC values come from the published Unicode decomposition data and were not produced by a test run for this article.
| Character | Code point | Unicode name | Block | NFKC result |
| a | U+0061 | LATIN SMALL LETTER A | Basic Latin | Unchanged (this is the target) |
| а | U+0430 | CYRILLIC SMALL LETTER A | Cyrillic | Unchanged, stays Cyrillic |
| ɑ | U+0251 | LATIN SMALL LETTER ALPHA | IPA Extensions | Unchanged |
| α | U+03B1 | GREEK SMALL LETTER ALPHA | Greek and Coptic | Unchanged |
| ⍺ | U+237A | APL FUNCTIONAL SYMBOL ALPHA | Miscellaneous Technical | Unchanged |
| ᴀ | U+1D00 | LATIN LETTER SMALL CAPITAL A | Phonetic Extensions | Unchanged |
| a | U+FF41 | FULLWIDTH LATIN SMALL LETTER A | Halfwidth and Fullwidth Forms | Becomes a (U+0061) |
| 𝐚 | U+1D41A | MATHEMATICAL BOLD SMALL A | Mathematical Alphanumeric Symbols | Becomes a (U+0061) |
| 𝑎 | U+1D44E | MATHEMATICAL ITALIC SMALL A | Mathematical Alphanumeric Symbols | Becomes a (U+0061) |
| ª | U+00AA | FEMININE ORDINAL INDICATOR | Latin-1 Supplement | Becomes a (U+0061) |
| ₐ | U+2090 | LATIN SUBSCRIPT SMALL LETTER A | Superscripts and Subscripts | Becomes a (U+0061) |
| ⓐ | U+24D0 | CIRCLED LATIN SMALL LETTER A | Enclosed Alphanumerics | Becomes a (U+0061) |
Capital A has its own lookalikes. The most common are U+0410 CYRILLIC CAPITAL LETTER A (А), U+0391 GREEK CAPITAL LETTER ALPHA (Α) and U+FF21 FULLWIDTH LATIN CAPITAL LETTER A (A). NFKC leaves the Cyrillic and Greek capitals unchanged.
There are two kinds of lookalike, and they need different handling. Compatibility variants, such as fullwidth, mathematical, subscript and circled forms, are styled versions of the Latin letter, and NFKC folds them back to a. Cross-script homoglyphs are different letters from other writing systems that happen to look the same, such as Cyrillic а, Greek α and Latin alpha ɑ. Normalization does not change these. You have to detect them by checking the script or by using a confusables check.
Step by step: identify a suspicious a
1. Copy the exact text
Copy the suspicious word straight from its source, or work directly on the file. Do not retype it, because retyping replaces the original character with whatever your keyboard produces. That makes the problem disappear from your copy while it stays in the original.
2. List every code point
Any tool that shows code points and names will work, including a code point inspector, a text editor's character info panel or a short script. The Python example below uses only the standard library. The \u0430 escape in the sample string stands for the Cyrillic letter, so the example is unambiguous when you read it.
import unicodedata
text = "p\u0430ypal" # example: the second letter is Cyrillic
for ch in text:
name = unicodedata.name(ch, "<no name>")
print(f"U+{ord(ch):04X} {name}")
Based on the Unicode character data, the script should print the following. This is the expected output, not a captured test run:
U+0070 LATIN SMALL LETTER P
U+0430 CYRILLIC SMALL LETTER A
U+0079 LATIN SMALL LETTER Y
U+0070 LATIN SMALL LETTER P
U+0061 LATIN SMALL LETTER A
U+006C LATIN SMALL LETTER L
The two letters that look like a are different characters. The first is Cyrillic and the second is Latin.
In a terminal, a byte dump gives a quick confirmation. In UTF-8, Latin a is the single byte 61, while Cyrillic а is the two bytes d0 b0. In bash, the example command below should print 61d0b0:
printf '\u0061\u0430' | xxd -p
3. Find non-ASCII characters in a larger file
For text that is supposed to be plain English, such as code, identifiers, URLs or configuration, any character outside ASCII deserves a look. With GNU grep built with Perl-compatible regex support, this example lists the line numbers of lines that contain one:
grep -nP '[^\x00-\x7F]' notes.txt
This only narrows the search. It also flags legitimate characters such as curly quotes, accented letters and emoji, so inspect the flagged lines with the method from step 2.
4. Check for mixed scripts within a word
A word that mixes Latin and Cyrillic or Greek letters is a strong sign of a homoglyph. Real words almost always come from one script. The example below uses the first word of each character's Unicode name as a rough stand-in for its script.
import unicodedata
def name_prefixes(word):
return {unicodedata.name(ch, "?").split()[0]
for ch in word if ch.isalpha()}
print(name_prefixes("p\u0430ypal")) # expected: {'LATIN', 'CYRILLIC'}
This shortcut is approximate. Names such as MATHEMATICAL BOLD SMALL A or FULLWIDTH LATIN SMALL LETTER A do not start with a script name. For accurate results, use the Unicode Script property. In Python, the third-party regex module supports patterns such as \p{Script=Cyrillic}.
5. Separate compatibility variants from homoglyphs
Compare each character with its NFKC form. If the character changes to U+0061, it is a compatibility variant of a. If it stays the same, it is a separate letter, which could be a homoglyph or legitimate text in another script. The example prints code points rather than glyphs, so a Cyrillic а in the output cannot pass for a Latin one.
import unicodedata
for ch in "\uFF41\U0001D41A\u00AA\u0430\u0251":
folded = unicodedata.normalize("NFKC", ch)
codes = " ".join(f"U+{ord(c):04X}" for c in folded)
print(f"U+{ord(ch):04X} -> {codes}")
According to the Unicode decomposition data, U+FF41, U+1D41A and U+00AA should each map to U+0061, while U+0430 and U+0251 should map to themselves.
6. Use a confusables check for cross-script lookalikes
Unicode Technical Standard #39, Unicode Security Mechanisms, publishes a list of confusable characters and a skeleton procedure. The procedure maps a string to a canonical form, so two strings that look alike produce the same skeleton. ICU's spoof checker implements this standard. Use a confusables check when you need to know whether two strings could be mistaken for each other, for example a username compared with an existing one. A code point dump only tells you what each character is.
7. Fix deliberately, then verify
- Replace only the characters you confirmed as unwanted, and only in text where the Latin letter is clearly intended.
- Do not run NFKC over whole documents to clean them. It also rewrites superscripts, ordinal markers, ligatures and mathematical styling that may carry meaning.
- Leave Cyrillic and Greek letters alone in text that is actually written in those languages.
- After editing, run the code point listing from step 2 again and confirm that every intended a now reports U+0061 LATIN SMALL LETTER A.
- Run the search or comparison that originally failed, and check that it now matches.
Pitfalls that can hide the real character
- Accented forms can be stored two ways. For example, á can be the single character U+00E1 or a (U+0061) followed by the combining acute accent U+0301. NFC normalization joins them into one character, and an inspector shows both forms explicitly.
- Invisible characters next to a letter, such as U+200B ZERO WIDTH SPACE, can break matching even when the a itself is correct. Code point listings reveal them, while normal display does not.
- Character counts depend on the tool. 𝐚 (U+1D41A) is one code point in Python but two UTF-16 code units in JavaScript string length, so length checks can disagree across tools.
- Fonts change how similar two characters look. A pair that is easy to tell apart in one typeface can be identical in another, so rely on code points rather than appearance.
Gaps in this guide
No specific inspection product was evaluated for this article, so it makes no claims about particular apps, browser extensions or online tools. The code examples rely on documented standard behavior. Their outputs are expected results, not captured runs, so test them in your own environment before you depend on them. The lookalike table covers common cases only. For a complete and current mapping, consult the confusables data published with Unicode Technical Standard #39.