Text to Binary Converter
Convert text to binary (0s and 1s) and binary back to text. Also shows hex and decimal values.
How Binary Text Encoding Works
Every character has a numeric value in ASCII (or Unicode). Binary encoding converts each character's decimal code to 8-bit binary. For example, 'A' = 65 decimal = 01000001 binary.
| Char | Decimal | Hex | Binary |
|---|---|---|---|
| A | 65 | 41 | 01000001 |
| a | 97 | 61 | 01100001 |
| 0 | 48 | 30 | 00110000 |
| Space | 32 | 20 | 00100000 |
How Text Becomes Binary
Computers store text as numbers. Each character maps to a code point — for basic English, the ASCII table assigns A = 65, a = 97, space = 32, and so on. That number is then written in binary (base 2) using 8 bits per character, so "Hi" becomes 01001000 01101001. This tool does the lookup and base conversion for every character at once, in both directions.
ASCII, Unicode and UTF-8
ASCII covers 128 characters, enough for English. Modern text uses Unicode, which assigns a code point to every character in every language and emoji, and UTF-8 encodes those points in one to four bytes. For plain English letters and digits the binary is identical, which is why ASCII still works as a teaching model.
Common Uses
Converting text to binary is mostly for learning how encoding works, computer-science homework, puzzle and escape-room clues, and demonstrating data representation. To work with other bases, try the binary converter.