Hex encode & decode

Client

Turn UTF-8 text into a continuous hex string, or paste hex (with spaces or 0x) to recover the original text.

Hex encode & decode

?

Encodes UTF-8 bytes to hexadecimal. Decoding accepts spaces, newlines, and 0x prefixes—they are stripped before parsing.

UTF-8 text on the left; continuous hex on the right (two digits per byte).

Common use cases

  • Inspect UTF-8 bytes as hex when debugging string corruption or comparing payloads at the byte level.
  • Decode pasted hex dumps from logs or microcontrollers that may include spaces or 0x prefixes.
  • Generate hex for copy-paste into firmware, test vectors, or documentation examples.

Common mistakes to avoid

  • Odd-length hex strings

    Bytes come in pairs. If decode fails, check for a missing nibble or stray separator copied from elsewhere.

  • Assuming hex implies encryption

    Hex is just a representation. It does not protect secrets—do not confuse encoding with encryption.

FAQ

Is data sent to your servers?

No. Encoding and decoding run entirely in your browser.

Which text encoding is used?

The tool uses UTF-8 for text ↔ bytes. Binary patterns outside valid UTF-8 may not round-trip as readable text.

Related utilities you can open in another tab—mostly client-side.