Text to Hex
Convert text to a hexadecimal string representation.
$text
0 chars1 lines
$hex[READY]
0 chars1 lines
Related Tools
FAQ
- How is text converted to hex?
- Each character's code point is obtained with charCodeAt(), then converted to a two-digit lowercase hexadecimal string using toString(16) padded to 2 digits. The bytes are joined with spaces for readability.
- What is the hex encoding of common characters?
- Some common characters: space = 20, A = 41, a = 61, 0 = 30, newline = 0a, tab = 09. Letters A–Z are 41–5A and a–z are 61–7A in hex.
- How do I decode the hex output back to text?
- Use the Hex to Text tool. Copy the hex output, paste it into the Hex to Text decoder, and it will reconstruct the original text from the byte values.
Text to hex conversion encodes each character in your input as a two-digit hexadecimal number representing its byte value. For example, "Hello" becomes "48 65 6c 6c 6f". This format is widely used in debugging, network analysis, binary file inspection, cryptography, and CTF challenges where understanding the raw byte values of text is important.