Skip to content

Hex to Text Converter - Hex to ASCII & UTF-8 Decoder

Hex
Text (UTF-8)

Decode Hex Into Readable Text

Hex dumps, packet captures, database blobs and escaped strings in source code all show text as hexadecimal bytes. Paste the hex into the Hex to Text tab and the decoded UTF-8 text appears straight away. The parser ignores spaces, commas, colons and dashes, and strips 0x and \x prefixes, so Wireshark's "Copy as Hex Stream", xxd -p output and C-style \x strings work as pasted. From a full hex dump, copy only the byte columns, not the offsets or the ASCII sidebar. The other tabs convert text to hex and convert text to and from binary.

How Hex Becomes Text

Each pair of hex digits is one byte with a value from 0 to 255. Text encodings map those bytes to characters. In ASCII and UTF-8, hex 48 is the letter H, 65 is e, and 20 is a space. Characters outside basic English use more than one byte in UTF-8: é is c3 a9 and the euro sign is e2 82 ac.

Worked Example

Take the hex string 48 65 6c 6c 6f 2c 20 77 6f 72 6c 64:

  1. Split it into bytes: 48, 65, 6c, 6c, 6f, 2c, 20, 77, 6f, 72, 6c, 64.
  2. Look up each byte: 48 = H, 65 = e, 6c = l, 6f = o, 2c = comma, 20 = space, 77 = w, 72 = r, 64 = d.
  3. Join them: Hello, world.

Pasting \x48\x65\x6c\x6c\x6f or 0x48 0x65 0x6c 0x6c 0x6f gives the same result, Hello.

Character to Hex Reference

CharacterUTF-8 hex
(space)20
!21
030
939
A41
Z5a
a61
z7a
~7e
éc3 a9
€e2 82 ac
😀f0 9f 98 80

Digits 0 to 9 are bytes 30 to 39, capital letters start at 41 and lower case letters start at 61. Upper and lower case are exactly hex 20 (decimal 32) apart, so flipping a single bit changes the case of an ASCII letter: 41 is A, 61 is a.

When the Output Looks Wrong

If the decoded text contains � symbols or random accented letters, the bytes are probably not UTF-8 text. Hex taken from a file header, a hash or an encrypted value is binary data and has no readable form. If only a few characters look odd, the source may use a legacy encoding such as Windows-1252, where byte e9 alone means é. Also check that you copied whole bytes: losing one digit shifts every byte after it.

Text to Hex and Binary

The Text to Hex tab encodes your text as UTF-8 and lets you choose the output style: spaced bytes, one continuous string, 0x prefixes for code, or \x escapes for C, Python and shell strings. Text to Binary shows each byte as eight bits. If your hex is a number rather than text, use hex to decimal, and for Base64 data use the Base64 decoder.

Related Tools

Frequently Asked Questions

What hex formats can I paste?
Plain pairs (48656c6c6f), space or colon separated bytes (48 65 6c or 48:65:6c), 0x-prefixed bytes (0x48 0x65) and C or Python style escapes (\x48\x65) all work, and you can mix them. Upper and lower case are both fine.
Is hex to text the same as hex to ASCII?
For bytes 00 to 7F, yes: UTF-8 and ASCII agree on those values. This tool decodes as UTF-8, so it also handles accented letters, other scripts and emoji, which take two to four bytes each in UTF-8.
Why do I see � characters in the output?
The replacement character � appears when the bytes are not valid UTF-8. That usually means the hex is binary data (an image, compressed data or an encrypted value) rather than text, or that it was encoded in a legacy character set such as Windows-1252.
Why does it say my hex has an odd number of digits?
Each byte is exactly two hex digits, so the total must be even. A missing leading zero is the usual cause: write 0A, not A. Check for a character lost while copying.
Can I convert text to binary here too?
Yes. The Text to Binary tab shows each UTF-8 byte as eight bits separated by spaces, and Binary to Text reverses it. To convert a number rather than text into binary, use the decimal to binary converter.