Binary Translator: Text to Binary and Back
Type text to turn it into binary code, or paste binary (ones and zeros) to read it as text. Everything runs in your browser; nothing is sent to our server.
How Text Becomes Binary
Computers store everything as bits, ones and zeros. To store text, each character gets a number, and that number is written in binary. The capital letter H is number 72, which is 01001000 in binary. The letter i is 105, or 01101001. So "Hi" in binary is 01001000 01101001.
Eight bits make a byte, and one byte holds a number from 0 to 255. That's why binary text is usually written in groups of eight.
Common Letters in Binary
| Character | Decimal | Binary |
|---|---|---|
| A | 65 | 01000001 |
| Z | 90 | 01011010 |
| a | 97 | 01100001 |
| z | 122 | 01111010 |
| 0 (the digit) | 48 | 00110000 |
| Space | 32 | 00100000 |
Capital and small letters differ by one bit, the third from the left. That's 32 in decimal, which is why A (65) and a (97) are 32 apart.
ASCII and UTF-8
The numbers for English letters, digits and punctuation come from ASCII, a standard from the 1960s that covers 128 characters. Modern systems use UTF-8, which keeps every ASCII character as one byte and adds over a million more: accented letters, other alphabets, symbols and emoji. These take two to four bytes each. In this translator, é becomes two bytes (11000011 10101001) and an emoji such as 😀 becomes four.
How to Read Binary by Hand
Each position in a byte is worth double the one to its right: 128, 64, 32, 16, 8, 4, 2 and 1. Add up the positions that hold a 1. For 01001000 that's 64 + 8 = 72, which is H. Then look the number up in an ASCII table.
Tips for Pasting Binary
- Spaces, line breaks and commas between bytes are fine. Without separators, the bits are read in groups of eight from the left.
- Seven-bit groups (old ASCII style, such as
1001000 1101001) work when they're separated by spaces. - If the total isn't a multiple of eight, a bit is probably missing or extra, and the translator tells you.
Privacy
The translation runs entirely in your browser with JavaScript. Your text never leaves your device. For other encodings, try the Base64 encoder, URL encoder or hash generator.
Frequently Asked Questions
How do I convert text to binary?
How do I convert binary to text?
What is "hello" in binary?
Why do some characters take 16 or 32 bits?
How this tool works: This tool runs in your browser and on our server in real time. Depending on the tool, results are computed directly from the input you provide or retrieved from live, authoritative data sources at the moment you run a lookup. We do not sell your data, and your lookups are kept private — any history shown here is stored only on your device.