How to Read Binary Code
Four steps turn any string of 0s and 1s into letters. Try them in the practice box below.
Working with accents, emoji or invisible characters? Our UTF-8 byte identity casebook compares exact bits and explains when a round trip changes them.
Reading Binary Step by Step
- Split the binary into bytes. Group the digits into sets of eight from the left. Each group of eight bits is one byte, and in plain English text one byte is one character.
- Write the place values over each byte. From left to right the eight positions are worth 128, 64, 32, 16, 8, 4, 2 and 1. Each place is double the one to its right.
- Add up the places that hold a 1. Ignore the positions with a 0. The sum of the positions with a 1 is the byte’s value, a number from 0 to 255.
- Look the number up as a character. Use an ASCII table or the binary alphabet: 65 to 90 are A to Z, 97 to 122 are a to z, 48 to 57 are the digits and 32 is a space.
Practice: Flip the Bits
Tap a bit to switch it between 0 and 1. The sum of the place values that are on is the byte's value.
01001000 = 64 + 8 = 72, which is “H”.
Worked Example: 01001000 01101001
| Byte | Places with a 1 | Value | Character |
|---|---|---|---|
| 01001000 | 64 + 8 | 72 | H |
| 01101001 | 64 + 32 + 8 + 1 | 105 | i |
So 01001000 01101001 reads “Hi”. A quicker check: capital letters start with 010, lowercase letters with 011, and the last five bits are the letter's position in the alphabet (H is the 8th letter: 01000).
Check Your Answer
Paste the same binary into the binary translator to confirm, look letters up in the binary alphabet, or write your own message with the text to binary translator.
Reading a binary number vs reading binary text
The bits give you a number first. For example, 1011 is 8 + 2 + 1 = 11. The byte 01000001 is 64 + 1 = 65. If that byte represents ASCII text, take one more step: character code 65 is A.
- If a math question asks for a binary number's decimal value, stop at the sum. There is no letter to look up.
- If a puzzle says the bits contain an English message or ASCII text, split them into character groups and look up each value.
- Bits alone do not tell you their meaning. A file can hold numbers, text, images or instructions; use its format or the question's instructions to choose how to read it.
Splitting a long binary string with no spaces
For 8-bit text, the total number of bits must be a multiple of 8. Count first, then mark a boundary after every eight bits from the left. Here is a 24-bit string:
010010000110100100100001
- Split:
01001000 01101001 00100001gives three complete bytes. - Decode each byte:
01001000= 72 = H;01101001= 105 = i;00100001= 33 = !. - Join the characters: the message is
Hi!. Spaces between byte groups are separators; an actual space in the message needs its own byte.
If the count does not divide by 8, a leading 0 may have been lost, or the source may use 7-bit ASCII, whose total must divide by 7. Check the source before adding bits: a missing bit in the middle shifts every later boundary. A count that divides evenly is a useful check, but does not prove you chose the right grouping.
Recognize letters and digits by their first bits
In 8-bit ASCII, these prefixes help you spot likely character types before looking up the full value. Read them from the left.
| First bits or full byte | Character type | Check the examples |
|---|---|---|
010 | Uppercase letters A–Z | 01000001 = A; 01011010 = Z |
011 | Lowercase letters a–z | 01100001 = a; 01111010 = z |
0011 | Digits 0–9 | 00110000 = 0; 00111001 = 9 |
00100000 | Space (the whole byte) | 00100000 = space |
For letters A–Z and a–z, the last five bits give the alphabet position: 00001 is 1 (A or a), and 11010 is 26 (Z or z). The prefix tells you which case to use.
These are clues, not a complete character test. Some punctuation shares the letter prefixes: 01000000 is @, not a letter. The digit prefix also includes punctuation after 9:00111010 is a colon. Confirm the full byte is in the letter or digit range before naming it. These shortcuts apply to ASCII; accented letters and emoji need UTF-8 decoding across multiple bytes.
Decode a longer message
Try this two-word message. Keep the space byte when you put the words back together.
01000111 01101111 00100000 01101110 01101111 01110111
- Split: there are 48 bits, grouped into six bytes from left to right.
- Recognize the categories: the first byte has the uppercase prefix, the second has the lowercase prefix, the third is the space byte, and the last three have the lowercase prefix.
- Look up the codes: check each full value in the table below to confirm the letters and the word boundary.
- Join the words: G + o + space + n + o + w reads
Go now.
| Byte position | Binary | Decimal code | Character |
|---|---|---|---|
| 1 | 01000111 | 71 | G |
| 2 | 01101111 | 111 | o |
| 3 | 00100000 | 32 | space |
| 4 | 01101110 | 110 | n |
| 5 | 01101111 | 111 | o |
| 6 | 01110111 | 119 | w |
Frequently asked questions
Do you read binary from left to right?
You read the bytes from left to right, like words in a sentence. Inside a byte, the leftmost bit is the biggest place value (128) and the rightmost is the smallest (1).
Why are there eight digits in each group?
Eight bits make a byte, the unit computers use for one character of English text. A byte can hold 256 values (0 to 255), enough for every ASCII character. Some older material uses 7-bit groups, which are the same codes without the leading 0.
What if a group has only seven digits?
If every group has seven digits, it is probably 7-bit ASCII: put a 0 in front and read it normally. If only one group is short, a digit was likely lost when it was typed, and every character after it will come out wrong.
How do I read binary numbers that are not text?
The same way: add up the place values. 101 is 4 + 0 + 1 = 5. Only when the bytes are meant as text do you take the extra step of looking each number up as a character.