Finding an invisible character
A string that looks right but fails a comparison often has a hidden character. The hex view shows every byte, so the stray value stands out.
Converts text to hexadecimal in this tab, with nothing sent anywhere.
Find related browser-local tools for nearby tasks without starting another search.
Browse all developer and data toolsHexadecimal is how programmers read bytes, because two hex digits express one byte exactly and compactly where eight binary digits are unwieldy. Converting text to hex is a constant need when debugging: inspecting what a string really contains, spotting an invisible character that is breaking a parser, or preparing a value for a protocol that expects hex. As with binary, the trap is anything beyond plain English. A character is not always one byte, so this encodes the text as UTF-8 first and expresses each resulting byte as a two-digit hex value. That means an accented letter shows as its genuine two or three bytes, which is exactly what you need to see when a supposedly simple string is behaving strangely.
A string that looks right but fails a comparison often has a hidden character. The hex view shows every byte, so the stray value stands out.
Some low-level formats expect hex-encoded bytes. Convert here and paste the result.
Two hex digits equal one byte and are far easier to read than eight binary digits. It is the standard way programmers view bytes.
Because a byte is two hex digits by definition, and a value below sixteen is padded with a leading zero to keep the alignment.
Yes, as their byte values. That is one of the main reasons to convert text to hex.
Yes, with the hex to text tool, which accepts spaced, joined and 0x-prefixed hex.
Convert hexadecimal back to text in your browser. Accepts spaced, joined and 0x-prefixed hex.
Convert text to binary in your browser. Each character becomes its UTF-8 bytes, grouped for readability.
Convert a hexadecimal number to decimal in your browser, with full precision for large values.