Hex ↔ ASCII

Convert text to hexadecimal bytes or hex back to readable text, with UTF-8 support and 0x, \x or space separators. Free online hex converter.

About this tool

Convert text to hexadecimal bytes and hex back to text. Text is encoded as UTF-8, so multi-byte characters appear as several bytes.

How to use

  1. Choose Text → Hex or Hex → Text.
  2. For Text → Hex pick a separator (none, space, 0x or \x) and letter case.
  3. Paste the input and copy the output.

Frequently asked questions

Which hex formats can be decoded?

Plain hex, space-, comma- or colon-separated bytes, and 0x or \x prefixes are all accepted.

Why do I see � in the output?

The bytes are not valid UTF-8. The replacement character marks bytes that could not be decoded.

Why is one Korean character three bytes?

UTF-8 encodes most Hangul syllables with three bytes, for example 한 is ED 95 9C.

Related tools