About emoji to unicode converter
An emoji is one or more Unicode code points. This tool shows them, with their UTF-8 bytes and HTML codes, for use in code and web pages.
Why one emoji can have several code points
- Skin tone variants add a modifier code point.
- Family and profession emoji join several emoji with an invisible joiner (U+200D).
- Flags are made from two regional indicator letters.
Practical use
Use the HTML code (such as 😀) when you cannot type the emoji directly, and remember that string length in code may count one emoji as two or more.
A worked example
The grinning face 😀 is U+1F600. In UTF-8 it takes four bytes, F0 9F 98 80, and in HTML it is 😀 or 😀. A thumbs-up with a skin tone is two code points: the thumbs up plus a skin tone modifier.
Length surprises
In JavaScript, '😀'.length is 2 because the emoji uses two UTF-16 units. Use the spread operator or Intl.Segmenter to count what people see.
