Text to Hex Converter
Convert text to hexadecimal. Each character is encoded as UTF-8 bytes and each byte is shown as a two-digit hex value (00βFF) β the compact form used in colour codes, hex dumps and data formats.
Worked example
The input Hi converts to 48 69. Try editing the box
above to convert your own text.
ASCII / character reference table
Each character has a numeric code that can be written in decimal, binary or hexadecimal:
| Character | Decimal | Binary (8-bit) | Hex |
|---|---|---|---|
| A | 65 | 01000001 | 41 |
| a | 97 | 01100001 | 61 |
| Z | 90 | 01011010 | 5A |
| 0 | 48 | 00110000 | 30 |
| 9 | 57 | 00111001 | 39 |
| (space) | 32 | 00100000 | 20 |
| ! | 33 | 00100001 | 21 |
| ? | 63 | 00111111 | 3F |
Frequently asked questions
- How do I convert text to hex?
- Paste your input into the box above and the result appears instantly. For example, "Hi" becomes "48 69". Everything runs in your browser β nothing is uploaded.
- Is my text uploaded to a server?
- No. The conversion runs entirely in your browser with JavaScript, so your text never leaves your device.
- Why are some characters more than two hex digits?
- Because the text is UTF-8 encoded. ASCII characters are one byte (two hex digits), but accented letters, other scripts and emoji take two to four bytes, so they show as several hex pairs.