UTF-8 Encode / Decode
Convert between text and UTF-8 hex bytes
How to use
Convert between text and UTF-8 hex bytes. Steps:
- Enter text in the Input box.
- Click To Hex to get space-separated uppercase bytes.
- Click To Text to restore hex back to text.
- Hex may contain spaces or newlines; non-hex characters are ignored.
Tip: paste the hex back into the input to compare the two byte rows and spot differences.
FAQ
Why is a Chinese character 3 bytes?
UTF-8 is a variable-length encoding: ASCII takes 1 byte, common Chinese characters take 3 bytes, and most emoji take 4 bytes.