Text to Hex
Convert text to hexadecimal (and hex back to text) in your browser.
Hexadecimal is a compact way to write the byte values behind text, widely used in programming and debugging. Text to Hex converts your text into its hex representation and hex back into text, right in your browser.
How to use text to hex
- 1. Paste text or a hex string.
- 2. Choose text-to-hex or hex-to-text.
- 3. Copy the result.
When to use Text to Hex
Debugging
See the hex byte values of text when troubleshooting encoding issues.
Programming
Produce a hex representation to paste into code or a config.
Learning
Understand how characters map to hexadecimal values.
Bytes, not code points
The output is the UTF-8 bytes of your text, as lowercase pairs separated by spaces: "Hi" is 48 69, "ș" is c8 99. That differs from a Unicode code point, which you'll see written as U+0219 for ș — the code point identifies the character, the bytes are how it's stored. If your code needs a 0x-prefixed list, use Find and Replace to turn each space into ", 0x" and add 0x before the first pair.
Frequently asked questions
How is hex different from binary output?
Hex is more compact — two hex digits represent one byte, where binary uses eight digits for the same byte.
Can it decode hex back to text?
Yes — this tool converts both ways, or use Hex to Text for decoding.
Is my text uploaded?
No — it's processed in your browser.
