This text-to-hexadecimal converter lets you convert strings to hexadecimal, helping you understand how computers store text.
You can think of this tool as an extension of our more basic ASCII converter, allowing you to convert not only basic ASCII characters or letters of the alphabet to hex values, but also more complex Unicode characters.
We have even more tools in our arsenal, such as our hex-to-text conversion tool, which allows you to convert in the opposite direction.
How to use this text-to-hexadecimal converter — Convert string to hex
- Type or paste text in the “Enter the text...” box. You can not only convert the alphabet to hexadecimal, but also any character you want.
- Pick a character encoding:
- UTF‑8 (recommended, as it’s the most common encoding today; supports emojis and all languages);
- UTF‑16 (adds a byte-order mark (BOM) at the start);
- UTF‑16 LE/BE (no BOM; fixed byte order); or
- Windows-1252 (supports ASCII and extended ASCII).
- Define your separator.
- Read the text-to-hex conversion under “Hex conversion”.
FAQs
How do I convert text to hexadecimal?
To manually perform a text-to-hex conversion:
- Choose an encoding. Let’s use UTF-8, the most widely used encoding.
- Encode each character to UTF-8 byte(s) (e.g., ‘A’ → [65], ‘ñ’ → [195, 177]).
- Convert each byte to hexadecimal (e.g., 65 → 41)
- If there are multiple bytes, write their hexadecimal values in order (195 177 → C3 B1).
How do I express the word ‘Hello’ in hex representation?
We express the word ‘Hello’ in hex code as 48 65 6C 6C 6F. Such a hex code assumes you are using the UTF-8 Unicode encoding, the most common one across the web. For other encodings, use our text-to-hexadecimal converter.
What is the hex value of the alphabet letters?
You can use this table to convert the alphabet to hexadecimal (keep in mind this conversion is case sensitive):
Letter | Hex representation |
|---|---|
A | 41 |
B | 42 |
C | 43 |
D | 44 |
E | 45 |
F | 46 |
G | 47 |
H | 48 |
I | 49 |
J | 4A |
K | 4B |
L | 4C |
M | 4D |
N | 4E |
O | 4F |
P | 50 |
Q | 51 |
R | 52 |
S | 53 |
T | 54 |
U | 55 |
V | 56 |
W | 57 |
X | 58 |
Y | 59 |
Z | 5A |
a | 61 |
b | 62 |
c | 63 |
d | 64 |
e | 65 |
f | 66 |
g | 67 |
h | 68 |
i | 69 |
j | 6A |
k | 6B |
l | 6C |
m | 6D |
n | 6E |
o | 6F |
p | 70 |
q | 71 |
r | 72 |
s | 73 |
t | 74 |
u | 75 |
v | 76 |
w | 77 |
x | 78 |
y | 79 |
z | 7A |
Is hexadecimal a base-16 system?
Yes, hexadecimal is a base-16 numeral system, using sixteen unique symbols: the ten digits from 0 to 9 and the six letters from A to F.