Hex to Text / ASCII to Hex

Convert hexadecimal bytes to readable text and back. Handles ASCII and multi-byte UTF-8, and accepts spaces, commas, 0x and \x prefixes.

[01]

Flexible Input

Paste hex with spaces, commas, 0x or \x prefixes, or as one continuous string. The parser normalises it for you.

[02]

UTF-8 Aware

Multi-byte characters such as CJK text and emoji decode correctly, and invalid byte sequences are flagged instead of silently dropped.

[03]

Two-Way & Private

Convert hex to text or text to hex with your choice of delimiter and case. Everything runs locally in your browser.

// HEX TO TEXT TECHNICAL INFO

How It Works:

Each pair of hexadecimal digits is one byte (0-255). The bytes are decoded as UTF-8: values below 0x80 are plain ASCII characters, while lead bytes such as 0xE4 or 0xF0 start multi-byte sequences for characters outside ASCII.

Example:

48 65 6C 6C 6F → Hello

Why Convert Hex to Text:

  • >Read hex dumps from debuggers, packet captures and logs
  • >Decode hex-encoded strings in URLs, APIs and database exports
  • >Inspect the exact bytes behind a string, including non-ASCII characters
  • >Prepare hex literals for source code, such as \x escapes

>> frequently asked questions

Q: What is a hex to text converter?

A: It turns hexadecimal byte values into the characters they represent. For example, 48 65 6C 6C 6F is the five bytes of the word "Hello". The reverse direction turns text into its hex bytes.

Q: How do I convert hex to text?

A: Choose HEX → TEXT, paste your hex into the input box and the decoded text appears instantly. Spaces, commas and 0x or \x prefixes are all accepted, so you can paste straight from a hex editor or a log.

Q: How do I convert text to hex?

A: Switch to TEXT → HEX, type or paste your text, pick a delimiter (space, none, comma, 0x or \x) and optionally upper-case output. The tool encodes the text as UTF-8 and shows each byte as two hex digits.

Q: Why do I get an error about an odd number of digits?

A: Every byte is two hex digits, so a continuous string must have an even length. A missing or extra digit usually means a character was cut off when copying. Inputs separated by spaces are padded automatically, so "4 8 65" is read as 04 08 65.

Q: Does it support Unicode and emoji?

A: Yes. Text is encoded and decoded as UTF-8, so a character like 你 becomes E4 BD A0 and an emoji such as 😀 becomes F0 9F 98 80. Bytes that are not valid UTF-8 are decoded with replacement characters and a warning is shown.

Q: What is the difference between hex, ASCII and UTF-8?

A: ASCII defines 128 characters, each fitting in one byte (00-7F). UTF-8 is a superset: it keeps ASCII unchanged and uses 2-4 bytes for everything else. Hex is just a human-readable way of writing those byte values.

Q: Is my data sent to a server?

A: No. The conversion happens entirely in your browser with JavaScript, so nothing you paste is uploaded or stored.

// ASCII to hex reference table

Printable ASCII characters and their hexadecimal and decimal byte values. Every character below is a single byte in UTF-8, so the hex you see here is exactly what the converter produces for plain English text.

CharHexDecCharHexDecCharHexDec
space2032!2133"2234
#2335$2436%2537
&2638'2739(2840
)2941*2A42+2B43
,2C44-2D45.2E46
/2F470304813149
232503335143452
535536365473755
8385693957:3A58
;3B59<3C60=3D61
>3E62?3F63@4064
A4165B4266C4367
D4468E4569F4670
G4771H4872I4973
J4A74K4B75L4C76
M4D77N4E78O4F79
P5080Q5181R5282
S5383T5484U5585
V5686W5787X5888
Y5989Z5A90[5B91
\5C92]5D93^5E94
_5F95`6096a6197
b6298c6399d64100
e65101f66102g67103
h68104i69105j6A106
k6B107l6C108m6D109
n6E110o6F111p70112
q71113r72114s73115
t74116u75117v76118
w77119x78120y79121
z7A122{7B123|7C124
}7D125~7E126

// Hex to text examples

A few quick conversions you can paste into the tool above to see how it behaves.

HexTextNote
48 65 6C 6C 6FHelloPlain ASCII, one byte per character
0x48 0x69Hi0x prefixes are ignored
\x4f\x4bOKEscape-style \x sequences work too
E4 BD A0 E5 A5 BD你好Multi-byte UTF-8: three bytes per CJK character
F0 9F 98 80😀Four bytes for one emoji

// OTHER LANGUAGES