Text to Hex Converter

Type Text and get Hex instantly — with every other encoding shown at the same time.

Edit any pane and the others update. Handles UTF-8 correctly — "é" is two bytes, which many quick converters get wrong.

How to convert Text to Hex

Encoding text to hex is a direct, byte-for-byte translation. The text is first converted to bytes with UTF-8; each byte, a value from 0 to 255, is then written as exactly two hexadecimal digits (00 to ff). So an ASCII string of N characters becomes 2N hex digits, and multi-byte UTF-8 characters expand accordingly.

Worked example

Take the text Hi!. Each character has a byte value, written as two hex digits:

  1. H = 72 = 48
  2. i = 105 = 69
  3. ! = 33 = 21

Joined together, Hi! is 48 69 21 in hex.

ASCII characters and their hex bytes

CharacterHex
space20
!21
"22
#23
$24
%25
&26
'27
(28
)29
*2a
+2b
,2c
-2d
.2e
/2f
030
131
232
333
434
535
636
737
838
939
:3a
;3b
<3c
=3d
>3e
?3f
@40
A41
B42
C43
D44
E45
F46
G47
H48
I49
J4a
K4b
L4c
M4d
N4e
O4f
P50
Q51
R52
S53
T54
U55
V56
W57
X58
Y59
Z5a
[5b
\5c
]5d
^5e
_5f
`60
a61
b62
c63
d64
e65
f66
g67
h68
i69
j6a
k6b
l6c
m6d
n6e
o6f
p70
q71
r72
s73
t74
u75
v76
w77
x78
y79
z7a
{7b
|7c
}7d
~7e

Frequently asked questions

How do I convert Hex back to Text?
Use the Hex to Text converter, or just type into the matching pane above — every pane is editable and the others update to match.
Is my data sent to a server?
No. All encoding and decoding happens in your browser, so you can safely convert tokens, keys, or anything else sensitive.
Does this handle non-ASCII text?
Yes. Text is encoded as UTF-8, so accented letters, emoji, and non-Latin scripts convert correctly — the hex pane always shows you the exact bytes.