About this tool
Turn text into its hexadecimal byte values and back again, with UTF-8 support, running fully in your browser.
Text to hex converts your text to UTF-8 bytes and writes each byte as two lowercase hex digits. The space separated option, on by default, puts a space between bytes. Characters outside basic ASCII use several bytes, so an accented letter or emoji produces more than one pair of digits.
When decoding, the tool removes 0x and \x prefixes and then discards every character that is not a hex digit. The remaining digits are read in pairs and must form valid UTF-8 text; an odd digit count or invalid bytes show a "not valid hex" message. Because stray characters are dropped silently, a typo such as the letter g can change the result or leave an odd count.