Text to Hex
Convert text into hexadecimal (base-16) byte values.
Convert any text into its hexadecimal byte values. Each character’s UTF-8 bytes are shown as two-digit hex codes — a compact, developer-friendly way to inspect or transmit data.
Formula / method
Examples
48 69
41
Turning characters into base-16 bytes
Computers store text as numbers. This tool encodes your text to bytes using UTF-8 and prints each byte as two hexadecimal digits from 00 to FF. The capital letter A has the value 65 in decimal, which is 41 in hex, so 'Hi' comes out as 48 69. Hexadecimal is popular for this because two digits map neatly onto one byte.
Multi-byte characters and uses
Plain English letters are one byte each in UTF-8, but accented letters, symbols, and emoji take several. The character e-acute (e with an accent) becomes C3 A9, and many emoji span four bytes. Seeing this is useful for spotting encoding problems, inspecting color or protocol data, or learning how text maps to raw bytes. To go the other direction, our Hex to Text tool reads those byte values back into readable characters.
Where it's used
- Inspecting the exact bytes of a string while debugging encoding problems
- Spotting hidden or non-printing characters in text
- Preparing byte data for a protocol, firmware or embedded device
- Learning how UTF-8 maps each character to one or more bytes
- Encoding text for a hexadecimal data field
Real-world examples
- 'Hi' encodes to 48 69, since H is 0x48 and i is 0x69
- The single letter 'A' is 41 in hex, which is 65 in decimal
- An accented 'é' takes two UTF-8 bytes, C3 A9, showing it is not a single-byte character
Did you know?
The same base-16 notation appears in web colour codes: #FF0000 is pure red, where each pair of hex digits gives the red, green and blue level from 00 to FF.
FAQ
What is hexadecimal?
Hex is base-16: digits 0–9 then A–F. Each byte of text becomes two hex digits, a concise way to represent binary data.