Hexadecimal is the standard compact way to show raw bytes. This converter turns text into a UTF-8 hex byte stream and decodes hex back into readable text.
How it works
For encoding, the text is converted to UTF-8 bytes. Each byte from 0 to 255 is written as two hex digits:
byte 65 (A) -> 41
byte 32 ( ) -> 20
byte 255 -> FF
For decoding, the input is normalised by stripping whitespace and any 0x
prefixes, then the digits are read in pairs. Each pair is parsed as a byte and
the byte array is decoded as UTF-8 into the original text.
Example and notes
The word Hi is bytes 72 and 105, giving hex 48 69. ASCII characters are
always two hex digits; characters beyond ASCII use several UTF-8 bytes and so
appear as several hex pairs. When decoding, the total number of hex digits must
be even — an odd count means a byte is incomplete, so the tool flags it instead
of dropping a nibble.