🔧 Interactive Tools

Unicode Lookup: Find Any Emoji by Code Point

What Is the Unicode Lookup Tool?

Every character you see on screen — including all 3,900+ emoji — has a unique numeric identifier assigned by the Unicode Consortium. The Unicode Lookup tool is a quick reference utility that takes either a code point (like U+1F600) or a pasted emoji character (like 😀) and returns the complete encoding picture: UTF-8 bytes, UTF-16 code units, HTML entities, CSS content values, and language-specific escape sequences.

For developers working with emoji in strings, databases, APIs, or user interfaces, this kind of instant breakdown eliminates the guesswork of converting between representations. Instead of reaching for a Python shell or searching scattered documentation, you get the full encoding story in one place.

Understanding Code Points

The U+ Notation

A code point is the canonical identifier for a Unicode character. It is written in the form U+ followed by four to six hexadecimal digits. The U+ prefix is universal shorthand: it does not represent bytes in memory, only an abstract numeric position within the Unicode codespace.

For example: - U+1F600 — 😀 Grinning Face - U+2764 — ❤ Heavy Black Heart - U+1F1FA U+1F1F8 — 🇺🇸 Flag: United States (two code points)

When you copy a code point from a specification, a font tool, or another reference site, you can paste it directly into the Unicode Lookup tool exactly as written.

Hexadecimal Code Points

Code points are expressed in hexadecimal (base 16) because the Unicode codespace runs from U+0000 to U+10FFFF — over 1.1 million possible positions. Decimal would be cumbersome for both humans and tools. Hex maps cleanly to the byte-level representations used by UTF-8 and UTF-16, making it the natural notation for encoding work.

If you are more comfortable with decimal, the tool displays the decimal equivalent alongside the hex value. U+1F600 in decimal is 128512.

Code Point Ranges for Emojis

Emoji code points are scattered across several Unicode blocks rather than grouped in a single contiguous range:

Range Content
U+2000 – U+27FF Symbols, punctuation, and some legacy emoji (✅, ⚡)
U+1F300 – U+1F9FF Core emoji block (faces, animals, food, activities)
U+1FA00 – U+1FAFF Extended-A (newer additions, chess pieces, household objects)
U+1F1E0 – U+1F1FF Regional Indicator Symbols (used in flag sequences)

Understanding where an emoji lives in the codespace matters when you encounter database errors about character encoding ranges, which often surface because MySQL's utf8 charset only covers U+0000 through U+FFFF and rejects emoji above that range.

How to Use the Tool

Enter a Code Point (e.g., U+1F600)

Type or paste a code point into the lookup field. The tool accepts several common input formats:

  • U+1F600 — canonical form with prefix
  • 1F600 — bare hex digits
  • 0x1F600 — C-style hex prefix

After submission, the tool resolves the code point to a character, displays the rendered glyph, and expands all encoding representations below.

Enter an Emoji Character

If you have an emoji character and want to reverse-engineer its code point, simply paste the character directly into the input field. The tool detects whether the input is a character or a code point notation and routes accordingly. Pasting 🥑 will resolve to U+1F951 and show all encoding formats automatically.

This reverse lookup is particularly useful when you receive an emoji in a log file, a database export, or an API response and need to identify exactly what character it is.

View Full Encoding Breakdown

Once the lookup resolves, the tool displays a structured breakdown of every major encoding format. Each value is individually copyable so you can paste the exact representation you need into your code without manual conversion.

Encoding Formats Explained

UTF-8UTF-8
每字符使用1至4个字节的可变长度Unicode编码方式,是互联网上最主流的编码,被98%以上的网站采用。
Bytes

UTF-8 is the dominant encoding on the web and in most modern applications. It encodes each code point as one to four bytes, with higher code points requiring more bytes.

The grinning face emoji 😀 (U+1F600) encodes to four bytes: F0 9F 98 80. You will see this representation when inspecting raw HTTP responses, binary file contents, or low-level network streams. If your application is stripping or mangling emoji, the byte sequence is the place to start diagnosing.

