How to Identify the Key Symbol in Unicode
Find the exact Unicode code point behind a key symbol such as 🔑 or 🗝️. Inspect it step by step, spot hidden variation selectors, and confirm the result.
A key symbol in a document, chat message or web page can come from several different Unicode characters. Some look almost the same. If you need to search for it, store it in a database, compare two strings or reproduce it in code, you need the exact code point, not just a character that looks right. This guide explains what a Unicode inspection tool does, how to use one on a key symbol, and how to confirm the result without accidentally changing the text.
What a Unicode inspector does for your text
A Unicode inspector, also called a character identifier or code point viewer, takes text you paste or type and breaks it into individual characters. For each character it usually reports the code point, the official Unicode character name, and often the encoded bytes in UTF-8 or UTF-16. A code point is the unique number Unicode assigns to a character, written as U+ followed by hexadecimal digits, such as U+1F511.
The inspector only reads your text. It does not change it, so you can safely inspect a symbol copied from anywhere. It also shows what you cannot see on screen. A single visible key can be two code points, a base character plus an invisible variation selector, and an inspector will list both.
Gap in the supplied evidence: no specific inspection tool was named or tested for this guide. The steps below describe the behavior common to code point inspectors in general and use standard scripting functions. Check the labels and options in whichever tool you choose.
Key-related characters you are likely to encounter
These code points and names come from the Unicode Standard. Fonts and platforms draw them differently, so the picture you see may not match another device. The code point and name are what identify the character.
| Character | Code point | Official Unicode name |
| 🔑 | U+1F511 | KEY |
| 🗝 | U+1F5DD | OLD KEY |
| ⚿ | U+26BF | SQUARED KEY |
| 🔐 | U+1F510 | CLOSED LOCK WITH KEY |
The most common "key emoji" is U+1F511 KEY. If your symbol looks like an antique or skeleton key, it is more likely U+1F5DD OLD KEY. A key inside a square is U+26BF SQUARED KEY. A padlock with a key is a separate character, U+1F510, not a key followed by a lock.
Step-by-step: identify the key symbol
- 1. Copy only the key symbol from its source. If you can't isolate it, copy a short fragment that includes it. The inspector will list every character, and you can find the key in that list.
- 2. Paste it into a Unicode inspector, or run one of the code snippets below.
- 3. Read the code point and the official name for each character listed.
- 4. Check whether the output includes extra entries you can't see, especially U+FE0F or U+FE0E right after the key.
- 5. Compare the result with the table above to confirm which key character you have.
- 6. To reuse the symbol, copy it from the original source or insert it by code point. Don't retype a lookalike.
Watch for invisible variation selectors
Some symbols can be displayed as plain text or as a colorful emoji. An invisible character called a variation selector picks the style. U+FE0F (VARIATION SELECTOR-16) requests emoji style, and U+FE0E (VARIATION SELECTOR-15) requests text style. The old key is often written with U+FE0F after it, so a single visible 🗝️ can actually be two code points.
Example (illustrative): one visible old-key emoji
U+1F5DD OLD KEY
U+FE0F VARIATION SELECTOR-16 <- invisible
This matters for matching. A search for U+1F5DD alone may not match text that stores U+1F5DD U+FE0F if the comparison is exact. If you strip the selector, the symbol may switch to its plain text appearance. Decide whether the selector is meaningful to you before you remove it.
Inspect the symbol with a short script
If you'd rather not paste text into an online tool, you can inspect it locally. The Python example below uses the standard unicodedata module to print each character's code point and name.
import unicodedata
text = "🔑"
for ch in text:
print(f"U+{ord(ch):04X}", unicodedata.name(ch, "<no name>"))
Per the Unicode Standard, the expected output for the input above is a single line, U+1F511 KEY. This is an illustrative example and has not been run for this guide. The names unicodedata reports depend on the Unicode version your Python build includes.
In JavaScript, iterate over the string with the spread operator so that characters outside the Basic Multilingual Plane are not split into halves.
const text = "🔑";
for (const ch of [...text]) {
console.log("U+" + ch.codePointAt(0).toString(16).toUpperCase());
}
JavaScript has no built-in way to look up official character names, so this snippet prints only the code point. Use the table above or an inspector to get the name.
Why the byte values look different from the code point
Inspectors often show encoded bytes next to the code point. These are the same character stored in different formats, not different characters. U+1F511 KEY is the four bytes F0 9F 94 91 in UTF-8. In UTF-16 it is the surrogate pair D83D DD11, which is why it appears as \uD83D\uDD11 in JSON or older JavaScript escapes. If a tool reports the key as two UTF-16 units, the text has not been corrupted. That is how UTF-16 represents characters above U+FFFF.
Verify the result
- Confirm the inspector reports the code point you expected, for example U+1F511 for the standard key emoji.
- Confirm the number of code points matches what you intended, so no stray U+FE0F and no missing selector.
- Paste the symbol back into your target application and inspect it again. Some editors and form fields add or remove variation selectors.
- If you search or compare text, test one string with the selector and one without, and check that both behave the way you need.