Inspecting the code points behind an emoji with a modifier
One emoji on screen can be several Unicode scalar values. A thumbs-up with a skin-tone modifier is two code points and eight UTF-8 bytes, even though it draws as a single image.
What you see and what is stored
The thumbs-up emoji with a medium skin tone looks like one picture. In the underlying text it is two characters. The first is the base emoji, THUMBS UP SIGN, U+1F44D. The second is EMOJI MODIFIER FITZPATRICK TYPE-4, U+1F3FD, which tells the renderer to draw the base in a medium skin tone. A font or operating system that supports the sequence combines them into one image. One that does not may show the thumbs-up followed by a brown square, which is the sign of an unsupported sequence and a useful visual clue that two characters are present. The picture is a rendering decision, and the stored text is the sequence of scalar values.
The base emoji
The first case encodes the plain thumbs-up and gets U+1F44D, a single code point. Its value is above U+FFFF, so it sits in a supplementary plane. It needs four bytes in UTF-8, F0 9F 91 8D, and two code units in UTF-16, a surrogate pair. That already shows that a single emoji can be longer than a single letter in every common encoding. In JavaScript, the string length of this emoji is 2, not 1, because length counts UTF-16 code units. The four bytes follow the UTF-8 pattern 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx, which holds 21 data bits, enough for every code point up to U+10FFFF. The value 1F44D in binary fills those slots as 000 011111 010001 001101, giving F0 9F 91 8D.
The modified emoji
The second case encodes the thumbs-up followed by the modifier and returns two code points, U+1F44D and U+1F3FD. The modifier is listed as its own scalar value. Unicode defined five skin-tone modifiers, U+1F3FB to U+1F3FF, based on the Fitzpatrick scale, and introduced them with Unicode 8.0 in 2015. When the modifier follows a base character that supports it, renderers merge the two into one image. When it follows a character that does not support modification, it appears on its own as a colored swatch.
Eight bytes in UTF-8
The third case passes the sequence to the UTF-8 byte length calculator, which returns 8. Each scalar is above U+FFFF, and UTF-8 stores such code points in four bytes, so two scalars give 4 plus 4. In UTF-16, each takes a surrogate pair, so the sequence has 4 code units. In UTF-32, it would take 8 bytes as well. If a form field allows 20 bytes, this emoji uses 8 of them. The visible symbol count of one is not what a storage or transmission limit measures.
Where the count depends on the task
Several counts are valid for this one symbol. It is 2 scalar values, 8 UTF-8 bytes, 4 UTF-16 code units and 1 user-perceived character, which Unicode Standard Annex 29 calls an extended grapheme cluster. A length check for a database column needs bytes or code points. A character counter for a social post may follow the grapheme count or a platform-specific weighting. A text cursor that moves one step over the whole emoji uses graphemes. The converter and the byte counter here answer the first two questions only.
Sequences that join characters
Modifiers are one way to combine scalars. Others use the zero width joiner, U+200D, which links several emoji into a single image: a family emoji can contain three or four people joined by that invisible character. Flags are built from two regional indicator symbols, so the flag of a country is a pair of code points. Keycap sequences combine a digit with U+FE0F and U+20E3. Each is one picture and several scalars, and the byte count grows accordingly. The inspection method used for the thumbs-up applies unchanged. A family emoji made of two adults and one child has three people of four bytes each plus two joiners of three bytes each, which totals 18 bytes for one image. Counting a sequence by hand is a good exercise before trusting a character counter that claims to count emoji.
Why platforms render them differently
The Unicode Consortium defines code points and sequences, and each vendor draws its own artwork. The same sequence may look different on a phone, a desktop browser and a printed document. A new emoji added in a recent Unicode version may display as an empty box on an older system. For data work, ignore the artwork and inspect the sequence. If two emoji look identical but have different code points, such as one with and one without a variation selector, they are different strings even though a person may not see the difference. A related case is the heart sign, which can appear with the variation selector U+FE0F to request color presentation. Text with and without that selector can draw almost the same, and the extra scalar adds three bytes. Inspecting the sequence is the only reliable way to tell the two apart.
Another modified emoji for comparison
The pattern repeats with other modifiers. The thumbs-up with the lightest tone is U+1F44D U+1F3FB, and with the darkest tone it is U+1F44D U+1F3FF. Each has the same 8 UTF-8 bytes as the medium tone, since every modifier is a four-byte scalar. The default thumbs-up without a modifier is shown in a neutral yellow on most platforms and has 4 bytes. Comparing the three lengths in the byte counter confirms the rule: base 4 bytes, base plus modifier 8 bytes. A search for the plain emoji in a text that contains the modified ones finds a partial match, which is sometimes exactly what you want and sometimes a surprise.
Using the inspection for your own text
To check a symbol, paste it into the Unicode converter and read the list of code points. A single value means a plain character. Two or more mean a sequence. Then use the byte counter to see the storage size in UTF-8. These two readings catch most surprises, such as a name field that rejects an emoji by length, a hash that differs between two apparently equal strings or a text that is cut in the middle of a sequence when truncated by bytes. Truncating by code points or bytes can leave a lone modifier behind, so truncate at a grapheme boundary when the text is for display. A lone modifier shows up as a colored square, which is the visible sign of a cut in the wrong place. Database columns that count characters rather than bytes behave differently across systems, and an older MySQL utf8 setting stored only three bytes per character, which rejects every emoji, while utf8mb4 stores four.
Reproduce the checks
Base emoji
Open the Unicode Converter and enter:
- Calculation mode
encode- Text or encoded input
๐
Expected output:
Code points
U+1F44DThe base emoji is one scalar value.
Emoji with modifier
Open the Unicode Converter and enter:
- Calculation mode
encode- Text or encoded input
๐๐ฝ
Expected output:
Code points
U+1F44D U+1F3FDThe modifier appears as a second scalar.
UTF-8 size of the sequence
Open the Utf8 Byte Length Calculator and enter:
- Text or encoded input
๐๐ฝ
Expected output:
Bytes
8Each scalar in this example contributes four bytes.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.
Sources
- Primary definition and convention reference โ ยท 2026-10-08
- Primary definition and convention reference โ ยท 2026-10-08