Home/Technologies/How Emoji Work: The Hidden Complexity Behind Simple Icons
Technologies

How Emoji Work: The Hidden Complexity Behind Simple Icons

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.

Nov 20, 2026
6 min
How Emoji Work: The Hidden Complexity Behind Simple Icons

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.

How Unicode Encodes Emoji

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.

How Multiple Emoji Combine Into One

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.

The Role of the Invisible ZWJ Character

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 πŸ‘©πŸ’»:

ElementCode Point
πŸ‘© WomanU+1F469
ZWJU+200D
πŸ’» LaptopU+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.

How Flags, Skin Tones, and Heart Variations Work

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.

Why a Country Flag Has Two Code Points

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.

How an Additional Symbol Changes Emoji Appearance

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.

Why the Same Emoji Looks Different on Different Devices

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.

How Many Characters Does a Single Emoji Take?

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 CountedHow to Calculate in JavaScriptResult for πŸ‘©πŸ’»
UTF-16 code unitstext.length5
Unicode code points[...text].length3
GraphemesIntl.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 

Conclusion

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.

Tags:

emoji
unicode
zwj
code points
grapheme clusters
flags
skin tones
emoji rendering

Similar Articles

Loading...