UTF-8 Encoder / Decoder

About this tool

UTF-8 is the dominant text encoding on the web. ASCII characters take one byte, most Latin and common symbols take two, Chinese, Japanese and Korean characters take three (for example 中 becomes E4 B8 AD), and emoji take four. This tool uses the browser's TextEncoder to produce the exact standard byte sequence for any Unicode input, shown as hexadecimal with the separator and case you choose.

Decoding is forgiving: whitespace, commas, 0x and \x prefixes are stripped before parsing, and strict UTF-8 decoding reports invalid byte sequences instead of returning garbled text. Everything runs locally in your browser — your text is never uploaded to any server.

Related tools

Hex ↔ TextUnicode EscapeBase64