Paste your text to encode it as uppercase hex bytes. UTF-8 handles accented characters, other writing systems, and emoji. Choose ASCII for strict ASCII input.
Runs locally
12 charactersText → bytes
Ready
12 bytesUTF-8
Tip: paste your input — results update automatically in your browser.
Your data stays in your browser Free. No sign-up. Unicode & ASCII support
A CLOSER LOOK
The bits behind your text.
All 12 bytes
CHARACTER
H
e
l
l
o
space
w
o
r
l
d
!
BINARY
01001000
01100101
01101100
01101100
01101111
00100000
01110111
01101111
01110010
01101100
01100100
00100001
DECIMAL
72
101
108
108
111
32
119
111
114
108
100
33
HEX
48
65
6C
6C
6F
20
77
6F
72
6C
64
21
Each column is one byte. Multi-byte UTF-8 characters are grouped with their Unicode code point.
01 / EXPLAINED SIMPLY
How text becomes hexadecimal bytes
Text is represented by Unicode code points. An encoding such as UTF-8 maps each code point to a sequence of bytes. Hexadecimal then displays each byte using two digits, including a leading zero for values under 16.
For example, the letter é is Unicode code point U+00E9. Its UTF-8 encoding has the two bytes C3 A9. The English text Hi uses 48 69 in both ASCII and UTF-8.
ASCII letters
Both UTF-8 and ASCII give 48 69.
Hi
Accented letter
Unicode U+00E9 uses two UTF-8 hex bytes: C3 A9.
é
Emoji
U+1F642 uses four UTF-8 hex bytes: F0 9F 99 82.
🙂
02 / CONVERSION EXAMPLES
Text to hex examples
Each pair of uppercase hexadecimal digits represents one UTF-8 byte.
Text inputs and their UTF-8 hexadecimal byte outputs
Text input
UTF-8 hex bytes
Bytes
Notes
Hi
48 69
2
Matches strict ASCII byte values.
é
C3 A9
2
Two-byte UTF-8 sequence for U+00E9.
🙂
F0 9F 99 82
4
Four-byte UTF-8 sequence for U+1F642.
Space
20
1
Regular ASCII space U+0020.
03 / EXPLAINED SIMPLY
Read hex notation and separators
The converter writes uppercase pairs such as 48 69. Another common way to write the same bytes is 0x48 0x69. The 0x prefix marks hexadecimal in that notation.
Choose Space, New line, or None to change how the bytes are separated. With None, count two digits per byte. Use Text to Binary to see the same encoded bytes in base 2, or Hex to Text to decode hexadecimal byte pairs back into readable words. For single integers, use Hex to Decimal to read an individual hex value in base 10.
GOOD QUESTIONS
Before you convert.
A few useful details for this tool.
How do I convert text to hex?+
Choose an encoding, paste text, and select Convert to hexadecimal. The tool shows each encoded byte as two uppercase hex digits.
Should I select UTF-8 or ASCII?+
Use UTF-8 for Unicode text, including accents and emoji. Use ASCII when the source is limited to ASCII characters and you want the tool to reject anything outside that range.
What does 0x mean before a byte?+
0x is a notation prefix for a hexadecimal value. For example, 48 and 0x48 denote the same hex byte. The default output shows the hex pairs directly.
Do spaces and line breaks get their own bytes?+
Yes. Whitespace in the original text is part of the encoded message. A space has hex value 20, and a line feed has hex value 0A.