Hex To Ascii Converter
Enter the hexadecimal value to convert to ascii text or ASCII Text to Hexadecimal.
Hexadecimal:
Hexadecimal is commonly used to represent byte values in computing (e.g., 48 65 6C 6C 6F = "Hello").
ASCII Text:
ASCII text is the human-readable form of character data stored in computers.
How to Convert Hexadecimal to ASCII Text — Formula:
Each pair of hex digits → decimal value → ASCII character. Character = String.fromCharCode(parseInt(hexPair, 16)).
Example: 48 65 6C 6C 6F → 72 101 108 108 111 → "Hello".
Technical Details:
Hex encoding of text is used in: URL encoding (%20 = space), HTML entities (A = A), email headers, and binary file analysis. Each byte = 2 hex digits (00-FF).
Hex To Ascii Converter:
Convert hexadecimal byte values to readable ASCII text. Enter hex values (e.g., 48656C6C6F) to decode.
ASCII Encoding: Text → Numbers → Binary
How to Convert Hexadecimal to ASCII Text
- Take the hexadecimal value
- Apply the conversion formula
- Get the ascii text result
ASCII Text to Hex, Binary Conversion Table
| ASCII Character | Hexadecimal | Binary |
|---|---|---|
| NUL | 00 | 00000000 |
| SOH | 01 | 00000001 |
| STX | 02 | 00000010 |
| ETX | 03 | 00000011 |
| EOT | 04 | 00000100 |
| ENQ | 05 | 00000101 |
| ACK | 06 | 00000110 |
| BEL | 07 | 00000111 |
| BS | 08 | 00001000 |
| HT | 09 | 00001001 |
| LF | 0A | 00001010 |
| VT | 0B | 00001011 |
| FF | 0C | 00001100 |
| CR | 0D | 00001101 |
| SO | 0E | 00001110 |
| SI | 0F | 00001111 |
| DLE | 10 | 00010000 |
| DC1 | 11 | 00010001 |
| DC2 | 12 | 00010010 |
| DC3 | 13 | 00010011 |
| DC4 | 14 | 00010100 |
| NAK | 15 | 00010101 |
| SYN | 16 | 00010110 |
| ETB | 17 | 00010111 |
| CAN | 18 | 00011000 |
| EM | 19 | 00011001 |
| SUB | 1A | 00011010 |
| ESC | 1B | 00011011 |
| FS | 1C | 00011100 |
| GS | 1D | 00011101 |
| RS | 1E | 00011110 |
| US | 1F | 00011111 |
| Space | 20 | 00100000 |
| ! | 21 | 00100001 |
| " | 22 | 00100010 |
| # | 23 | 00100011 |
| $ | 24 | 00100100 |
| % | 25 | 00100101 |
| & | 26 | 00100110 |
| ' | 27 | 00100111 |
| ( | 28 | 00101000 |
| ) | 29 | 00101001 |
| * | 2A | 00101010 |
| + | 2B | 00101011 |
| , | 2C | 00101100 |
| - | 2D | 00101101 |
| . | 2E | 00101110 |
| / | 2F | 00101111 |
| 0 | 30 | 00110000 |
| 1 | 31 | 00110001 |
| 2 | 32 | 00110010 |
| 3 | 33 | 00110011 |
| 4 | 34 | 00110100 |
| 5 | 35 | 00110101 |
| 6 | 36 | 00110110 |
| 7 | 37 | 00110111 |
| 8 | 38 | 00111000 |
| 9 | 39 | 00111001 |
| : | 3A | 00111010 |
| ; | 3B | 00111011 |
| < | 3C | 00111100 |
| = | 3D | 00111101 |
| > | 3E | 00111110 |
| ? | 3F | 00111111 |
| @ | 40 | 01000000 |
| A | 41 | 01000001 |
| B | 42 | 01000010 |
| C | 43 | 01000011 |
| D | 44 | 01000100 |
| E | 45 | 01000101 |
| F | 46 | 01000110 |
| G | 47 | 01000111 |
| H | 48 | 01001000 |
| I | 49 | 01001001 |
| J | 4A | 01001010 |
| K | 4B | 01001011 |
| L | 4C | 01001100 |
| M | 4D | 01001101 |
| N | 4E | 01001110 |
| O | 4F | 01001111 |
| P | 50 | 01010000 |
| Q | 51 | 01010001 |
| R | 52 | 01010010 |
| S | 53 | 01010011 |
| T | 54 | 01010100 |
| U | 55 | 01010101 |
| V | 56 | 01010110 |
| W | 57 | 01010111 |
| X | 58 | 01011000 |
| Y | 59 | 01011001 |
| Z | 5A | 01011010 |
| [ | 5B | 01011011 |
| \ | 5C | 01011100 |
| ] | 5D | 01011101 |
| ^ | 5E | 01011110 |
| _ | 5F | 01011111 |
| ` | 60 | 01100000 |
| a | 61 | 01100001 |
| b | 62 | 01100010 |
| c | 63 | 01100011 |
| d | 64 | 01100100 |
| e | 65 | 01100101 |
| f | 66 | 01100110 |
| g | 67 | 01100111 |
| h | 68 | 01101000 |
| i | 69 | 01101001 |
| j | 6A | 01101010 |
| k | 6B | 01101011 |
| l | 6C | 01101100 |
| m | 6D | 01101101 |
| n | 6E | 01101110 |
| o | 6F | 01101111 |
| p | 70 | 01110000 |
| q | 71 | 01110001 |
| r | 72 | 01110010 |
| s | 73 | 01110011 |
| t | 74 | 01110100 |
| u | 75 | 01110101 |
| v | 76 | 01110110 |
| w | 77 | 01110111 |
| x | 78 | 01111000 |
| y | 79 | 01111001 |
| z | 7A | 01111010 |
| { | 7B | 01111011 |
| | | 7C | 01111100 |
| } | 7D | 01111101 |
| ~ | 7E | 01111110 |
| DEL | 7F | 01111111 |
Frequently Asked Questions
How do I convert Hexadecimal to ASCII Text?
Each pair of hex digits → decimal value → ASCII character. Character = String.fromCharCode(parseInt(hexPair, 16)).
What is the Hexadecimal number system?
Hexadecimal is commonly used to represent byte values in computing (e.g., 48 65 6C 6C 6F = "Hello").
What is the ASCII Text number system?
ASCII text is the human-readable form of character data stored in computers.
Where is Hexadecimal to ASCII Text conversion used?
Hex encoding of text is used in: URL encoding (%20 = space), HTML entities (A = A), email headers, and binary file analysis. Each byte = 2 hex digits (00-FF).
Can I convert large hexadecimal numbers?
Yes. This converter handles numbers of any practical size. For very large numbers, the conversion is performed using arbitrary-precision arithmetic to ensure accuracy.
How to Convert Hexadecimal to ASCII (Hex Codes to Characters)
Hex-to-ASCII conversion is essential for reading hex dumps, analyzing network packets, and debugging data streams. Hex editors display file contents as pairs of hex digits, each pair representing one byte/character. Converting these hex pairs to ASCII reveals the human-readable content embedded in binary data.
- Split the hex string into pairs of 2 hex digits (each pair = one byte).
- Convert each hex pair to its decimal equivalent.
- Look up the decimal value in the ASCII table for printable characters (32-126).
- Non-printable values (0-31, 127) are control characters (shown as dots in hex editors).
- Example: 48 65 6C 6C 6F → 72, 101, 108, 108, 111 → "Hello".
Hex to ASCII: Quick Reference
Common hex values you will see in packet captures and hex dumps:
| Input | Output |
|---|---|
| 0x09 | TAB |
| 0x0A | LF |
| 0x0D | CR |
| 0x20 | Space |
| 0x30 | 0 |
| 0x41 | A |
| 0x5A | Z |
| 0x61 | a |
| 0x7A | z |
| 0x2E | . |
| 0x2F | / |
| 0x3A | : |
Solved Examples: Hex to ASCII
Question 1: Decode this hex dump fragment: 47 45 54 20 2F
Solution:
47 = 71 = G
45 = 69 = E
54 = 84 = T
20 = 32 = (space)
2F = 47 = /
Answer: The hex sequence is "GET /" — the start of an HTTP GET request.
Question 2: A Wireshark capture shows: 48 54 54 50 2F 31 2E 31. Decode it.
Solution:
48=H, 54=T, 54=T, 50=P
2F=/, 31=1, 2E=., 31=1
Answer: The hex data decodes to "HTTP/1.1" — an HTTP protocol version identifier.
Question 3: A hex editor shows: 7B 22 6B 65 79 22 3A 22 76 61 6C 22 7D. What is the text?
Solution:
7B={ , 22=" , 6B=k, 65=e, 79=y
22=" , 3A=:, 22="
76=v, 61=a, 6C=l, 22="
7D=}
Answer: The hex decodes to {"key":"val"} — a JSON object stored in the file.
Practice: Hex to ASCII
Try solving these on your own to test your understanding:
- Decode: 48 69 (Answer: "Hi")
- Decode: 4F 4B (Answer: "OK")
- Decode: 31 32 33 (Answer: "123")
- What ASCII character is 0x40? (Answer: @)
- Decode: 68 74 74 70 73 (Answer: "https")
- What character is hex 7E? (Answer: ~ tilde)
Reading Hex Dumps Like a Pro
Hex editors display data in three columns: offset (address), hex bytes, and ASCII interpretation. Non-printable bytes appear as dots in the ASCII column. To quickly find strings in binary files, scan the ASCII column. HTTP headers, file signatures (magic bytes), and embedded text all become visible. For example, PNG files start with 89 50 4E 47 — the 50 4E 47 part is "PNG" in ASCII, immediately identifying the file type.
URL Encoding: Hex in Web Development
URL encoding (percent-encoding) represents special characters as %XX where XX is the hex ASCII code. A space becomes %20 (hex 20 = decimal 32 = space), a hash becomes %23, and a forward slash becomes %2F. When debugging URLs in browser DevTools, you will see these hex codes. Decoding them to ASCII reveals the original characters: %48%65%6C%6C%6F = "Hello".
Key Takeaways
- Each pair of hex digits = one ASCII character (one byte).
- Key ranges: 30-39 (digits), 41-5A (uppercase), 61-7A (lowercase), 20 (space).
- Hex editors display non-printable characters as dots in the ASCII column.
- Network protocols (HTTP, SMTP) transmit ASCII text as hex bytes.
- URL percent-encoding uses hex: %20 = space, %2F = /, %3A = :.
- File magic bytes mix literal ASCII and non-printable hex (e.g., PNG = 89504E47).