Hex Encoder/Decoder
Convert text to hexadecimal and vice versa
1. What is Hexadecimal?
Hexadecimal (hex) is a base-16 number system that uses 16 symbols: 0-9 and A-F. Each byte (8 bits) can be represented by exactly two hexadecimal digits, making it a compact way to represent binary data.
2. How does it work?
How to use this tool?
Select Encode mode to convert text to hex, or Decode mode to convert hex back to text. When decoding, you can include or omit the '0x' prefix and spaces - they will be automatically removed.
Use Cases
- Encoding data for blockchain transactions
- Representing binary data in a readable format
- Debugging and analyzing network protocols
- Working with color codes in web development
- Low-level programming and memory inspection
3. Examples
Encode simple text
Hello → 48656c6c6fEncode with special characters
Hello, World! → 48656c6c6f2c20576f726c6421Decode with 0x prefix
0x48656c6c6f → HelloDecode with spaces
48 65 6c 6c 6f → Hello