How emoji characters are counted - so you don't lose out on social media character limits
This article takes about 5 minutes to read.
"Wait, I only added 5 emoji and I've used 30 characters?" There is a structural reason in Unicode behind that odd feeling.Even if an emoji looks like 1 character, inside the system it is normally made up of 2 to 10 or more codepoints. The rules for "what counts as 1 character" also differ by platform, so the same emoji may be treated as 2 characters on Twitter and as 1 character on another system. This article explains how this works and practical ways to deal with it.
What is a "character" in the first place?
Before talking about the character count of emoji, you need to understand that a "character" on a computer has several layers.
- Codepoint: 1 number assigned by Unicode. Example: the Japanese kana "a" is U+3042, 1 codepoint.
- Code unit: the smallest unit a character encoding handles. In UTF-16 it is 16 bits (2 bytes).
- Grapheme cluster: the unit that humans perceive as "1 character". It may consist of multiple codepoints.
The emoji character count problem arises because these 3 layers do not line up. Which layer is used for counting differs by platform.
Surrogate pairs - why an emoji becomes 2 characters
Unicode codepoints are defined from U+0000 to U+10FFFF, and representing them requires 21 bits. However, UTF-16, which many languages such as JavaScript strings, Java, and C# use internally, is basically designed to represent a character with 16 bits (1 code unit).
Since 16 bits can only represent up to U+FFFF, codepoints beyond that (which includes most emoji) are represented with a "surrogate pair" that combines 2 code units. In other words, if you count 1 emoji with "🌸".length, JavaScript returns 2.
"🌸".length // → 2 (surrogate pair)
"あ".length // → 1 (within the BMP)
[..."🌸"].length // → 1 (split by codepoint)This gap is the main culprit behind the phenomenon in web form character count validation where "adding emoji pushes you over the limit". A UI implemented simply with .length effectively puts emoji users at a disadvantage.
ZWJ sequences - 1 emoji, 5 to 10 codepoints
Family emoji and profession emoji work by joining multiple emoji with the Zero Width Joiner (U+200D) so they look like a single emoji.
- 👨👩👧 = 👨 + ZWJ + 👩 + ZWJ + 👧 = 5 codepoints
- 👨🏽🚀 = 👨 + skin tone + ZWJ + 🚀 = 4 codepoints
- 🏳️🌈 = flag + variation selector + ZWJ + rainbow = 4 codepoints
Counted in UTF-16, family emoji take up even more units. For 👨👩👧, it looks like 1 character, but it is 5 codepoints, 8 UTF-16 units, and 1 grapheme cluster. The family of 4, 👨👩👧👦, reaches 11 units in UTF-16. The impact on character limits changes completely depending on the granularity used for counting.
If you break the family of 3, 👨👩👧, down into its parts, this mismatch becomes visible as is.
| Component | Codepoint | Codepoints | UTF-16 units |
|---|---|---|---|
| 👨 man | U+1F468 | 1 | 2 (surrogate pair) |
| ZWJ (invisible joiner) | U+200D | 1 | 1 |
| 👩 woman | U+1F469 | 1 | 2 (surrogate pair) |
| ZWJ (invisible joiner) | U+200D | 1 | 1 |
| 👧 girl | U+1F467 | 1 | 2 (surrogate pair) |
| Total (1 character as a grapheme cluster) | - | 5 | 8 |
Skin tone modifiers and variation selectors
Gestures with a skin tone, such as 👋🏽, consist of 2 codepoints: the base emoji + a skin tone modifier. There is also a pattern where a variation selector (U+FE0F) that forces emoji display follows.
- 👋 (plain hand) = 1 codepoint
- 👋🏽 (with skin tone) = 2 codepoints
- ❤️ (red heart) = 2 codepoints (U+2764 + U+FE0F)
The reason ❤️ becomes "2 characters for 1 heart" is the variation selector. It is because an invisible control code is attached that requests the base U+2764 to be displayed as an emoji rather than as a text glyph (❤︎). Note that the similar-looking ♥ is a different character with a different codepoint, U+2665.
How the major platforms count
This is the heart of the matter. We listed the major platforms to show how many characters the same emoji is treated as in each place. It is not "a big limit number means you are safe"; your actual room is decided by the combination of "the unit used for counting" and "the limit".
| Input field | Counting unit | Used by 1 emoji | Limit and actual room |
|---|---|---|---|
| X (formerly Twitter) posts | Weighted, per grapheme cluster | 2 characters (a ZWJ sequence is also 2 if it looks like 1) | 280 characters. Effectively 140 when writing in Japanese |
| Instagram captions | 1 visible emoji is roughly 1 character | About 1 character | 2200 characters. You can write with little concern for the number of emoji |
| Instagram bio | Stricter than captions | Swells with ZWJ sequences and special emoji | 150 characters. Decorating with ZWJ types makes you run short |
| LINE message body | Effectively not a problem in any unit | About 1 character | 10000 characters. No need to worry about the number of emoji |
| LINE status message | Close to per UTF-16 unit | 2 for a simple emoji, 8 for 👨👩👧 | 500 characters. Heavy use of family emoji uses up more than you'd expect |
| Discord profile | Close to per codepoint | Roughly 1 character | Lining up emoji uses up room slowly, so the limit feels loose |
X (formerly Twitter) - weighted counting
Since 2018, X has used "weighted character counting". ASCII characters and some currency symbols count as 1 character, and everything else (including Japanese / emoji) counts as 2 characters. This mechanism is why Japanese users can effectively write only up to 140 characters rather than 280.
Emoji are handled by its own implementation that counts "1 visible emoji" as 2 characters, and even a ZWJ sequence counts as 2 characters if it looks like 1. The distinctive point is that the weighting is applied per grapheme cluster, not per surrogate pair.
Instagram - captions and bios behave differently
Instagram captions (2200 characters) are lenient, treating 1 visible emoji as roughly 1 character. On the other hand, the bio (150 characters) is stricter, and there are situations where ZWJ sequences and special emoji inflate the count. This is why using ZWJ-type emoji in a bio design makes you feel "there aren't enough characters".
LINE - lenient for messages, strict for status
With the LINE message body limit (10000 characters), you effectively don't need to worry about the number of emoji. However, the profile status message (500 characters) is counted in a way close to per UTF-16 unit, so heavy use of family emoji uses up the space more than you'd think.
Discord - graceful
Discord internally uses counting close to per codepoint, so 1 emoji is treated as roughly 1 character. This is why the bio character limit feels loose.
Our own observation - why counting differs between platforms
A platform's counting logic is decided by a tug-of-war between "whether users find it intuitive" and "the historical background of its internal implementation".
Accurate counting per grapheme cluster requires the Unicode standard library (ICU) or a dedicated library such as grapheme-splitter. The older a service is, the more its internal processing is built on UTF-16, so switching to accurate per-grapheme counting later is costly. As a result, UTF-16 units and custom weighting remain as a "realistic compromise".
From the user's point of view, "the same emoji having a different character count depending on where you are" is puzzling, but if you see it as a reflection of each platform's internal circumstances, you can see why it is that way.
Practical ways to deal with it
1. Check the count in advance for important posts
For a bio or a caption where 1 post is make-or-break, the reliable way is to actually paste it into the platform's form and look at the remaining character display. Many external character counters count per codepoint, and they may not match the actual platform's count.
2. Avoid ZWJ for decorative emoji
In emoji art and profile decoration, choosing simple emoji rather than ZWJ sequences keeps the character count down. If you make single-codepoint emoji such as 🌸 ☕ 📚 ✨ the stars, you improve character efficiency while keeping the visual flair.
3. ♥ instead of ❤️
When you really want to save 1 character, one option is to choose the text heart ♥ (U+2665 / 1 codepoint), a different character with a similar glyph, rather than ❤️ (2 codepoints, U+2764 + U+FE0F). However, on some platforms it is displayed in monochrome, so it is a trade-off with appearance.
4. Use a library if you implement it yourself
If you implement a text form in your own service, counting per grapheme cluster is the most honest approach. In JavaScript, you can use Intl.Segmenter (standard in modern browsers) or the grapheme-splitter library. A design that does not put emoji users at a disadvantage is becoming basic etiquette for modern web services.
Summary
The character count of emoji changes depending on which layer you count in: codepoints / code units / grapheme clusters. The reliable approach is to understand each platform's logic and check the remaining room on a real device for important posts. If you want to get creative with emoji art, avoiding ZWJ and making use of single-codepoint emoji improves character efficiency.
On EmoArt's explore page, we publish many combos that combine simple single emoji and decorative characters. They should help anyone who wants to create an impressive profile while keeping the character count down.
Was this article helpful?