Convert text to hex and back

Bytes, not characters: an accented letter is two bytes and an emoji is four, which is why a naive character-to-hex conversion is always slightly wrong.

How Hex to Text works

Bytes are transformed with the browser's own encoders. Encoding and decoding are reversible, so the page can prove the round trip without keeping a copy. That matters when the payload is a token or a credential: a round trip you can see is safer than one you have to trust.

That is the whole architecture: static files, one script, no upload endpoint to leak or log. Close the tab and the work is gone.

Good to know

  • Works offline once loaded, including on flights and in locked-down networks.
  • No file size limit beyond your device's own memory.
  • Free to use, with no account and no usage counter.
  • Results are produced locally, so they are not logged or shared with anyone.

Questions

Is it ASCII or UTF-8?

UTF-8, which is a superset of ASCII. Plain English letters produce one byte each; anything else produces two to four, exactly as it is stored on disk.

Why does hex decoding sometimes fail?

If the bytes are not valid UTF-8 — an image, a compressed file, an encrypted blob — the decoder refuses rather than printing replacement characters.

Does it accept 0x prefixes?

Yes, and it ignores any separator, so pasted packet dumps usually work without cleaning.

Is anything uploaded?

No. The conversion is arithmetic on the string in your tab.

Keep going

More encoding tools