Hex to Text Converter - Hex to ASCII & UTF-8 Decoder
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:
- Split it into bytes: 48, 65, 6c, 6c, 6f, 2c, 20, 77, 6f, 72, 6c, 64.
- Look up each byte: 48 = H, 65 = e, 6c = l, 6f = o, 2c = comma, 20 = space, 77 = w, 72 = r, 64 = d.
- 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
| Character | UTF-8 hex |
|---|---|
| (space) | 20 |
| ! | 21 |
| 0 | 30 |
| 9 | 39 |
| A | 41 |
| Z | 5a |
| a | 61 |
| z | 7a |
| ~ | 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
JWT Decoder
Decode JSON Web Tokens and inspect header, payload and signature.
Base64 Encode / Decode
Encode text to Base64 or decode Base64 strings back to plain text.
URL Encode / Decode
Percent-encode or decode URLs and query-string parameters safely.
Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text.