Text ↔ Binary / Hex Converter
Convert plain text to binary or hexadecimal and decode it back to text instantly. Free, private, runs entirely in your browser.
How Text → Binary Works
Every character in a string has a numeric code point (its Unicode / ASCII value). Binary encoding converts each character to its 8-bit binary representation. For example, the letter A has the ASCII value 65, which in binary is 01000001. Bytes are typically separated by spaces for readability.
Encoding Reference
| Character | Decimal | Binary | Hex |
|---|---|---|---|
| A | 65 | 01000001 | 41 |
| a | 97 | 01100001 | 61 |
| 0 | 48 | 00110000 | 30 |
| Space | 32 | 00100000 | 20 |
| ! | 33 | 00100001 | 21 |
Binary vs Hex
Binary (base 2) uses only 0s and 1s — each character expands to 8 digits, making output verbose but easy to understand bit-by-bit. Hexadecimal (base 16) uses digits 0–9 and letters A–F — each character becomes just 2 hex digits, making it far more compact. Hex is the standard in programming, colour codes, and byte-level debugging.