Home › Tools

HEX UTF-8 Hex

Show the UTF-8 bytes of any text as hex, with spaces, as one string, as 0xHH, or as C \xHH escapes.

About the UTF-8 Hex

UTF-8 stores each character as 1 to 4 bytes. This page shows those bytes in the hex spellings used in editors, C code and dumps.

How to use it

Questions

Why is one letter more than one byte?

ASCII letters are one byte. Characters such as Ж, 한 and emoji take two, three or four UTF-8 bytes.

What is the difference between 48 and \x48?

Both are the byte 0x48. \x48 is the way C and similar languages write that byte inside a string.

More tools