Online UTF-8 Encoder

Online UTF-8 encoder: convert text into a UTF-8 hexadecimal (Hex) representation in your browser instantly. Supports Chinese and emoji.

Tool input and output

Input text:
Result:Ready

UTF-8 encoding use cases

UTF-8 is the most common character encoding for the web and applications. This tool converts text into a hexadecimal byte string following UTF-8 rules, useful for inspecting underlying bytes, debugging mojibake, generating test data, or integrating with other protocols.

Chinese, English, emoji and full-width symbols all convert correctly. Supplementary-plane characters such as emoji are encoded using the 4-byte rule, matching standard implementations.

How does UTF-8 represent a character?

UTF-8 encodes a character as a variable number of bytes, from 1 to 4. The definition is RFC 3629.

“UTF-8 encodes UCS characters as a varying number of octets, where the number of octets, and the value of each, depend on the integer value assigned to the character in ISO/IEC 10646.”

Frequently Asked Questions

Why does one Chinese character map to multiple hex bytes?

UTF-8 uses variable-length encoding: common Chinese characters take 3 bytes and characters like emoji take 4. One character mapping to several bytes is normal, so the hex length is not the character count.

What is the difference between UTF-8 encoding and URL encoding?

UTF-8 encoding outputs the hexadecimal representation of bytes for low-level inspection, while URL encoding outputs percent signs for URL transport. Both are based on UTF-8 bytes but serve different purposes.

What can the encoding result be used for?

Typically for diagnosing mojibake, verifying storage formats, constructing specific byte sequences for tests, and confirming that API data is consistently UTF-8.