Hex to Text
Convert a hexadecimal string to readable text.
$hex
0 chars1 lines
$text[READY]
0 chars1 lines
Related Tools
FAQ
- What format should the hex input be in?
- The input should be a continuous string of hexadecimal characters (0–9, a–f, A–F). Spaces and common separators are stripped automatically. Each pair of characters represents one byte, so the total number of hex characters must be even.
- Can I decode hex with spaces or colons between bytes?
- Yes. The tool strips all non-hex characters (spaces, colons, dashes) before decoding, so formats like "48 65 6C 6C 6F", "48:65:6C:6C:6F", and "48656C6C6F" all decode to "Hello".
- What character encoding is used for the output?
- Each byte value is converted to a character using String.fromCharCode(), which maps values 0–127 to ASCII and 128–255 to Latin-1 (ISO-8859-1). For UTF-8 encoded content, multi-byte sequences must be decoded separately.
Hex to text conversion takes a hexadecimal string (pairs of hex digits representing byte values) and decodes it into readable ASCII or Latin-1 text. Each pair of hex characters represents one byte, which is then mapped to its corresponding character. This is commonly used when working with raw byte data, network packet payloads, binary file inspection, and CTF challenges.