DevTools
Language

Text Encoding Converter

DevTools Text Encoding Converter converts text and bytes between UTF-8, ASCII, Latin-1, UTF-16, and other browser-supported legacy encodings to debug byte sequences and mojibake.

Text Encoding Converter

Convert text and bytes between UTF-8, ASCII, Latin-1, UTF-16, and other browser-supported legacy encodings.

Target encoding
Byte length
16
Hex
48 65 6C 6C 6F 2C 20 44 65 76 54 6F 6F 6C 73 21
Base64
SGVsbG8sIERldlRvb2xzIQ==

Note: browser TextEncoder only supports UTF-8 natively; ASCII, Latin-1, and UTF-16 are implemented here. Legacy encodings like GBK, Big5, and Shift_JIS decode only when the browser supports the matching TextDecoder label.

About this tool

Two modes: encode text to bytes, or decode hex bytes to text. Unsupported encoding labels are reported clearly.

How to use

  1. Choose text-to-bytes or bytes-to-text mode.
  2. Select target or source encoding.
  3. Enter text or hex bytes and review the result.

FAQ

Why are not all legacy encodings available for encoding?

Native TextEncoder only supports UTF-8. ASCII, Latin-1, and UTF-16 have supplemental encode paths; more legacy encodings are mainly decode-only.

How do I check if hex bytes are UTF-8?

Switch to bytes-to-text, choose UTF-8, paste the hex string, and see if it decodes to readable text.

What if the browser does not support an encoding?

The tool reports unsupported TextDecoder labels. Use Node.js iconv or a desktop tool for those cases.

Is my text uploaded?

No. Encoding and decoding run locally in your browser.

Related tools