Text to hex
Plain text
Hi
Hex
48 69
Convert plain text to spaced UTF-8 hex bytes—or decode hex dumps, 0x-prefixed strings, and continuous hex back to readable text.
Hex Text Converter
Encode UTF-8 bytes as hex or decode hex strings back to text.
Your text stays in your browser — nothing is uploaded.
48 65 6C 6C 6F or continuous 48656c6c6f.Text
Hello
Hex bytes (UTF-8)
48 65 6C 6C 6F
Plain text
Hi
Hex
48 69
Hex
41
Plain text
A
Hex
48656c6c6f
Plain text
Hello
Hex
0x48 0x69
Plain text
Hi
Plain text
café
Hex (UTF-8)
63 61 66 C3 A9
Input
48 G9
Result
Error — G is not a hex digit
Each UTF-8 byte appears as two hexadecimal digits. ASCII characters use one byte each.
Hi
48 69
Hello
48 65 6C 6C 6F
A
41
Space
20
123
31 32 33
café
63 61 66 C3 A9
Hex Text Converter encodes each UTF-8 byte as two hexadecimal digits and decodes spaced, continuous, or 0x-prefixed hex back into readable text. Live validation flags non-hex characters, odd-length strings, and invalid byte groups.
Basic English letters, digits, and symbols use one byte each—A is 41, space is 20.
UTF-8 uses the same single-byte hex values for ASCII characters.
Non-ASCII characters use multiple bytes. The letter é in UTF-8 is C3 A9, not one byte.
Emoji often produce four or more hex byte pairs because their Unicode code points need multiple UTF-8 bytes.
Each character is encoded as one or more bytes using UTF-8 rules.
One byte is shown as two hex digits—values from 00 to FF.
Non-English characters may expand to multiple byte pairs in the output.
A space character encodes as 20—just like any other byte.
Emoji usually produce multiple hex byte pairs because UTF-8 stores them as several bytes.
Computer science lessons
Debugging byte data
CTF puzzles
API payload inspection
Color code learning
Firmware/log dumps
UTF-8 learning
Classroom activities
All conversion runs locally in your browser. ASCII mode skips characters above code point 127. This tool converts text bytes—it does not parse color pickers or image files.
No. Spaced output like 48 69 is easier to read, but continuous strings like 48656c6c6f also decode correctly.
Yes. Paste a continuous hex string with no spaces—the tool splits it into byte pairs automatically.
0x is a common prefix marking hexadecimal values, as in 0x48 0x69. Enable the 0x prefix option to encode or decode this format.
Both decode correctly. Use the case toggle to choose uppercase (6C) or lowercase (6c) output when encoding.
ASCII maps English letters, digits, and common symbols to numbers 0–127, each stored in one byte.
UTF-8 encodes Unicode characters as one or more bytes. ASCII characters still use one byte; emoji and accented letters use more.
The letter é has a Unicode code point beyond ASCII. UTF-8 represents it as two bytes: C3 and A9.
Emoji code points are large numbers. UTF-8 stores them as multiple bytes, so one emoji may produce four or more hex pairs.
Characters outside 0–9 and A–F trigger a friendly error. Odd-length hex strings show a warning when validation is enabled.
Yes. Select Hex to Text, paste your hex, and the decoded UTF-8 string appears instantly. Use Swap ↔ to reverse direction.
No. All encoding and decoding runs locally in your browser—nothing is sent to a server.
Yes. Click Download .txt to save the output panel contents as a plain-text file.