Tool 1
Hex to ASCII
Paste bytes and decode them into text instantly.
Ready for hex input.
ASCII Output
Hello
Byte Preview
Convert hexadecimal bytes into readable ASCII text, then flip directions and encode ASCII back into hex on the same page. This guide also includes byte diagrams, worked examples, reference values, and code snippets.
Tool 1
Paste bytes and decode them into text instantly.
Ready for hex input.
ASCII Output
Hello
Byte Preview
Tool 2
Encode plain ASCII text into hexadecimal bytes.
Ready for text input.
Hex Output
48 65 6C 6C 6F
Character Preview
Standard ASCII works byte by byte. Every 2-digit hex value becomes one decimal code, and that code becomes one character.
Formula
decimal = (first digit x 16) + second digit
Hex
48 65 6C 6C 6F
ASCII
Hello
Hex
47 45 54
ASCII
GET
Hex
57 6F 72 6C 64
ASCII
World
JavaScript
const bytes = hex.match(/[0-9A-Fa-f]{2}/g) || [];
const text = bytes.map((b) =>
String.fromCharCode(parseInt(b, 16))
).join(""); Python
text = bytes.fromhex("48656C6C6F").decode("ascii")
hex_bytes = " ".join(f"{ord(ch):02X}" for ch in "Hello") 20
32
Space
21
33
!
30
48
0
31
49
1
41
65
A
42
66
B
48
72
H
57
87
W
61
97
a
65
101
e
6C
108
l
6F
111
o
Split the hex string into 2-digit bytes, convert each byte to decimal, then map each decimal value to its ASCII character.
Convert each character to its ASCII decimal code, then convert each decimal code to a 2-digit hexadecimal byte.
Yes. The tool accepts continuous hex, spaced bytes, and prefixed forms like 0x48 0x65.
No. Standard ASCII only covers values from 00 to 7F. Higher bytes belong to other encodings.
Control bytes and non-printable values are shown as dots in the visual preview so the byte structure still stays readable.
Yes. The second tool on the same page converts plain ASCII text directly into hexadecimal bytes.