How to use the text to hex converter
- Choose the direction with the buttons above the result.
- Type or paste your text in the top box.
- Copy the converted result.
What is hexadecimal?
Hexadecimal, or hex, is base 16. It uses the digits 0 to 9 and then the letters a to f for the values 10 to 15. One byte, eight binary digits, fits exactly into two hex digits, which makes hex a compact way to write binary data: 01001000 in binary is 48 in hex.
| Character | Hex | Character | Hex | |
|---|---|---|---|---|
| A | 41 | a | 61 | |
| Z | 5a | z | 7a | |
| 0 | 30 | 9 | 39 | |
| space | 20 | line break | 0a |
Where hex is used
Color codes on the web (#ff8800), memory addresses and byte dumps in programming, MAC addresses, hashes such as MD5 and SHA-256, and escaped characters in URLs (%20 is hex 20, a space).
When decoding, this tool ignores spaces, commas, colons and 0x prefixes, so 48 65 6c 6c 6f, 48656c6c6f and 0x48, 0x65, 0x6c, 0x6c, 0x6f all give Hello.