Text to Hex Converter
Converts text to hexadecimal byte values and turns hex back into readable text. It is useful for looking at the bytes behind a piece of text, checking encoded values while debugging, and learning how characters are stored.
How to use the Text to Hex Converter
- Choose Text to hex or Hex to text, then type or paste.
- Choose the separator, prefix and letter case for encoding.
Rules applied
- Text is converted as UTF-8 bytes (two hex digits per byte).
- When decoding, spaces, colons, commas, hyphens and
0xor\xprefixes are ignored.
Limitations
- Decoded bytes must be valid UTF-8 text. Output is limited to 4 MiB.
Worked examples
Input
Café
Result
43 61 66 c3 a9
Input
0x48 0x65 0x78 0x21
Result
Hex!
Practical uses
-
Checking the bytes behind a word
A developer converts a word with accents to hexadecimal to see which bytes it produces. Each character is shown as UTF-8 bytes, so an accented letter takes more than one pair of digits. This helps when an encoding problem appears in a file and the bytes need checking.
-
Reading hex values from a log
A support engineer copies hex values from a debugging log and switches to Hex to text. Spaces, colons and prefixes such as 0x are ignored, so the values can be pasted as they appear. The readable text shows what the log was recording.
Related tools
Privacy: this tool runs entirely in your browser. Your text is not uploaded, logged or saved, and it is never sent to analytics. Maximum input: 1 MiB.