Free browser converter
Unicode to Hex Converter
Convert Unicode text to hex values in your browser with explicit ASCII, Unicode code point, and UTF-8 byte handling.
Interactive tool
Convert Unicode text to hex values
Ready
Choose the exact representation you need; the tool does not guess an encoding.
Detailed conversion guide
Unicode Code Points to Hex
Unicode assigns every character a code point. U+0041 is A, U+4F60 is 你, and U+1F600 is 😀. Code point mode outputs one hexadecimal scalar value per visible code point.
UTF-8 mode answers a different question: which bytes store the text. The same emoji U+1F600 is encoded as the four bytes F0 9F 98 80.
| Input | Output | Meaning |
|---|---|---|
A | U+0041 | 41 |
é | U+00E9 | C3 A9 |
你 | U+4F60 | E4 BD A0 |
😀 | U+1F600 | F0 9F 98 80 |
Unicode to Hex in JavaScript and Python
Iterate by Unicode code point, not UTF-16 code unit, when producing U+ values. For encoded bytes, run TextEncoder in JavaScript or text.encode('utf-8').hex() in Python.
// validate first, then convert
const value = Number.parseInt(token, radix);
if (!Number.isInteger(value)) throw new Error("Invalid input");Code Point Hex vs UTF-8 Hex
A code point identifies a character; UTF-8 is an encoding that may use one to four bytes. ASCII characters look identical in both views, which is why the distinction is easy to miss.
Combining sequences can contain more than one code point even when they appear as one grapheme. This tool reports the actual sequence and does not normalize the input.
Related converters
Continue converting ASCII and Unicode
Choose the converter for the direction and representation you need.