Text to Hex
Encode text to hexadecimal and decode hex back to readable text
About Text to Hex
Turns text into the hexadecimal values of its UTF-8 bytes, so Hello becomes 48 65 6c 6c 6f, and converts hex dumps back into readable text. Input with an odd number of hex digits is rejected with an error rather than guessed. Useful for spotting invisible or look-alike characters, debugging encoding problems such as mojibake, and preparing byte payloads for tests.
Category: Encoding.
Frequently asked questions
What is hexadecimal encoding?
▾
Hexadecimal (base-16) represents each byte of data as two characters from 0–9 and a–f. It is widely used in programming, debugging, and network protocols to display binary data in a human-readable form.
What separator does this tool use?
▾
Encoding outputs lowercase bytes separated by spaces (e.g. 48 65 6c). When decoding, all whitespace is stripped first, so hex with spaces, line breaks or no separators works in upper or lower case; 0x prefixes and separators such as commas or colons are not accepted.
How are accented letters and emoji converted?
▾
Text is encoded as UTF-8, so ASCII characters take one byte and others take two to four: é becomes c3 a9 and 😀 becomes f0 9f 98 80. When decoding, byte sequences that aren't valid UTF-8 appear as the � replacement character.
What's the difference between hex encoding and encryption?
▾
Hex encoding is not encryption — it is a reversible representation of data. Anyone who has the hex string can decode it immediately. For confidentiality, use a proper encryption tool like AES Encrypt.