Hex & ASCII converter
Convert text to hexadecimal bytes and hex back to readable text.
Runs on your device · nothing is uploaded
Hex and ASCII
Computers store text as numbers. ASCII gives each English letter, digit and symbol a number from 0 to 127, and hexadecimal is a compact way to write those numbers: A is 65, or 41 in hex. Packet captures, memory dumps and many protocols show data as hex bytes.
This tool uses UTF-8, which matches ASCII for plain English characters and uses 2 to 4 bytes for other characters such as é or emoji. When converting hex to text, the ASCII view shows a dot for any byte that isn't a printable character.
A worked example
The word Hello becomes 48 65 6C 6C 6F: H is 0x48, e is 0x65, l is 0x6C and o is 0x6F. Try it in the tool above.
Patterns worth remembering
| Characters | Hex |
|---|---|
| Digits 0–9 | 30–39 |
| Capitals A–Z | 41–5A |
| Small letters a–z | 61–7A (capital + 0x20) |
| Space | 20 |
| Line endings | 0D 0A (CR LF, Windows) or 0A (LF, Linux) |
| é in UTF-8 | C3 A9 (two bytes) |
Where you will use it
- Packet captures: Wireshark shows each packet as hex with the ASCII beside it, so you can spot readable text such as an HTTP request or a password sent in clear text. See our Wireshark lab.
- Web addresses: URL encoding is hex:
%20is a space. Try our URL encoder. - Troubleshooting files: invisible characters, such as a Windows line ending in a Linux script, show up clearly in hex.
- Security analysis: attackers sometimes hide commands as hex strings in scripts and logs.
Quick question
Why does my text turn into more bytes than characters?
Characters outside basic English, such as accented letters, Arabic or emoji, take 2 to 4 bytes each in UTF-8.