Emoji may appear as single symbols, but many are made from multiple Unicode code points joined by invisible characters. Learn how emoji sequences, flags, and skin tones are represented in Unicode and why emoji can look different on various devices.
Emoji like π and π©π» might seem like two separate icons. However, if we break them down into Unicode code points, the smiley face has a single code, while the woman using a laptop consists of three. There's an invisible character connecting the figure and the laptop, merging them into one image.
This difference becomes obvious when an app counts a single emoji as several characters, or when another device displays π© and π» separately instead of π©π». Flags and emoji with different skin tones also contain multiple components, but they are structured differently.
Unicode is a standard that assigns universal numbers to letters, numerals, and other characters. For example, the Russian letter Π has the number U+0410, and π is U+1F600. This number is called a code point. The prefix U+ indicates Unicode, and the value after it is in hexadecimal (using 0-9 and A-F).
To find an emoji's code, you can paste it into a tool that shows the code points of text. For π, you'll get a single line with U+1F600. For π©π», there will be three lines, even though we perceive it as one symbol. Unicode uses the concept of a grapheme cluster to describe this: one or more code points that combine into a single visible character when processed as text.
This works with letters too. For example, "Π°Μ" can be represented by two code points: U+0430 for Cyrillic "a" and U+0301 for the accent. When displayed, the accent appears above the letter, and together they form a single grapheme cluster. Similarly, composite emoji can merge several elements into one visual character in text.
If you type π© and π» consecutively, you get π©π». To create the woman with a laptop π©π», a special character is inserted between them. This character is invisible but has its own code point in the text.
This character is called the Zero Width Joiner (ZWJ). In an emoji sequence, it signals that adjacent elements should display as a single icon. Here's what makes up π©π»:
| Element | Code Point |
|---|---|
| π© Woman | U+1F469 |
| ZWJ | U+200D |
| π» Laptop | U+1F4BB |
In the family emoji π¨π©π§π¦, this process is repeated three times: the joiner is placed between the man and woman, between the woman and girl, and between the girl and boy. The string contains seven code points, but on the screen, you see one icon with four figures.
The order of elements matters. For example, in π©π©π¦ the two women come before the boy. The application recognizes the entire sequence and renders the appropriate family emoji.
Country flags, gestures with chosen skin tones, and emoji-style hearts may also consist of several code points. Each sequence follows its own principles. For flags, two symbols together represent a country; with gestures and hearts, a second character clarifies how to display the first.
Japan's two-letter code is JP. To encode the flag π―π΅, Unicode uses two regional indicator symbols corresponding to Latin letters. J is assigned U+1F1EF and P is U+1F1F5. Together, they represent the Japanese flag sequence.
Order is important, as it determines the country code. For example, CA stands for Canada π¨π¦, and AC for Ascension Island π¦π¨, using the same two indicators in a different order.
The thumbs up π has code point U+1F44D. Adding a skin tone modifier U+1F3FD right after gives you ππ½. The gesture remains the same, but the second symbol sets the tone. The same method changes the skin color of other supported gestures and people emoji, like π and ππ½.
Hearts work differently. The β₯ symbol (U+2665) can be displayed in various styles. Selector U+FE0E requests a text heart β₯οΈ, while U+FE0F shows an emoji-style heart β₯οΈ. Thus, two hearts with the same base code point can appear as a monochrome sign or as a colored pictogram.
In a typical message, emoji are transmitted as a sequence of code points. The recipient's device displays the image using a system font or the app's own icon set. Thus, π may show a broader smile in one messenger and more visible teeth in another. Even on the same phone, the same emoji can look different between two apps.
Composite emoji require support for the whole combination. For instance, a font may have separate icons for π© and π», but not the merged π©π». In that case, you'll see both elements side by side, with the joiner remaining invisible, though the sequence is preserved in the message.
A square or box may appear if the available fonts lack a drawing for a specific character. A new emoji may show up in one chat but turn into a box in another, often because one messenger has added the icon to its set, while the other uses a system font that will include it only after an update.
The visible length of text and the actual string length in JavaScript can differ. For π©π», the .length property returns 5, since it counts UTF-16 code units: π© and π» use two units each, and the ZWJ uses one. Counting code points yields three; counting graphemes yields one.
| What's Counted | How to Calculate in JavaScript | Result for π©π» |
|---|---|---|
| UTF-16 code units | text.length | 5 |
| Unicode code points | [...text].length | 3 |
| Graphemes | Intl.Segmenter with granularity: "grapheme" | 1 |
This difference matters if your website has a character counter for input fields. For example, the string Ππ©π» looks like two characters, but .length returns 6. To ensure your counter matches visible signs, split the string into graphemes using Intl.Segmenter:
const text = "Ππ©π»" const segmenter = new Intl.Segmenter("ru", { granularity: "grapheme" }) const count = [...segmenter.segment(text)].length console.log(count) // 2 A single emoji can consist of multiple Unicode code points. The sequence determines which icon is rendered, and its appearance depends on fonts and apps. That's why the same emoji may look different to sender and receiver.
To see what makes up an emoji, examine its code points. For accurate character counts in messages, count graphemes: flags, gestures with chosen skin tones, and the woman at the laptop should all be counted as one symbol each.