What Unicode is
This article takes about 4 minutes to read.
Unicode is an international standard that represents the world's characters with a single numbering system, and emoji are also part of this standard.Japanese, English, Arabic, emoji, mathematical symbols - by assigning a unique number (codepoint) to every kind of "character", it makes it possible to exchange text correctly between different languages / systems.
Definition and purpose
Unicode is a character encoding standard developed / maintained by the Unicode Consortium (a nonprofit organization). It began with Unicode 1.0 in 1991, and Unicode 17.0 in 2025 includes 159,801 characters (about 160,000 characters).
Before Unicode, different character encodings were used for each language, such as Shift_JIS and EUC-JP for Japanese, GB2312 for Chinese, and EUC-KR for Korean. This was the main cause of "mojibake" (garbled text), and Unicode was created to solve this problem at its root.
What a codepoint is
In Unicode, each character is assigned a unique number called a "codepoint". It is written as U+ followed by a hexadecimal number, for example:
- A → U+0041
- あ → U+3042
- 😊 → U+1F60A
- 🌸 → U+1F338
A codepoint is something like "the address of a character", and the same number points to the same character on any system.
Encoding - UTF-8 and UTF-16
The method for storing codepoints in a computer's memory or in files is called "encoding". Here we compare 2 of them, UTF-8 and UTF-16.
| Aspect | UTF-8 | UTF-16 |
|---|---|---|
| Bytes per character | 1 to 4 bytes (variable length) | 2 or 4 bytes |
| ASCII compatible | Yes (letters and digits are 1 byte) | No |
| Main uses | Web, file storage, APIs | Windows internals, Java, JavaScript |
| Bytes per emoji | 4 bytes | 4 bytes (surrogate pair) |
On the web, the HTML specification requires the use of UTF-8. The <meta charset="utf-8"> in an HTML file is a declaration that "this page is written in UTF-8".
How Unicode and emoji relate
Emoji are included as one of Unicode's "blocks". They are spread across blocks such as the following:
- Emoticons (U+1F600 to U+1F64F): facial expressions
- Miscellaneous Symbols and Pictographs (U+1F300 to U+1F5FF): weather, food, animals, and more
- Transport and Map Symbols (U+1F680 to U+1F6FF): vehicles, buildings
- Supplemental Symbols and Pictographs (U+1F900 to U+1F9FF): additional emoji
Additions of new emoji are reviewed by the Unicode Consortium's Emoji Subcommittee and published in a release once a year.
What the Unicode Consortium is
The Unicode Consortium is a nonprofit organization headquartered in California. Major tech companies such as Apple, Google, Microsoft, Meta, and Amazon take part as members, and contribute to developing and maintaining the standard. Anyone can submit an emoji proposal, and proposals are reviewed through a public process.
Points to watch in practice
- Character counts: A single emoji may be counted as 2 by JavaScript's
.length(surrogate pair) - Databases: To store emoji in MySQL, use
utf8mb4(utf8handles only up to 3 bytes) - URLs: Including emoji in a URL requires percent-encoding
Related terms
- Emoji - pictographic characters included in Unicode
- Variation selector - the control character that switches between emoji display and text display
- ZWJ (Zero Width Joiner) - the control character that joins several emoji into one
Was this article helpful?