How to use the Text to Hex Converter
- Type or paste your text in the left box.
- The hex appears on the right as you type.
- Untick Space between bytes for one continuous hex string.
- Choose Decode to turn hex back into text.
How text becomes hex
Each character is stored as one or more bytes in UTF-8, and every byte is written as two hex digits (00 to FF). Hi โ H = 72 = 48, i = 105 = 69, so "Hi" is 48 69.
Common characters in hex
| Character | Hex | Character | Hex |
|---|---|---|---|
| space | 20 | 0โ9 | 30โ39 |
| AโZ | 41โ5A | aโz | 61โ7A |
| newline ( ) | 0A | tab | 09 |
| ! | 21 | " | 22 |
| % | 25 | & | 26 |
| รฉ | C3 A9 | โฌ | E2 82 AC |
Where hex text shows up
- URLs: percent-encoding is hex with a % sign. A space is
%20and รฉ is%C3%A9. Use the URL encoder for that. - Code: escapes like
Hiin C, Python and JavaScript strings. - Debugging: hex dumps of files and network packets show text this way, which makes hidden characters easy to spot.
Frequently asked questions
What is 'A' in hex?
41. Lowercase 'a' is 61.
What is 'hello' in hex?
68 65 6c 6c 6f.
Why are some characters more than 2 hex digits?
Characters outside ASCII take 2 to 4 bytes in UTF-8. รฉ is c3 a9, and ๐ is f0 9f 98 80.
Updated