Hex Converter (Text ⇄ Hex)
Encode text as hexadecimal or decode hex back to text, in several common formats.
Frequently Asked Questions
How is text converted to hex?
Each character is first encoded as UTF-8 bytes, then every byte is written as two hexadecimal digits. The letter A (byte 65) becomes 41, and an emoji becomes four byte pairs.
Which hex formats can I decode?
Continuous hex (48656c6c6f), space-separated bytes (48 65 6c 6c 6f), and 0x-prefixed values (0x48 0x65). Whitespace and commas are ignored.
Why does hex text look longer?
Every byte needs two hex characters, so the encoded form is exactly twice as long as the byte count of the original text.
Is hex the same as Base64?
No. Hex uses 16 symbols and doubles the size, while Base64 uses 64 symbols and grows data by only about a third. Hex is common for hashes, colours and raw bytes.
Related Tools
Text to Binary Converter
Turn text into binary code (UTF-8 bytes) and copy the result with one click.
Binary to Text Converter
Decode binary code (8-bit groups, spaces optional) back into readable UTF-8 text.
Base64 Encoder/Decoder
Encode and decode text to and from Base64 format.
Color Code Converter
Convert between HEX, RGB, HSL, and other color formats.