Hex Converter
Convert text to hexadecimal and back with this simple Hex Converter. Whether you're working with encoding, debugging, or data representation, this tool quickly transforms any string into its hex format and vice versa.
Text to Hexadecimal Converter
Hexadecimal Conversion Logic
Each character is converted into its ASCII code using $$ord()$$, then into a hexadecimal string using $$hex()$$. Decoding reverses the process by parsing hex pairs and applying $$chr()$$.
Example:
- “Hi” β 48 69
- “48 69” β “Hi”
The Hex Converter tool is great for developers, cryptographers, and students who need to encode text into hexadecimal values or decode hex into readable strings. It supports full ASCII and UTF-8 characters, making it suitable for general use cases such as encoding API data, inspecting packets, or manipulating text in low-level formats. Choose between βTo Hexβ or βTo Textβ, paste your string, and get immediate results.