How to use the UTF-8 encoder and decoder
Choose how you want the bytes written, and the tool does the rest as you type.
- Type or paste into the Input box. Any character works, from plain letters to emoji and right-to-left scripts.
- Set Mode to Encode to see bytes, or Decode to turn bytes back into characters.
- When encoding, pick a Byte format: Hex bytes (E2 82 AC), Percent (%E2%82%AC) or Escaped (\xE2\x82\xAC). One format is shown at a time, so switch the select to see another.
- When decoding, paste bytes in any of those three styles. The tool accepts
0xprefixes too. - Press Copy, Download .txt or Use as input.
Decoding strips every character that is not a hex digit, so keep the input clean. If the bytes are not valid UTF-8 you will see replacement characters. The counters under the input box count characters, not bytes, so the byte total is the number of hex pairs in the output.