Text to Hex Converter
Converts text to its hexadecimal bytes and back, which is how you see what a string is actually made of.
Loading the tool…
How to use this tool
- Paste text to encode, or hexadecimal bytes to decode.
- Set the direction, and a separator if you want the bytes spaced out for reading.
- Select Convert. Decoding accepts spaces, colons, hyphens and a 0x prefix.
What hex converter does
Hex is how you look at bytes rather than at characters. It is the format checksums, keys, colour values and protocol dumps are written in, and it is the quickest way to settle an argument about what is really in a string — because in hex there is nowhere for an invisible character to hide.
The conversion is over UTF-8 bytes, which is what makes it informative. A plain ASCII character is one byte, an accented Latin letter is two, most CJK characters are three and an emoji is four. Seeing héllo come out as eleven hex pairs rather than ten explains, immediately, why a value that looked short enough was rejected by a column with a byte-based length limit.