Text to Hex
Convert text to hex and decode hex to readable text instantly.
Loading Text to Hex...
⚙️ How It Works
Enter text to encode it into hexadecimal bytes, or paste a hex string to decode it back into readable text. Supports UTF-8, prefixes, and multiple formatting styles.
❓ Frequently Asked Questions
What format does the hex output use?
Each character is converted into a two-digit hexadecimal byte. By default, bytes are separated by spaces (e.g., '48 65 6C 6C 6F').
Can I remove spaces or change separators?
Yes. You can format the output using spaces, commas, colons, or no separator at all depending on your use case.
Does it support UTF-8 and emojis?
Yes. Multi-byte UTF-8 characters like emojis and non-Latin scripts are encoded into multiple hex bytes correctly.
Can I decode hex back to text?
Yes. Switch to decode mode and paste your hex string. The tool will convert it back into readable text instantly.
What prefixes are supported?
You can add common prefixes like 0x, \x, or % (URL encoding style) to each byte.
Is this the same as ASCII to hex?
ASCII is supported, but this tool also handles full UTF-8 encoding, making it more flexible than basic ASCII converters.
Why are some characters multiple bytes?
Characters outside the basic ASCII range use UTF-8 encoding, which represents them using multiple hexadecimal bytes.
Can I paste formatted hex strings?
Yes. The decoder accepts spaces, commas, colons, and prefixed formats like 0x48 or \x48.
Is this tool safe to use offline?
Yes. The tool runs entirely in your browser and does not send data to any server.
What is hex encoding used for?
Hex encoding is commonly used in low-level programming, debugging, networking, cryptography, and data inspection.
Does the Text to Hex work offline?
Yes, the Text to Hex is fully functional offline. Because this tool runs entirely in your browser, no data is ever uploaded to external servers. Once the page is loaded, you can seamlessly continue using it without an active internet connection. You can also install Knicknaks as a Progressive Web App (PWA) for native-like offline access.