Hex Encode/Decode
Convert text to hexadecimal (hex) and back. Free online hex encoder and decoder for debugging, packet analysis, and binary data inspection.
Frequently Asked Questions
What is hexadecimal encoding?
Hexadecimal (hex) encoding represents each byte of data as a two-digit hexadecimal number (0-9, A-F). It's widely used in debugging, packet analysis, binary file inspection, and low-level programming.
How does hex encoding work?
Each character in the input text is converted to its byte representation (using UTF-8 or ASCII), and each byte is then written as a two-character hex value. For example, the letter "A" has ASCII value 65, which is 41 in hex.
What is the 0x prefix?
0x is a common prefix used in programming languages (C, JavaScript, Python) to indicate a hexadecimal number. You can optionally add it to each byte for readability in code contexts.
Is this tool free and private?
Yes, completely free with no sign-up required. All encoding and decoding happens in your browser. Your data never leaves your device.