Text to Hex Converter
Type any text and this text to hex converter shows its bytes in hexadecimal: Hi is 48 69. English letters, digits and symbols take one byte each; accented letters and emoji take 2 to 4.
Text to hex
Example: Hi in hex
- 01
Find each code
H is 72 and i is 105 in the ASCII table.
- 02
Divide by 16
72 is 4 × 16 + 8, so H is 48. 105 is 6 × 16 + 9, so i is 69.
- 03
Write the bytes
Hi in hex is
48 69.
Output options
Pick the layout your code or document needs.
- Spaced puts a space between bytes:
48 69. - No spaces writes one run:
4869. - Commas separates bytes with a comma and a space, handy in code:
48, 69. - 0x prefix marks each byte as hex:
0x48 0x69. - ABC or abc sets the case of the letters A to F.
Hex codes for lowercase letters
| Character | Binary | Decimal | Hex |
|---|---|---|---|
| a | 01100001 | 97 | 61 |
| b | 01100010 | 98 | 62 |
| c | 01100011 | 99 | 63 |
| d | 01100100 | 100 | 64 |
| e | 01100101 | 101 | 65 |
| f | 01100110 | 102 | 66 |
| g | 01100111 | 103 | 67 |
| h | 01101000 | 104 | 68 |
| i | 01101001 | 105 | 69 |
| j | 01101010 | 106 | 6A |
| k | 01101011 | 107 | 6B |
| l | 01101100 | 108 | 6C |
| m | 01101101 | 109 | 6D |
| n | 01101110 | 110 | 6E |
| o | 01101111 | 111 | 6F |
| p | 01110000 | 112 | 70 |
| q | 01110001 | 113 | 71 |
| r | 01110010 | 114 | 72 |
| s | 01110011 | 115 | 73 |
| t | 01110100 | 116 | 74 |
| u | 01110101 | 117 | 75 |
| v | 01110110 | 118 | 76 |
| w | 01110111 | 119 | 77 |
| x | 01111000 | 120 | 78 |
| y | 01111001 | 121 | 79 |
| z | 01111010 | 122 | 7A |
Hex and UTF-8
The converter encodes text as UTF-8, the encoding nearly every website uses. English letters keep their ASCII codes, so A is always 41. An accented letter like é becomes 2 bytes, C3 A9, and most emoji become 4.
Frequently asked questions
How do you convert text to hex?
Find each character's code and write it in base 16. A is 65, which is 4 × 16 + 1, so A is 41 in hex. The converter does this for every character, using UTF-8 for anything outside ASCII.
What is Hello in hex?
48 65 6C 6C 6F. Each letter is one byte, written as two hex digits. Paste it into the hex to text converter to read it back.
Why do some characters take more than one byte?
One byte holds 256 values: enough for English, not for every language or emoji. UTF-8 uses 2, 3 or 4 bytes for those, so é is C3 A9 and 😀 is F0 9F 98 80.