Skip to the tool
Binary Translator Free tools

Hex to text converter

Paste hex bytes and read them as text. Spaces, 0x prefixes and \x escapes are all fine.

Updated · Written and checked by Murugan Vellaichamy

Waiting for input
Text
Binary
Try:

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.

CharacterBinaryPlace valuesDecimalHex

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.

Worked example: hex 4D
DigitPlace valueDigit × place value
41664
D (13)113

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

Sources and method

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.

More converters

Copied