Hex To Text Converter
Enter the hexadecimal value to convert to text or Text to Hexadecimal.
About Hex To Text Converter
Our free online hex to text converter tool provides instant and accurate conversion between hexadecimal and text formats.
ASCII Encoding: Text → Numbers → Binary
How to Convert Hex to Text
- Get hex byte from the hex string
- Convert hex byte to decimal
- Get character from ASCII table using decimal code
- Continue with next hex byte
Example
Convert "48 65 6C 6C 6F" hex to text:
48₁₆ = 4×16+8 = 72₁₀ => "H"
65₁₆ = 6×16+5 = 101₁₀ => "e"
6C₁₆ = 6×16+12 = 108₁₀ => "l"
6C₁₆ = 108₁₀ => "l"
6F₁₆ = 6×16+15 = 111₁₀ => "o"
Result: "Hello"
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 |
How to Convert Hex to Text (Hexadecimal String to Readable Text)
Hex-to-text conversion is used when reading hex dumps, decoding URL-encoded strings, interpreting Wireshark packet payloads, and examining binary file contents. Each pair of hex digits represents one text character. This is the most practical form of hex-to-ASCII conversion, applied to entire strings and documents.
- Remove any spaces, colons, or delimiters between hex pairs.
- Split the hex string into 2-character pairs (each pair = 1 byte).
- Convert each hex pair to its decimal value.
- Map each decimal value to its character (printable: 32-126, control: 0-31).
- Assemble all characters into the final text string.
Hex to Text: Common Patterns
Hex sequences you will frequently encounter in debugging and analysis:
| Input | Output |
|---|---|
| 48 54 54 50 | HTTP |
| 47 45 54 | GET |
| 50 4F 53 54 | POST |
| 4A 53 4F 4E | JSON |
| 74 72 75 65 | true |
| 66 61 6C 73 65 | false |
| 6E 75 6C 6C | null |
| 0D 0A 0D 0A | \r\n\r\n |
| 3C 68 74 6D 6C 3E | <html> |
| 7B 7D | {} |
Solved Examples: Hex to Text
Question 1: A log file shows hex: 45 72 72 6F 72 3A 20 34 30 34. Decode it.
Solution:
45=E, 72=r, 72=r, 6F=o, 72=r
3A=:, 20=(space)
34=4, 30=0, 34=4
Answer: The hex decodes to "Error: 404" — a common HTTP error message in a log.
Question 2: Decode network payload: 7B 22 73 74 61 74 75 73 22 3A 32 30 30 7D
Solution:
7B={, 22=", 73=s, 74=t, 61=a, 74=t, 75=u, 73=s, 22="
3A=:, 32=2, 30=0, 30=0
7D=}
Answer: Decoded: {"status":200} — a JSON API response payload.
Question 3: A cookie value in DevTools is hex-encoded: 73 65 73 73 69 6F 6E 3D 61 62 63 31 32 33
Solution:
73=s, 65=e, 73=s, 73=s, 69=i, 6F=o, 6E=n
3D==
61=a, 62=b, 63=c, 31=1, 32=2, 33=3
Answer: The cookie value is "session=abc123" — a session identifier.
Practice: Hex to Text
Try solving these on your own to test your understanding:
- Decode: 48 65 6C 6C 6F (Answer: "Hello")
- Decode: 57 6F 72 6C 64 (Answer: "World")
- Decode: 4C 6F 67 69 6E (Answer: "Login")
- Decode: 70 61 73 73 (Answer: "pass")
- What text is 30 2E 30 2E 30 2E 30? (Answer: "0.0.0.0")
- Decode: 55 52 4C (Answer: "URL")
Analyzing Binary Files with Hex Dump
The `hexdump` or `xxd` command shows file contents as hex+text. The first bytes of files reveal their type: PDF starts with 25 50 44 46 (%PDF), ZIP with 50 4B (PK), ELF binaries with 7F 45 4C 46 (.ELF). Converting these hex bytes to text is how the `file` command identifies file types. When troubleshooting corrupt files, hex-to-text conversion reveals where readable content starts and where binary data takes over.
Hex in Security: Reading Payloads and Shellcode
Security tools like Burp Suite and Wireshark display request/response payloads in hex. Cross-site scripting (XSS) payloads may be hex-encoded to bypass filters: 3C 73 63 72 69 70 74 3E = <script>. Web Application Firewalls (WAFs) must decode hex to detect malicious patterns. Understanding hex-to-text conversion is essential for security analysts reading captured traffic and identifying encoded attack payloads.
Key Takeaways
- Each 2-hex-digit pair = one text character.
- Printable ASCII range: 0x20 (space) to 0x7E (tilde).
- Protocol keywords in hex: GET=474554, POST=504F5354, HTTP=48545450.
- JSON delimiters: {=7B, }=7D, "=22, :=3A.
- File signatures (magic bytes) are identified by converting hex to text.
- Security analysis requires decoding hex payloads to detect embedded text.