UTF-16UTF-16
每字符使用2或4个字节的可变长度Unicode编码方式,被JavaScript、Java和Windows内部使用。
Surrogate Pairs

UTF-16 uses 16-bit code units. Characters in the Basic Multilingual Plane (U+0000 to U+FFFF) fit in a single 16-bit unit. Characters above U+FFFF — which includes most emoji — require two 16-bit units called a surrogate pair.

For U+1F600, the surrogate pair is D83D DE00. The first unit (D83D) is the high surrogate and the second (DE00) is the low surrogate. JavaScript strings are internally UTF-16, which is why '😀'.length evaluates to 2 rather than 1: each surrogate counts as a separate code unit. This is a common source of off-by-one errors in string manipulation code that was written without emoji in mind.

The Unicode Lookup tool shows the surrogate pair for any emoji in the supplementary planes so you can anticipate and handle these length discrepancies.

HTML Entities (Decimal and Hex)

HTML supports numeric character references in two forms:

  • Decimal: 😀
  • Hexadecimal: 😀

Both render identically in the browser. The hex form is more readable for anyone cross-referencing Unicode documentation, while the decimal form occasionally appears in older codebases and XML documents. The tool provides both so you can match whatever convention your project already uses.

CSS content Property

When rendering emoji through CSS (for decorative icons, pseudo-elements, or font-icon replacements), the content property uses a backslash-prefixed hex escape without the U+ prefix:

.emoji-icon::before {
  content: "\1F600";
}

This format strips the U+ and replaces it with \. The Unicode Lookup tool displays the ready-to-paste CSS value alongside the other representations.

Python and JavaScript Literals

Each language has its own string escape format for Unicode characters:

Python uses \U followed by eight hex digits for supplementary plane characters:

grinning_face = "\U0001F600"
# or use chr() with the decimal value:
grinning_face = chr(0x1F600)

JavaScript uses \u{...} with ES2015+ template literals or strings:

const grinningFace = "\u{1F600}";
// older environments using surrogate pairs explicitly:
const grinningFace = "\uD83D\uDE00";

The tool outputs both the modern \u{...} form and the surrogate pair escape so you can target any JavaScript environment.

Practical Developer Use Cases

Debugging Emoji in Code

When an emoji appears as a replacement character (�), a question mark, or a sequence of garbage bytes, you need to identify the original code point and then trace which encoding layer is failing. Copy the broken output, paste it into the Unicode Lookup tool, and compare its byte sequence against what your application is producing. Mismatches in byte count or sequence often point to an encoding mismatch between the application layer and the database, or between the database and the client.

Cross-Platform Encoding Issues

Different platforms store and transmit Unicode differently. A string that round-trips cleanly between two Python services may break when passed through a Java layer that uses UTF-16 internally, or through a MySQL column using the utf8 charset instead of utf8mb4. The encoding breakdown from the Unicode Lookup tool gives you the concrete byte values and code unit sequences to verify that each layer is handling the character correctly.

Database Storage Considerations

MySQL's legacy utf8 charset is limited to three bytes per character, which excludes all emoji above U+FFFF. The correct charset for emoji storage is utf8mb4, which supports the full four-byte UTF-8 range. PostgreSQL uses UTF8 natively and handles all Unicode code points without special configuration.

If you see a "Incorrect string value" error in MySQL when inserting emoji, the Unicode Lookup tool lets you confirm whether the character is in the four-byte range (above U+FFFF) and verify that your column charset is set to utf8mb4.

Multi-Code-Point Emojis

