Hex converter
Convert text to hexadecimal and the other way for any string input.
About this tool
The hex converter turns text into hexadecimal, base 16, and back again. Each byte of the text becomes two hex digits from 00 to ff, so “Hi é” is 48 69 20 c3 a9.
How to use the hex converter
- Choose To hex or To text.
- Type or paste your text or hex.
- Copy the result.
When decoding, the hex can be separated by spaces, commas or new lines, written as one long string like 48656c6c6f, or have a 0x in front of each byte.
Why hexadecimal?
One hex digit is exactly four bits, so two of them describe one byte neatly. That’s why hex is used everywhere developers look at raw data: color codes (#ff0000), file signatures, memory dumps, network packets, hashes and escape codes like \x41.
UTF-8 and other alphabets
The text is encoded as UTF-8, so English letters take one byte each and é takes two (c3 a9). Emoji take four. Decoding reads the bytes back as UTF-8, so anything you encode comes back exactly. The conversion happens in your browser.