Toolstia / Unicode code point converter
Unicode code point converter
Paste text and see each character’s code point, UTF-8 bytes and UTF-16 units, plus ready-to-use JavaScript, HTML and CSS escapes. You can also turn code points back into text.
Turn code points back into text
Understood formats: U+1F600, \u00E9, \u{1F600}, A, A, 0x41 and plain hex such as 1F600. A code point is the number Unicode gives each character. UTF-8 and UTF-16 are two ways of storing it as bytes.
How it works
- Type or paste text, including emoji.
- Read the table and copy the escape format you need.
- Or paste code points in the lower box to get the text.
Code points
Every character has a number, written like U+0041 for A or U+1F600 for a grinning face emoji.
UTF-8 and UTF-16
These are ways of storing the number as bytes. UTF-8 uses one to four bytes, and UTF-16 uses one or two 16 bit units. Emoji need a surrogate pair in UTF-16.
Escapes
JavaScript uses \uXXXX, HTML uses &#xXXXX; and CSS uses \XXXX followed by a space. Plain ASCII letters are kept as they are.
Reading back
The lower box understands U+1F600, \u00E9, \u{1F600}, A, A and 0x41.
Questions
Why does an emoji count as two UTF-16 units?
Characters above U+FFFF are stored as a pair of 16 bit units called a surrogate pair.
Can it show a character name?
No, it shows the numbers and escapes only.
Is my data stored?
Everything happens in your browser, and nothing you enter is sent anywhere.