Quick answer: To convert text to hex, type your text. Each character is encoded as UTF-8 and each byte is shown as two hexadecimal digits. For example, "Hi" becomes 48 69.
How it works
Hexadecimal (base 16) is a compact way to write bytes. One byte is two hex digits from 00 to FF. The letter A is 65 in decimal, which is 41 in hex.
| Character | Hex |
|---|---|
| A | 41 |
| a | 61 |
| 0 | 30 |
| space | 20 |
Use the prefix option for code: 0x48 0x69 for C and JavaScript style or \x48\x69 for escaped strings.
Your files stay private. This tool runs entirely in your browser. Nothing you choose or type is uploaded to a server. See our privacy policy.
Frequently asked questions
What is the hex of "Hello"?
48 65 6C 6C 6F.
Does it handle Unicode?
Yes. Characters outside ASCII use several UTF-8 bytes.
How do I convert hex to text?
Use the hex to text converter.
Can I get uppercase hex?
Yes, tick the uppercase option.