UTF-8 Encoder & Decoder
See the bytes behind text in four formats, both directions.
e.g. 中 → \xE4\xB8\xAD
0 Characters · 0 Words · 0 Lines
About the UTF-8 Encoder & Decoder
A single Chinese character is three bytes; an emoji is four. This tool makes UTF-8 visible: type any text and watch it become byte sequences in the format your stack speaks — JavaScript-style \xNN escapes, URL percent-encoding, plain hex pairs, or decimal byte values.
Decoding runs in the same view: paste a byte sequence in the selected format and read the text it encodes. Malformed sequences — truncated multibyte characters, invalid hex — are rejected with a precise error instead of mojibake, which makes the tool handy for debugging encoding bugs in logs and packet captures.
How to use it
- 1Pick the byte format your data uses: \xNN, %NN, hex pairs or decimal.
- 2Type text to see its UTF-8 bytes in the left output.
- 3Or paste a byte sequence to decode it in the right output.
Frequently asked questions
Related tools
Base64 Encoder & DecoderEncode and decode Base64 instantly, Unicode-safe.URL Encoder & DecoderEscape and unescape URLs and query strings safely.Binary Code TranslatorTranslate text to binary code and back, live.Hex to Text ConverterConvert text to hexadecimal and back, UTF-8 safe.Morse Code TranslatorTranslate, decode and hear Morse code with real audio.ROT13 Encoder / DecoderHide and reveal text with the classic ROT13 cipher.