Developer
Encoders, converters & dev utilities
Text to Hex Converter — UTF-8 Bytes as Hexadecimal
Convert text into hexadecimal — each byte written as two hex digits. The text is first encoded to UTF-8 bytes, then each byte is shown as two digits 00–ff. Worked example: "Hi" → bytes 72 105 → hex 48 69 (H is 0x48, i is 0x69). Because two hex digits equal one byte, hex is the compact way to inspect exactly what text encodes to. Multi-byte UTF-8 shows through cleanly: the euro sign € (U+20AC) is the three bytes E2 82 AC. This tool uses TextEncoder for correct UTF-8, shows the binary and ASCII-decimal alongside, and runs 100% in your browser. Free, no login.
Text → hex = encode to UTF-8 bytes, then write each byte as two hex digits (00–ff)
- Byte-exact worked example: "Hi" → bytes 72,105 → hex 48 69
- Multi-byte UTF-8: "€" (U+20AC) → 3 bytes → hex E2 82 AC
- Two hex digits = one byte; the same "H" is 48 hex = 72 decimal = 01001000 binary
- Uses TextEncoder for correct UTF-8; runs 100% client-side, nothing uploaded
Frequently asked questions
How do I convert text to hex?
Encode the text to its UTF-8 bytes, then write each byte as two hexadecimal digits. For "Hi": H is byte 72 which is 0x48, and i is 105 which is 0x69, so the hex is 48 69. Because one byte is exactly two hex digits, the output length is simply twice the byte count. The tool also shows the binary and decimal forms of the same bytes.
What is "Hi" in hex?
"Hi" is 48 69 in hex. H has the value 72, which is 48 in hexadecimal, and i is 105, which is 69 in hex. Both are ASCII characters, so each is a single byte and therefore two hex digits, giving 48 69.
How is a UTF-8 character like € shown in hex?
As its multiple UTF-8 bytes. The euro sign € (U+20AC) encodes to three bytes, E2 82 AC, so its hex representation is E2 82 AC — six hex digits for one character. This is why hex is useful for inspecting encodings: it shows exactly how many bytes a character takes and what they are, which naïve single-byte tools get wrong.