Converting Hexadecimal to ASCII Text

Learn how to convert hexadecimal byte values to readable ASCII text. Understand the hex-to-character mapping table and decode hex dumps step by step.

Conversion

Hex

48 65 6C 6C 6F 20 57 6F 72 6C 64

ASCII

Hello World

Detailed Explanation

Hexadecimal-to-ASCII conversion is the process of translating hex byte values into their corresponding human-readable characters. Every printable ASCII character maps to a specific hex value in the range 20 (space) to 7E (tilde). Understanding this mapping is fundamental for working with hex editors, network packet analysis, and low-level debugging.

How the conversion works:

Each pair of hexadecimal digits represents a single byte (8 bits) with a value from 0 to 255 (00 to FF in hex). The ASCII standard assigns printable characters to byte values 32 through 126. For example, the hex value 48 equals decimal 72, which corresponds to the uppercase letter H. The value 65 equals decimal 101, mapping to lowercase e.

Step-by-step example — converting 48 65 6C 6C 6F:

  1. Take the first hex pair: 48. Convert to decimal: 4 x 16 + 8 = 72. Look up ASCII 72 = H.
  2. Next pair: 65. Convert: 6 x 16 + 5 = 101. ASCII 101 = e.
  3. Next pair: 6C. Convert: 6 x 16 + 12 = 108. ASCII 108 = l.
  4. Repeat for remaining pairs: 6C = l, 6F = o.
  5. Result: Hello.

Common hex-to-ASCII values to memorize:

Hex Decimal Character
20 32 Space
30-39 48-57 0-9
41-5A 65-90 A-Z
61-7A 97-122 a-z
0A 10 Newline (LF)
0D 13 Carriage Return (CR)

Non-printable characters:

Bytes below 20 (decimal 32) are control characters and do not render as visible text. Hex editors typically display them as dots (.) in the ASCII column. Extended ASCII (values 80-FF) varies depending on the encoding used — in ISO-8859-1 these map to accented European characters, while in other codepages they represent different glyphs.

Practical tips:

When reading a hex dump, the ASCII column on the right side gives you a quick visual summary of the data. Text content (like HTTP headers, file paths, or error messages) becomes immediately recognizable, while binary data appears as scattered dots. This dual-view approach is what makes hex editors so powerful for forensic analysis and reverse engineering.

Use Case

Hex-to-ASCII conversion is essential when analyzing network packet captures, reading binary file contents in a hex editor, or decoding data in embedded systems where values are displayed in hexadecimal format.

Try It — Hex Editor

Open full tool