ASCII to Hex Converter
Convert ascii 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 ascii to hex
Each ASCII character has a code, and hex writes that code compactly in two digits. Convert ASCII text to hex character by 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
ASCII to Hex Table
Common ascii values with their hexadecimal equivalents.
| ASCII | 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 ASCII to hex?
Find each character's ASCII code, then write it as two hex digits. 'H' is 72, which is 48; 'Hi' is 48 69.
What is 'A' in hex?
A is ASCII 65, which is 41 in hex.
Does letter case matter?
Yes — 'A' is 41 and 'a' is 61; they are different codes.