Free tools
Text to Hex Converter
Convert text to hexadecimal or hex to text instantly. Perfect for encoding, debugging, or working with binary data.
Press Ctrl + Enter to convert
How Hex Encoding Works
Hexadecimal (base 16) encoding converts each character to its ASCII value, then represents that value using digits 0-9 and letters A-F.
Example: Text to Hex
"Hello" → 48 65 6c 6c 6f
H=72→48, e=101→65, l=108→6c, o=111→6f
Example: Hex to Text
48656c6c6f → "Hello"
Each pair of hex digits becomes one character
Hex encoding is commonly used in programming, debugging, cryptography, and blockchain development for representing binary data in a human-readable format.
FAQ
- What is hexadecimal (hex)?
- Hex is a base-16 number system using digits 0–9 and A–F. Each byte is typically shown as two hex characters, which makes binary data easier to read and debug.
- How do I convert text to hex?
- Paste your text into the converter and encode to hex. Decoding turns a hex string back into text. Watch for spaces, 0x prefixes, and odd-length strings when decoding.
- Why is hex common in blockchain?
- Addresses, transaction hashes, calldata, and many RPC fields are represented in hex (often with a 0x prefix). Converting helps when inspecting raw payloads or debugging smart-contract input.