Text to Binary Converter
Convert any text to binary — the raw 0s and 1s that computers use to represent characters. Each character becomes an 8-bit binary number.
Common Values
| Input | Binary |
|---|---|
| Hello | 01001000 01100101 01101100 01101100 01101111 |
| World | 01010111 01101111 01110010 01101100 01100100 |
| ABC | 01000001 01000010 01000011 |
| hello world | 01101000 01100101 01101100 01101100 01101111 00100000 01110111 01101111 01110010 01101100 01100100 |
| binary | 01100010 01101001 01101110 01100001 01110010 01111001 |
How It Works
Each character is converted to its ASCII code, then that code is expressed as an 8-bit binary number. "A" is ASCII 65 = binary 01000001. "Hello" becomes five 8-bit groups: 01001000 01100101 01101100 01101100 01101111.
Worked Examples
| Text | Binary |
|---|---|
| A | 01000001 |
| a | 01100001 |
| 0 | 00110000 |
| H | 01001000 |
| ! | 00100001 |
| 00100000 |
Related Conversions
Frequently Asked Questions
- How do I convert text to binary?
Convert each character to its ASCII decimal code, then convert that number to binary. "A" is ASCII 65 = binary 01000001.
- What is "Hello" in binary?
"Hello" in binary is 01001000 01100101 01101100 01101100 01101111. Each character becomes one 8-bit group.
- Why 8 bits per character?
ASCII codes fit in 7 bits (0-127), but are stored in 8-bit bytes (0-255) in modern systems. Extended ASCII uses all 8 bits.
- Is binary text encoding the same as binary files?
Text-to-binary here uses ASCII encoding. Actual binary files use various encodings depending on the file format.