Skip to content
BinaryTo

Text to Hex Converter

Type any text and this text to hex converter shows its bytes in hexadecimal: Hi is 48 69. English letters, digits and symbols take one byte each; accented letters and emoji take 2 to 4.

Text to hex

Format
Letters

Example: Hi in hex

  1. 01

    Find each code

    H is 72 and i is 105 in the ASCII table.

  2. 02

    Divide by 16

    72 is 4 × 16 + 8, so H is 48. 105 is 6 × 16 + 9, so i is 69.

  3. 03

    Write the bytes

    Hi in hex is 48 69.

Output options

Pick the layout your code or document needs.

  • Spaced puts a space between bytes: 48 69.
  • No spaces writes one run: 4869.
  • Commas separates bytes with a comma and a space, handy in code: 48, 69.
  • 0x prefix marks each byte as hex: 0x48 0x69.
  • ABC or abc sets the case of the letters A to F.

Hex codes for lowercase letters

Hex codes for lowercase letters
CharacterBinaryDecimalHex
a011000019761
b011000109862
c011000119963
d0110010010064
e0110010110165
f0110011010266
g0110011110367
h0110100010468
i0110100110569
j011010101066A
k011010111076B
l011011001086C
m011011011096D
n011011101106E
o011011111116F
p0111000011270
q0111000111371
r0111001011472
s0111001111573
t0111010011674
u0111010111775
v0111011011876
w0111011111977
x0111100012078
y0111100112179
z011110101227A

Hex and UTF-8

The converter encodes text as UTF-8, the encoding nearly every website uses. English letters keep their ASCII codes, so A is always 41. An accented letter like é becomes 2 bytes, C3 A9, and most emoji become 4.

Frequently asked questions

How do you convert text to hex?

Find each character's code and write it in base 16. A is 65, which is 4 × 16 + 1, so A is 41 in hex. The converter does this for every character, using UTF-8 for anything outside ASCII.

What is Hello in hex?

48 65 6C 6C 6F. Each letter is one byte, written as two hex digits. Paste it into the hex to text converter to read it back.

Why do some characters take more than one byte?

One byte holds 256 values: enough for English, not for every language or emoji. UTF-8 uses 2, 3 or 4 bytes for those, so é is C3 A9 and 😀 is F0 9F 98 80.