ASCII text
Input
HiOutput
48 69H is 0x48 and i is 0x69 in ASCII.
Hexadecimal shows you the actual bytes of a string, two digits each. It is the representation you want when debugging an encoding problem, comparing what a protocol sent against what it should have sent, or working out why a string that looks correct is failing a comparison.
Hex is how you see invisible characters. A zero-width space, a byte order mark or a non-breaking space are all indistinguishable from ordinary whitespace on screen, but each has an unmistakable hex signature.
Each example below is executed against this tool by the test suite, so what you see is what the tool actually produces.
Input
HiOutput
48 69H is 0x48 and i is 0x69 in ASCII.
Input
é😀Output
c3 a9 f0 9f 98 80Two characters, six bytes: é takes two and the emoji four.
The details that decide whether a conversion is correct, and where information can be lost without any error being raised.