Many emoji that appear as a single character are actually sequences of multiple code points rendered as a single visual unit — a grapheme cluster. Common sequence types include:

  • ZWJ零宽连接符(ZWJ) (ZWJ)
    一个不可见的Unicode字符(U+200D),用于将多个表情符号合并为单一复合表情符号,例如将人物与物体组合成职业表情符号。
    sequences
    : A Zero Width Joiner (U+200D) connects two or more emoji into a combined form. For example, 👩‍💻 (woman technologist) is U+1F469 U+200D U+1F4BB.
  • Skin tone modifiers: A Fitzpatrick modifier (U+1F3FB through U+1F3FF) is appended to a base emoji: 👍🏽 is U+1F44D U+1F3FD.
  • Flag sequences: Pairs of Regional Indicator Symbols combine into country flags: 🇯🇵 is U+1F1EF U+1F1F5.

The Unicode Lookup tool handles single code points. For sequences composed of multiple code points, use the Sequence Analyzer, which breaks a complex emoji sequence into its constituent components and explains the role of each part.

Understanding grapheme clusters is especially important when implementing string length checks or character counting in user interfaces. A skin-toned emoji or a family emoji built from ZWJ connections may consist of three, five, or more code points while visually occupying the space of one character.

  • Unicode Lookup — Enter a code point or paste an emoji for a full encoding breakdown
  • Sequence Analyzer — Decompose multi-code-point emoji sequences (ZWJ, skin tones, flags)

Glossary reference: - Code point — The numeric identity of a Unicode character - UTF-8 — Variable-width encoding used on the web - UTF-16 — Fixed-width encoding used internally by JavaScript and Java - Surrogate pair — Two UTF-16 code units representing a supplementary plane character - Grapheme cluster — A sequence of code points that renders as a single visible character

相关工具

🔍 序列分析器 序列分析器
将 ZWJ 序列、肤色修饰符、键帽序列和旗帜对解析为独立组成部分。
🔢 Unicode 查询 Unicode 查询
输入 U+1F600 等码位,获取表情符号、编码详情、UTF-8/16 字节和 HTML 实体。

术语表词条

Unicode联盟 Unicode联盟
负责制定和维护Unicode标准的非营利组织,同时管理新表情符号的审批流程。
UTF-16 UTF-16
每字符使用2或4个字节的可变长度Unicode编码方式,被JavaScript、Java和Windows内部使用。
UTF-8 UTF-8
每字符使用1至4个字节的可变长度Unicode编码方式,是互联网上最主流的编码,被98%以上的网站采用。
代理对 代理对
用于表示U+FFFF以上字符的两个UTF-16编码单元组合,由高代理(U+D800-U+DBFF)和低代理(U+DC00-U+DFFF)构成。
地区标志符号 (RI) 地区标志符号 (RI)
成对使用时可组合成国旗表情符号的Unicode字符(U+1F1E6至U+1F1FF),依据ISO 3166-1 alpha-2代码对应各国国旗。
字素簇 字素簇
用户感知到的单个字符单位,可能由多个Unicode码位组合而成,但显示为单一视觉元素。
平面 平面
由65,536个连续Unicode码位构成的分组。第0平面为基本多文种平面(BMP),大多数表情符号位于第1平面(SMP)。
码位 码位
Unicode标准中分配给每个字符的唯一数值,以U+XXXX格式表示(例如😀对应U+1F600)。
统一码 统一码
为所有书写系统和符号集(包括表情符号)中的每个字符分配唯一编号的通用字符编码标准。
编码单元 编码单元
用于编码字符的最小位组合:UTF-8为8位,UTF-16为16位,UTF-32为32位。
表情符号(Emoji) 表情符号(Emoji)
来自日语「絵文字」(えもじ),意为「图画文字」,是用于数字通信中表达想法、情感和事物的小型图形符号。
表情符号序列 表情符号序列
由一个或多个Unicode码位按顺序组合,共同表示单个表情符号的字符集合。
零宽连接符(ZWJ) (ZWJ) 零宽连接符(ZWJ) (ZWJ)
一个不可见的Unicode字符(U+200D),用于将多个表情符号合并为单一复合表情符号,例如将人物与物体组合成职业表情符号。

相关故事