Hex Encode Decode

Encode string to hexadecimal (UTF-8 bytes) or decode hex to string. Copy or download.

Hex encode / decode

How it works

Encode: we get UTF-8 bytes (TextEncoder) and format as hex pairs. Decode: we parse hex pairs and decode as UTF-8.

When to use it

Use for binary-safe representation or when working with low-level protocols.

Frequently asked questions

Byte order?

We use big-endian hex (e.g. 0x41 for 'A').