Hex Encode and Decode

Encode UTF-8 bytes as hexadecimal or decode hexadecimal into UTF-8 text.

Input

Processed on your device

How to use Hex Encode and Decode

Inspect the hexadecimal representation of UTF-8 text, or decode a sequence of hex bytes back into text. Useful for understanding a short sample’s encoding.

  1. Paste the text or hex and choose the direction.
  2. Check that hex input has complete byte pairs and that the decoded text is actually UTF-8.
  3. Select Process input and review the result.
Example input
Field notes from Tallinn. Tere! ☀

Example use

Compare the bytes for an accented name in a local test fixture with the expected UTF-8 representation.

Output and compatibility

Hex represents byte values, not a separate character encoding. Valid hex can describe binary data or text in another encoding, which may look unreadable as UTF-8.

Troubleshooting

If decoding fails, check for invalid digits or an unmatched nibble. If the text contains replacement symbols, verify the source’s character encoding.

Use Base64 Encode for a more compact ASCII representation when the receiver expects Base64.

Frequently asked questions

Can it show the Unicode code point of a character?

Use Unicode Inspector for code points rather than UTF-8 bytes.

Can I examine a whole binary file?

Use Hex Viewer to inspect a byte range from a file.

Find a tool