Hex Encoder/Decoder
Convert text and bytes to hexadecimal and decode hex back
Enter text to encode
Supports UTF-8, Latin-1, and raw hex input modes. File to hex conversion is capped at 16 MB for responsiveness.
About Hex Encoder/Decoder
Convert text to hexadecimal representation and decode hex strings back to readable text. Hexadecimal encoding expresses each byte as two characters (0-9, a-f), making it a standard format for displaying binary data, hash digests, memory addresses, colour codes, and network packet dumps. Developers frequently use hex encoding when debugging binary protocols, inspecting file headers, or working with cryptographic output. This tool handles UTF-8 text-to-hex conversion and hex-to-text decoding entirely in the browser.
How to Use Hex Encoder/Decoder
- Paste text to encode it as hexadecimal, or paste a hex string to decode it.
- Select the Encode or Decode direction.
- Choose separator options like spaces or colons between hex bytes for readability.
- Copy the result using the copy button.
Hex Encoder/Decoder FAQ
Can I convert text to hexadecimal and back?
Yes. The tool encodes text as hex bytes and decodes valid hex strings back to readable text.
Which text encodings are supported?
The tool encodes text as UTF-8 bytes. Input hex strings are decoded back to UTF-8 text.
What are common uses for hex encoding?
Hex is used to display hash digests (SHA-256, MD5), inspect binary file headers, represent colour codes (#FF5733), debug network packets, and view memory dumps.
Can I use separators between hex bytes?
Yes. You can choose separators like spaces, colons, or no separator to format the hex output for different contexts.
Is hex encoding the same as encryption?
No. Hex encoding is a reversible representation of bytes, not a security measure. Anyone can decode hex without a key.