UTF-8 to Hexadecimal Converter
Convert UTF-8 text to hexadecimal byte values, two digits per byte.
Encoders & Decoders Runs in your browser
How do you convert UTF-8 to hexadecimal?
Hex dumps are the lingua franca of encoding debugging. This tool UTF-8 encodes your text and prints each byte as two lowercase hex digits: “Hi” becomes 48 69, and the euro sign becomes e2 82 ac, three bytes. Compare the dump against what your server logs or your protocol expects, and stray BOMs, curly quotes and double-encoded characters become obvious immediately.
How to use the UTF-8 to Hex
- 1 Put the text under investigation in the input.
- 2 Read the hex pairs, one per UTF-8 byte, in order.
- 3 Look for telltale sequences: ef bb bf is a BOM, c3 a9 is é.
- 4 Copy the dump into your notes or test.
What you can use it for
- Inspecting the UTF-8 byte values of a string.
- Building hex byte literals for code or tests.
- Debugging character-encoding problems.
- Comparing how two strings encode at the byte level.
Frequently asked questions
Why might one character produce several hex values?
UTF-8 is variable-width. ASCII stays one byte, Latin accents take two (c3 a9 for é), most CJK characters three, and emoji four (f0 9f 98 80 for the grinning face).
Is the output upper or lower case?
Lowercase a–f, matching the style of xxd and most language formatters. Hex is case-insensitive, so a system expecting capitals will still parse it after a trivial transform.
How do I reverse it?
The Hex to UTF-8 page decodes the pairs back to text. It tolerates the space-separated layout this tool emits, so a straight copy-paste round-trips.
Related tools
More Encoders & Decoders
More tools like this:
All Encoders & Decoders