Text ↔ hexadecimal
Encode UTF-8 text as hex bytes, or decode it.
About Text ↔ hexadecimal
Inspect the byte representation of text by converting it to hexadecimal. UTF-8 can use more than one byte per character, so one visible character is not necessarily one pair of hex digits.
Steps, example, and limitations
How to use it
- Choose text to hex or hex to text.
- Enter the source text or hexadecimal byte sequence.
- Run the conversion and copy the result.
Example
Input
Hi
Result
48 69
Things to know
- Invalid hex or invalid UTF-8 is rejected rather than silently replaced.
- Use the number-base converter for integers; this tool converts text bytes rather than interpreting the whole input as a number.