Hex to text: how decoding works
Every two hexadecimal digits are one byte. To get text back, the tool turns the digits into bytes and then reads the bytes in an encoding, UTF-8 by default. The hex alone is not enough: the same bytes can be different characters in another encoding, so when the result looks wrong the encoding is the first thing to check. This page opens the converter in the hex to text direction, with a sample ready.
Notations it understands
All of these are read as the same five bytes. Separators and line breaks can be mixed:
| Input | Text |
|---|---|
48 65 6c 6c 6f | Hello |
48656c6c6f | Hello |
0x48, 0x65, 0x6c, 0x6c, 0x6f | Hello |
\x48\x65\x6c\x6c\x6f | Hello |
48:65:6c:6c:6f | Hello |
48-65-6c-6c-6f | Hello |
Same bytes, different encoding
| Bytes | Encoding | Text |
|---|---|---|
| c3 a1 | UTF-8 | á |
| c3 a1 | ISO 8859-1 | á |
| 48 00 69 00 | UTF-16LE | Hi |
| f0 9f 98 80 | UTF-8 | 😀 |
The second row is the classic garbled accent: UTF-8 bytes read as ISO 8859-1 show two characters, "á", instead of one. If you see "Ã" followed by a symbol, switch the encoding to UTF-8.
Errors and warnings
- A lone digit ("a" or "123"): every group must hold whole bytes, two digits each. 4a is valid, a is a byte missing its zero.
- A character that is not hexadecimal: the message names it and its position, such as the "g" in 4g.
- Bytes that are not valid text: 48 ff 69 is not valid UTF-8, so the tool shows a warning and replaces the bad byte with "�" (U+FFFD) instead of hiding it.
- An odd number of bytes in UTF-16: each character takes two bytes, so the data was cut.
How to use the decoder
- Paste the hex in the box on the left; spaces, 0x and \x are fine.
- Choose the encoding if the text looks garbled; UTF-8 is the default.
- Read the text on the right and copy it.
Frequently asked questions
How do I convert hex to a string by hand?
Split the digits in pairs, convert each pair to decimal (48 is 4 × 16 + 8 = 72) and look the number up in the ASCII table: 72 is H. For accents you need the UTF-8 rules, which is where a tool helps.
Does the hex need spaces?
No. 48656c6c6f and 48 65 6c 6c 6f give the same text; only each group must have an even number of digits.
Can I decode a hash or a key to text?
You can read the bytes, but a hash or a key is random binary, not text, so the result is meaningless symbols. A hash cannot be reversed.