Hex to ASCII Converter
Convert hexadecimal byte values back into readable ASCII text.
Share on Social Media:
The Hex to ASCII converter turns hexadecimal byte values back into readable text. It accepts all the common formats: space-separated pairs (48 65 6c 6c 6f), a continuous string (48656c6c6f), 0x-prefixed bytes (0x48 0x65) and colon-separated bytes (48:65:6c). Paste your data or upload a .txt file, and you'll get the decoded text (Hello, for those examples) ready to copy or download.
How it works
Every character in ASCII has a number from 0 to 127, and hexadecimal is a compact way of writing those numbers: each byte is exactly two hex digits, from 00 to FF. The converter reads two digits at a time, turns each pair into a number, and looks up the matching character.
| Hex | Decimal | Character |
|---|---|---|
| 20 | 32 | (space) |
| 30–39 | 48–57 | digits 0–9 |
| 41–5A | 65–90 | A–Z |
| 61–7A | 97–122 | a–z |
| 0A, 0D | 10, 13 | line feed, carriage return |
A handy pattern: upper- and lowercase letters differ by exactly 0x20. 41 is "A" and 61 is "a".
Where hex-encoded text turns up
- Network captures and logs. Tools like Wireshark and tcpdump show packet contents as hex; decoding a chunk reveals HTTP headers, hostnames or protocol commands.
- Debugging and memory dumps. Hex editors and debuggers display raw bytes, and decoding a string of them confirms what a program actually stored.
- Encoded identifiers. Some APIs, QR payloads, smart-card data and blockchain transaction fields store short text as hex.
- CTF puzzles and learning. Hex is one of the first encodings every security challenge and computing course uses.
When the output looks wrong
- Strange symbols or blanks: bytes below
20are control characters, and bytes above7Faren't standard ASCII. The data may be binary (an image, compressed data) rather than text. - Accented letters split into two odd characters: the source text is probably UTF-8, where characters like "é" use two bytes (
C3 A9). Each byte is decoded separately here. - "Input is not valid Hex": check for letters beyond F, stray characters, or a continuous string with an odd number of digits, meaning a digit is missing somewhere.
Hex is an encoding, not encryption. Anyone can reverse it, so never treat hex-encoded data as hidden or secure.