About this tool: UTF-8 ↔ Hex Converter
Encode UTF-8 text as hexadecimal bytes or decode a valid UTF-8 byte sequence.
UTF-8 encodes a character as one to four bytes, so an emoji produces several hexadecimal pairs. Whitespace between byte pairs is ignored when decoding. Invalid hexadecimal or invalid UTF-8 is rejected instead of silently replacing characters.
How the calculation works
Worked example
| Input | A😀 |
| Mode | Encode |
41 f0 9f 98 80
Questions and answers
What does this tool do?
Encode UTF-8 text as hexadecimal bytes or decode a valid UTF-8 byte sequence. UTF-8 encodes a character as one to four bytes, so an emoji produces several hexadecimal pairs. Whitespace between byte pairs is ignored when decoding. Invalid hexadecimal or invalid UTF-8 is rejected instead of silently replacing characters.
What affects precision and input format?
Text operations depend on the selected format. Check the supported characters and syntax in the description and example.
Where are the calculations performed?
The calculation runs in your browser. You can use the tool without installing software.
Comments (0)
Share your thoughts — please be polite and stay on topic.
Log in to comment