Skip to content
Dual Tool Page Hex to ASCII ASCII to Hex

Hex to ASCII Converter Decode and Encode Text Bytes

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

Hex to ASCII

Paste bytes and decode them into text instantly.

Ready for hex input.

ASCII Output

Hello

Byte Preview

Tool 2

ASCII to Hex

Encode plain ASCII text into hexadecimal bytes.

Ready for text input.

Hex Output

48 65 6C 6C 6F

Character Preview

Visual Guide

One byte, one character

Standard ASCII works byte by byte. Every 2-digit hex value becomes one decimal code, and that code becomes one character.

48
->
72
->
H
65
->
101
->
e
6C
->
108
->
l

Formula

decimal = (first digit x 16) + second digit

48(4 x 16) + 8 = 72
41(4 x 16) + 1 = 65
20(2 x 16) + 0 = 32
Worked Examples

Real strings decoded byte by byte

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")
Reference

Useful ASCII hex values

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

More Tools

Continue with related converters

FAQ

Common questions about hex and ASCII

How to convert hex to ASCII +

Split the hex string into 2-digit bytes, convert each byte to decimal, then map each decimal value to its ASCII character.

How to convert ASCII to hex +

Convert each character to its ASCII decimal code, then convert each decimal code to a 2-digit hexadecimal byte.

Can I decode hex with spaces or 0x prefixes +

Yes. The tool accepts continuous hex, spaced bytes, and prefixed forms like 0x48 0x65.

Do all bytes decode to standard ASCII +

No. Standard ASCII only covers values from 00 to 7F. Higher bytes belong to other encodings.

Why do some results show dots +

Control bytes and non-printable values are shown as dots in the visual preview so the byte structure still stays readable.

Can I encode full words to hex here too +

Yes. The second tool on the same page converts plain ASCII text directly into hexadecimal bytes.