About Unicode Code Point Converter
See the Unicode code points that make up a piece of text, written in the standard U+0041 notation. Each code point is listed once, so 😀 is U+1F600 rather than the two surrogate halves a JavaScript string would show, and a composed emoji or an accent typed as a separate mark is split into the parts it is really made of.
Switch the direction to build text from a list of code points. U+0041, 0x41, \u{41}, \u0041 and bare hex all work, separated by spaces, commas or new lines.
How it works
- The text is read one code point at a time, so a character outside the Basic Multilingual Plane, such as most emoji, gives a single value.
- Each code point is written in hexadecimal after U+, with at least four digits as the Unicode Standard does.
- In reverse, prefixes, braces and separators are stripped, and each value is checked: it must be at most 10FFFF and must not be a lone surrogate (D800 to DFFF).
Questions
Why does one emoji give several code points?
Many emoji are sequences: a base emoji plus a skin tone modifier, or several emoji joined by U+200D, the zero-width joiner. They show as one picture but are stored as several code points, and this tool lists every one.
Why are surrogates such as U+D83D refused?
Values from D800 to DFFF are reserved for UTF-16, where two of them together encode one astral character. On their own they are not characters. Use the single code point instead, such as U+1F600.
Is a code point the same as a UTF-8 byte?
No. A code point is the number of a character; UTF-8 stores it in one to four bytes. The Text to Hex converter shows those bytes.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.