Why emoji and accented letters change a character count
An emoji or an accented letter can count as one, two or more characters depending on what is being counted. To you a thumbs-up emoji is one character. To a computer it can be one, two or more depending on what is being counted. This is why the same text gets different totals in different places.
Three ways to count
- Code points: each Unicode symbol counts once. This is what our Character Counter reports.
- UTF-16 units: used inside JavaScript and many systems. Many emoji take two units.
- Bytes: how much storage the text needs. Accents and emoji take more than one byte.
Examples of emoji and accent counts
| Text | Characters counted |
|---|---|
| A thumbs-up emoji | 1 |
| The letter é as one symbol | 1 |
| The letter e followed by a combining accent | 2 |
| A national flag emoji (two symbols joined) | 2 |
| A family emoji (three people joined by two joiners) | 5 |
The two forms of é look identical on screen but are stored differently. Flags and family emoji are built from several symbols that your screen displays as one picture.
What that means for limits
A platform that counts in code points may allow more emoji than one that counts in UTF-16 units. Some systems count certain emoji as two characters even when you see one. If a limit is tight, test on the real platform.
Text messages
Adding even one emoji or a character outside the standard text-message set can switch the whole message to a different encoding, which makes each segment hold fewer characters than 160.
Character Counter: Paste text with emoji or accents to see the character count and compare it with the limit you need.