Encoding & Text Conversion

Hex → Text

Convert a continuous, whitespace-delimited, or 0x-prefixed sequence of hexadecimal bytes to UTF-8 text.

Press Ctrl / ⌘ + Enter to run
Read-only result

Strictly parse hexadecimal bytes and restore to multilingual text as UTF-8.

Inputs are only processed in your browser and are not uploaded to the server.

What this tool does

Hex → Text will first verify the hexadecimal format and form two characters into one byte, and then use strict mode TextDecoder to decode UTF-8. It does not treat each byte directly as a character, so it can correctly recover Chinese, Japanese and emoji.

  • Supports continuation, space or newline delimitation, and the canonical 0x byte prefix.
  • Odd lengths, non-hexadecimal characters, and invalid UTF-8 will all cause explicit errors.
  • The transformation only processes text and does not execute HTML, scripts, or other code in the result.

How to use it

  1. Paste the hexadecimal bytes.
  2. Click "Convert to text".
  3. If there are errors, check for illegal characters, prefixes or byte counts.
  4. Copy the recovered UTF-8 text.

Common uses

  • Read the UTF-8 hex payload in the protocol log.
  • Verify the result of a text-to-Hex round trip.
  • Restore the UTF-8 bytes corresponding to Chinese or emoji.

Privacy and security

Inputs and results are processed only in your browser's memory. Nothing is uploaded, sent to an online API, or stored automatically.

Hex → Text Features

Strictly parse hexadecimal bytes and restore to multilingual text as UTF-8. Useful for everyday development and debugging; results can be reviewed, copied, or downloaded immediately.

FAQ

Why does Hex length have to be even?

A byte requires two hexadecimal digits, and odd lengths cannot form a complete byte.

Can it decode Chinese?

Yes, as long as the input is valid UTF-8 bytes of Chinese text.

Why do some bytes report UTF-8 errors?

They may be arbitrary binary or in other character encodings, and this page will not silently mask the problem with replacement characters.

Will the input be uploaded?

No, validation and TextDecoder decoding are all done within the browser.

Back to Developer Tools