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:

CharacterDecimalBinary (8-bit)Hex
A650100000141
a970110000161
Z90010110105A
0480011000030
9570011100139
(space)320010000020
!330010000121
?63001111113F

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.

Related text & encoding conversions

See all string conversions β†’