Text to Hex Converter
A text to hex converter encodes each character as UTF-8 and prints every byte as two hexadecimal digits.
Example: Hello = 48 65 6C 6C 6F
This tool uses UTF-8 encoding. Letters and digits in English use one byte each; other characters can use two, three, or four bytes.
Last updated . Full ASCII table (decimal, hexadecimal, octal, and binary).
TextHexadecimal
48 65 6C 6C 6F
Convert Hello to hex, step by step
- Take one character. H is Unicode code point U+0048, which is ASCII 72.
- Write the byte in hex. 72 in hexadecimal is 48. The same byte in binary is 01001000.
- Repeat and join. e is 65, l is 6C, l is 6C, o is 6F. Hello is 48 65 6C 6C 6F.
Text to hexadecimal examples
| Text | Hex bytes | Notes |
|---|---|---|
| A | 41 | One ASCII byte |
| Hi | 48 69 | H then i |
| Hello | 48 65 6C 6C 6F | Five bytes |
| 20 | Space | |
| é | C3 A9 | UTF-8 uses two bytes |
Frequently Asked Questions
How do I convert text to hex?
Encode the text as UTF-8, then write each byte as two hex digits. English letters match their ASCII codes, so A is 41.
What is Hello in hexadecimal?
Hello is 48 65 6C 6C 6F. The spaces between pairs are separators; the bytes are 0x48, 0x65, 0x6C, 0x6C, and 0x6F.
Why is é two hex bytes?
é is not in ASCII. UTF-8 encodes U+00E9 as the bytes C3 A9.
Is this the same as converting the number Hello?
No. Text to hex encodes characters. A hex integer converter turns a number such as FF into bits, and it cannot accept the letters in Hello except A–F.