Skip to content
Encoding Runs offline

Unicode Converter

Convert between characters, code points and escape sequences.

Direction

Input

0 chars

Output

0 chars
Ctrl

Questions

Why do some emoji produce two \u escapes?

JavaScript strings are sequences of UTF-16 code units. Characters above U+FFFF, which includes most emoji, are stored as a surrogate pair of two code units. The code point format (U+XXXX) shows the single true code point instead, which is usually what you want when looking a character up.

What is the difference between a code point and a UTF-8 byte?

A code point is the abstract number assigned to a character, such as U+00E9 for é. UTF-8 is one way of serialising that number into bytes; é becomes the two bytes C3 A9. Code points identify characters, bytes are what travels over the wire.