Hex Encoder & Decoder

Convert UTF-8 text to hex bytes and back. Requires an even length and warns when bytes are not valid UTF-8.

Options

Input

Ctrl + Enter to run

Result

Convert text to its UTF-8 bytes in hex and back. It helps inspect invisible characters, BOMs, CRLF line breaks or emoji, which take several bytes.

Decoding accepts spaces, colons and a 0x prefix; it requires an even number of digits and warns when the bytes are not valid UTF-8.

How to use it

  1. Choose Encode or Decode.
  2. Paste the text or hex bytes.
  3. Press Run.

Example

Example input
Año 2025 ✓
Result
41 c3 b1 6f 20 32 30 32 35 20 e2 9c 93

Limitations

  • UTF-8 only: no conversion to other encodings like Latin-1.
  • For non-text bytes use Base64 with hex output or the file hash tool.

FAQ

Why does “ñ” take two bytes?
In UTF-8, characters beyond ASCII take 2 to 4 bytes. “ñ” is c3 b1.
Does it accept a leading 0x?
Yes, and spaces or colons between bytes too.

Related tools

References