Text Character Identifier: How to Find Any Character's Unicode Code Point

Learn what a text character identifier does, how to find a character's Unicode code point, name and category, and how to spot invisible or look-alike characters safely.

What a text character identifier does

A text character identifier takes a piece of text and tells you exactly which Unicode characters it contains. Unicode is the standard that assigns every character a unique number, called a code point, written in the form U+ followed by hexadecimal digits, such as U+0041 for the capital letter A. The identifier does not change your text. It inspects it and reports what is really there, which is often different from what you see on screen.

The input is usually a pasted string: a single symbol, a word, a line copied from a document, or a fragment of code that behaves strangely. The output is a breakdown of that string, one character (or one code point) at a time. Depending on the tool, each entry may include some or all of the following details.

  • Code point: the character's Unicode number, for example U+00E9.
  • Official Unicode name: for example LATIN SMALL LETTER E WITH ACUTE.
  • General category: a short code describing the character's role, such as Lu (uppercase letter), Ll (lowercase letter), Mn (combining mark), Zs (space separator) or Cf (invisible format character).
  • Decimal value: the same code point as a base-10 number, for example 233 for U+00E9.
  • Encoded bytes: how the character is stored in encodings such as UTF-8 or UTF-16.
  • Script or block: which writing system or section of Unicode the character belongs to, such as Latin or Cyrillic.

Why looking at the character is not enough

Different characters can look identical, and some characters are not visible at all. A search that fails, a password that is rejected, a spreadsheet formula that will not match, or a line of code that throws an unexpected error can all come down to a character that is not what it appears to be. An identifier resolves this by showing the code point instead of the glyph (the drawn shape a font displays).

What you see | What it might actually be | Code point and name
a | Latin letter | U+0061 LATIN SMALL LETTER A
а | Cyrillic letter that looks the same in most fonts | U+0430 CYRILLIC SMALL LETTER A
é | One precomposed character | U+00E9 LATIN SMALL LETTER E WITH ACUTE
é | Two code points: e followed by a combining accent | U+0065 LATIN SMALL LETTER E + U+0301 COMBINING ACUTE ACCENT
(a space) | Ordinary space | U+0020 SPACE
(a space) | Space that prevents line breaks | U+00A0 NO-BREAK SPACE
(nothing visible) | Invisible character between letters | U+200B ZERO WIDTH SPACE
(nothing visible) | Byte order mark, often at the start of a file | U+FEFF ZERO WIDTH NO-BREAK SPACE

The two forms of é in the table illustrate an important point: a single visible character can be made of more than one code point. What a reader perceives as one character is called a grapheme cluster. Emoji show this clearly. For example, the woman technologist emoji 👩‍💻 is a sequence of three code points: U+1F469 WOMAN, U+200D ZERO WIDTH JOINER and U+1F4BB PERSONAL COMPUTER. A good identifier lets you see every code point in such a sequence, not just the combined image.

How to identify a character step by step

  • 1. Copy the exact text that is causing trouble, including a little of the surrounding text. Invisible characters often sit next to visible ones, so copying a single visible letter may miss them.
  • 2. Paste it into a character identifier or Unicode inspector. Paste as plain text if your editor offers the option, so that formatting is not added.
  • 3. Count the entries in the output. If there are more entries than visible characters, something invisible or a combining mark is present.
  • 4. Read the code point and name of each entry. Look for anything unexpected: a Cyrillic or Greek letter inside a Latin word, a space that is not U+0020, a combining mark, or a format character in category Cf.
  • 5. Note the position of any unexpected character so you can find it again in the original text.
  • 6. Decide whether the character is meaningful (for example, an intentional accent or a deliberate non-breaking space) or accidental, before changing anything.
  • 7. If you fix the text, paste the corrected version back into the identifier and confirm the output now lists only the characters you intend.

Identifying characters with a short script

