Hex to text converter
Paste hex bytes and read them as text. Spaces, 0x prefixes and \x escapes are all fine.
Byte by byte
Every byte of your input, with the place values that add up to it. Hover a row to find that byte in the output.
| Character | Binary | Place values | Decimal | Hex |
|---|
How to convert hex to text by hand
Hex writes each byte as two digits from 0 to F, where A to F stand for 10 to 15. Split the hex into pairs, turn each pair into a number (first digit × 16, plus the second digit), and look the number up in the ASCII table.
So 48 65 6C 6C 6F is 72, 101, 108, 108, 111, which spells “Hello”.
Characters outside basic English take more than one byte in UTF-8. C3 A9 is a single “é”, and E2 82 AC is the euro sign. Read one of those pairs on its own and you get a broken character, which is why the converter keeps them together and tells you when one is cut short.
| Digit | Place value | Digit × place value |
|---|---|---|
| 4 | 16 | 64 |
| D (13) | 1 | 13 |
64 + 13 = 77 = M
Hex to string in code
In Python, bytes.fromhex("48656c6c6f").decode("utf-8") gives "Hello". bytes.fromhex accepts spaces between the pairs but not 0x prefixes, so strip those first. The converter here accepts both.
On our other sites
- base64decode.tools: Working with Base64 rather than hex? It encodes and decodes Base64 text and files.
Sources and method
- RFC 20 (STD 80), ASCII format for network interchange, section 4: the 128 ASCII codes and control-character names. Checked 2026-11-25.
- RFC 3629 (STD 63), UTF-8, a transformation format of ISO 10646, section 4: which byte sequences are valid UTF-8. Checked 2026-11-25.
- WHATWG Encoding Standard (Living Standard, updated 20 November 2026), section 9 (single-byte encodings, used for Windows-1252) and section 14 (UTF-16LE and UTF-16BE decoders). Checked 2026-11-25.
Hex can be pasted as spaced pairs, one unbroken run (split into pairs), 0x prefixes or \x escapes. Each pair is one byte, and the bytes are decoded with the same rules as the binary translator.
Questions
Is “hex to string” the same as hex to text?
Yes. A string is what programmers call a piece of text, so both mean decoding hex bytes into readable characters.
What if my hex has no spaces?
That’s fine. An unbroken run like 48656C6C6F is split into pairs. It must have an even number of digits, since every byte is two.
Why do I see é instead of é?
The UTF-8 bytes C3 A9 were read as a single-byte encoding. Keep the encoding on UTF-8 unless the hex came from an older Windows or Latin-1 system.
Can I convert text to hex here too?
Yes. Switch to Text → Hex, or use the text to hex converter.