Text to Hex Converter
Convert text to hexadecimal instantly — type on the left and the result appears on the right. Everything runs in your browser, nothing is uploaded.
How to convert text to hex
Every character has an ASCII code, and that code in base 16 is its hex byte. Converting text to hex gives two hex digits per character.
Method: one byte per character, using the ASCII code that maps numbers to characters.
- Take each characterWork through the text one character at a time.
- Find its ASCII codeLook up the character's code — for example A is 65.
- Write the code as hexWrite each ASCII code as two hexadecimal digits.
Examples Hi = 48 69A = 41
Text to Hex Table
Common text values with their hexadecimal equivalents.
| Text | Hexadecimal |
|---|---|
| A | 41 |
| B | 42 |
| C | 43 |
| a | 61 |
| b | 62 |
| c | 63 |
| 0 | 30 |
| 1 | 31 |
| 9 | 39 |
| ! | 21 |
| ? | 3F |
| @ | 40 |
Related conversions
Frequently asked questions
How do you convert text to hex?
Take each character, find its ASCII code, and write that code as two hex digits. 'H' is 72, which is 48 in hex.
What is 'A' in hex?
The letter A is 41 in hex (ASCII 65).
Why two hex digits per character?
One byte (0–255) always fits in exactly two hex digits, from 00 to FF.