If you prefer not to paste text into an online tool, for instance because the text is private, a few lines of code can do the same job. The example below uses Python's standard unicodedata module, which provides official Unicode names and categories. The sample string is illustrative: it contains a precomposed é and a no-break space, written as an escape sequence so the invisible character is explicit.

import unicodedata

text = "café\u00a0menu"

for ch in text:
    cp = ord(ch)
    name = unicodedata.name(ch, "<no name>")
    category = unicodedata.category(ch)
    print(f"U+{cp:04X}  {category}  {name}")

Based on the Unicode character data, the lines for the accented letter and the space in this example should read along these lines (this is the expected result, not a captured run):

U+00E9  Ll  LATIN SMALL LETTER E WITH ACUTE
U+00A0  Zs  NO-BREAK SPACE

In JavaScript, the equivalent approach is to loop over the string with for...of, which steps through code points rather than UTF-16 units, and call codePointAt(0) on each piece. JavaScript does not include Unicode character names in its standard library, so a script there will give you code points but not names without an additional data source.

Reading the results

The code point is the most reliable identifier, because it is the same on every system. Names are also fixed by the Unicode standard and are useful for searching documentation. The general category tells you how software is likely to treat the character: Zs characters count as spaces for many purposes but are not always treated the same as U+0020, and Cf characters are invisible but still occupy a position in the string, which affects comparisons, string length and search.

Byte values matter when you are debugging files or data exchanged between systems. The same code point is stored differently depending on the encoding. For example, U+00E9 is stored as the bytes C3 A9 in UTF-8, U+00A0 as C2 A0, and U+200B as E2 80 8B. A character outside the Basic Multilingual Plane, such as U+1F600 GRINNING FACE, takes four bytes in UTF-8 (F0 9F 98 80) and two 16-bit units in UTF-16 (D83D DE00, known as a surrogate pair). If an identifier reports surrogate values as separate characters, the text was split by UTF-16 units rather than by code points.

Common findings and how to handle them

  • Look-alike letters from another script (for example, Cyrillic а in place of Latin a): replace them with the intended letter if the word is supposed to be in one script. If the text is genuinely in that language, leave it alone.
  • No-break spaces (U+00A0): these are often intentional in typesetting, for example between a number and its unit. Replace them with ordinary spaces only where they break matching or parsing.
  • Zero-width characters (U+200B, U+200C, U+200D, U+FEFF): these are frequently accidental when copied from web pages or documents, but U+200C and U+200D are required in some scripts and in emoji sequences. Remove them only after confirming they are not part of a meaningful sequence.
  • Combining marks (category Mn): an accented letter stored as a base letter plus a combining mark can fail to match the precomposed form. Unicode normalization converts between these forms: NFC combines them into precomposed characters where possible, and NFD separates them. Normalizing is usually safer than deleting marks, which would change the meaning of the text.
  • A byte order mark (U+FEFF) at the start of a file: some programs expect it and others treat it as stray content. Whether to remove it depends on the program that reads the file.

Verifying the result without changing meaningful content

Before editing, keep a copy of the original text. After any change, run the corrected text through the identifier again and compare the two outputs entry by entry. The only differences should be the characters you deliberately replaced, removed or normalized. Pay particular attention to letters with accents, text in non-Latin scripts and emoji, because bulk find-and-replace operations or aggressive cleanup tools can silently strip characters that carry meaning. If the original problem (a failed search, a rejected input, a parsing error) no longer occurs and the character list contains nothing unexpected, the fix is confirmed.

Limits to keep in mind

No specific tools were evaluated for this guide, so features such as byte display, script detection or grapheme grouping should be checked in whichever identifier you choose rather than assumed. Tools also differ in which version of the Unicode standard they support. A tool built on older data may show a recently added character as unassigned or without a name even though it is valid. Finally, copying text through some applications can itself alter it, for example by converting no-break spaces to regular spaces or normalizing accents, so if a result looks different from what you expected, try copying the text from its original source again.