> Hex to Text_
Enter hex codes (space-separated) to convert them back to readable text.
?
How to Use
Enter two-digit hex codes separated by spaces. Each pair represents one ASCII character. For example: "48 65 6C 6C 6F" decodes to "Hello". The converter accepts standard two-digit hexadecimal values (00–7F for ASCII, 00–FF for extended) and outputs the corresponding text.
How Hex to Text Decoding Works
Hexadecimal is base-16 notation using digits 0–9 and letters A–F (or a–f). Each hex digit represents 4 bits, so two hex digits represent exactly one byte (8 bits). To decode hex to text: convert each two-character hex value to its decimal equivalent, then look up the ASCII character for that decimal number.
For example, "48" in hex: the first digit '4' = 4 × 16 = 64; the second digit '8' = 8 × 1 = 8; total = 64 + 8 = 72. ASCII character 72 is uppercase 'H'. Similarly, "65" = 6×16 + 5 = 101 = lowercase 'e'. "6C" = 6×16 + 12 = 108 = lowercase 'l'. "6F" = 6×16 + 15 = 111 = lowercase 'o'. Result: "Hello".
Where Hex Encoding Appears
- URL percent-encoding: URLs encode special characters as %XX where XX is the hex value. %20 is a space (decimal 32), %2F is a forward slash (decimal 47).
- HTML entities: HTML supports numeric character references like H (hex 48 = 'H') as an alternative to named entities.
- File formats: Binary file formats (images, executables, databases) are often inspected in hex using a hex editor — being able to decode hex values to characters helps identify text strings embedded in binary data.
- Network protocols: Network packet captures and protocol specifications frequently express data payloads in hexadecimal.
- CSS color codes: CSS hex colors (#FF5733) use the same hex notation — FF = 255 red, 57 = 87 green, 33 = 51 blue.
- Cryptography and security: Hash values, encryption keys, and digital signatures are almost always expressed in hex format.
Hex vs Binary Representation
Both hex and binary represent the same underlying byte values. Binary shows all 8 bits explicitly (e.g., 01001000) while hex compresses the same value into two characters (48). Programmers overwhelmingly prefer hex when reading and writing byte values manually because it is 4× more compact than binary while still having a direct, predictable relationship to the underlying bits — each hex digit maps to exactly 4 bits.
Frequently Asked Questions
Is hex case-sensitive?
No. "48", "4A", "4a", and "4A" are all valid hex notation. The letters A–F are not case-sensitive in hexadecimal. This converter accepts both uppercase and lowercase hex input.
What is the hex value of a space character?
The space character is ASCII code 32, which is 20 in hexadecimal. In URL encoding, it appears as %20. In hex dumps, you will see "20" wherever a space character appears in the original text.