Binary to Text
Paste your 0s and 1s and read the message. Spaces, line breaks, commas and 0b prefixes are all fine.
The decoder could not load. Refresh the page to try again.
How your binary was read
| Bytes | Code | Character |
|---|
Read binary by hand in three steps
You only need to add small numbers and look something up. Let's decode 01001000 01101001.
Split it into groups of eight
Each group is one byte. This string already has a space in the right place, so there are two bytes. If yours arrives as one long run, count off eight digits at a time from the left.
Turn each byte into a number
The eight positions are worth 128, 64, 32, 16, 8, 4, 2 and 1. Add the ones that hold a 1, so 01001000 is 64 + 8 = 72, and 01101001 is 64 + 32 + 8 + 1 = 105.
Look the numbers up
In the ASCII table, 72 is H and 105 is i. The message says "Hi".
A shortcut for spotting letters
After a few bytes you can stop adding and read the pattern. The start of a byte tells you what kind of character it is.
| Byte looks like | It's probably |
|---|---|
| 010xxxxx | A capital letter |
| 011xxxxx | A lowercase letter |
| 0011xxxx | A digit |
| 00100000 | A space |
For letters, the last five bits give the position in the alphabet. In 01001000 they are 01000, which is 8, and the 8th letter is H. Digits work the same way with the last four bits, so 00110111 is the digit 7.
The alphabet in binary
Every English letter fits in one byte. A capital and its lowercase partner differ only in the third bit from the left.
| # | Capital | Lowercase |
|---|---|---|
| 1 | A 01000001 | a 01100001 |
| 2 | B 01000010 | b 01100010 |
| 3 | C 01000011 | c 01100011 |
| 4 | D 01000100 | d 01100100 |
| 5 | E 01000101 | e 01100101 |
| 6 | F 01000110 | f 01100110 |
| 7 | G 01000111 | g 01100111 |
| 8 | H 01001000 | h 01101000 |
| 9 | I 01001001 | i 01101001 |
| 10 | J 01001010 | j 01101010 |
| 11 | K 01001011 | k 01101011 |
| 12 | L 01001100 | l 01101100 |
| 13 | M 01001101 | m 01101101 |
| # | Capital | Lowercase |
|---|---|---|
| 14 | N 01001110 | n 01101110 |
| 15 | O 01001111 | o 01101111 |
| 16 | P 01010000 | p 01110000 |
| 17 | Q 01010001 | q 01110001 |
| 18 | R 01010010 | r 01110010 |
| 19 | S 01010011 | s 01110011 |
| 20 | T 01010100 | t 01110100 |
| 21 | U 01010101 | u 01110101 |
| 22 | V 01010110 | v 01110110 |
| 23 | W 01010111 | w 01110111 |
| 24 | X 01011000 | x 01111000 |
| 25 | Y 01011001 | y 01111001 |
| 26 | Z 01011010 | z 01111010 |
Digits and punctuation
| Character | Binary |
|---|---|
| 0 | 00110000 |
| 1 | 00110001 |
| 2 | 00110010 |
| 3 | 00110011 |
| 4 | 00110100 |
| 5 | 00110101 |
| 6 | 00110110 |
| 7 | 00110111 |
| Character | Binary |
|---|---|
| 8 | 00111000 |
| 9 | 00111001 |
| (space) | 00100000 |
| . | 00101110 |
| , | 00101100 |
| ! | 00100001 |
| ? | 00111111 |
| ' | 00100111 |
Practice on these
Try the first few letters with the shortcut above, then load the message to check yourself.
01010100 01101000 01100001 01101110 01101011 01110011
01000111 01101111 01101111 01100100 00100000 01101100 01110101 01100011 01101011
00110001 00110000 00110000 00100101
When the result looks wrong
It says a group can't be split into bytes
A digit went missing or got added, often while copying from an image or a long line. A string with no spaces has to divide evenly by 8, so 39 digits means one is lost somewhere.
The start is fine, then it turns to nonsense
One lost digit in an unspaced string shifts every byte after it. Find where the words stop making sense and check the digits around that spot.
It says the bytes aren't valid UTF-8
Some bytes only make sense as part of a longer character. The é in older Latin-1 files is the single byte 11101001, which doesn't work alone in UTF-8. The text may come from an older encoding, or a byte may have changed.
You get one odd symbol
The binary might be a number and not text at all. 00101010 reads as an asterisk here but means 42 as a number. Try it in the binary converter.
The text box looks blank
Bytes below 32 are control codes with nothing to display. 00001010 is a line break, for example. The table above still lists them, so you can see what arrived.
Common questions
Why are there eight digits per letter?
Computers settled on the 8-bit byte as their basic unit of storage, so text is grouped the same way. English letters only need seven bits, which is why every one of them starts with a 0 here.
My binary has seven digits per group. Will it work?
Yes, as long as the groups are separated by spaces, because missing leading zeros are filled in. A 7-bit string with no spaces can't be told apart reliably, so add a space after every seven digits first.
Does it decode Hindi, Chinese and emoji?
Yes, when the binary was made with UTF-8, the standard on the web. These characters take two to four bytes each, and the table shows which bytes belong together.
Is my message sent anywhere?
No. Decoding happens inside your browser, so what you paste never reaches our server.
How do I go the other way?
Use the binary translator to turn your own words into binary.