Hex Encode

Convert text to a hexadecimal string.

Tool Panel

Loading tool...
About Hex Encode

Hex encoding writes each byte as two hexadecimal characters (0-9, a-f), handy for debugging and data work. Encode: text to a continuous hex string Decode: hex string to text (the length must be even)

  • 1

    Output is lowercase hexadecimal with no separators and no 0x prefix: two digits per byte, so the length is always twice the byte count.

  • 2

    Text is converted to UTF-8 bytes first, so one Chinese character becomes three bytes — six hex digits.

  • 3

    No cosmetic grouping or upper-casing is applied; add that yourself on the output if a target format needs it.

Related tools

View all
Base64 Encode / Decode
Encode & Crypto

Base64 Encode / Decode

Encode text to Base64, or decode it back.

Encode & Crypto
Base64URL Encode
Encode & Crypto

Base64URL Encode

Produce URL-safe Base64 without padding characters.

Encode & Crypto
Base32 Encode / Decode
Encode & Crypto

Base32 Encode / Decode

Encode or decode text using the Base32 alphabet.

Encode & Crypto
Base36 Encode / Decode
Encode & Crypto

Base36 Encode / Decode

Encode or decode numbers and text in Base36.

Encode & Crypto
Base58 Encode / Decode
Encode & Crypto

Base58 Encode / Decode

Encode or decode with Base58, the alphabet Bitcoin addresses use.

Encode & Crypto
Binary Encode
Encode & Crypto

Binary Encode

Turn text into its 0 and 1 representation.

Encode & Crypto

Other comparisons