How to Read Binary: Numbers, Bits, Bytes and ASCII Text
Learn how to read binary: count in binary numbers, group bits into bytes, and decode 8-bit patterns such as 01001000 into letters with a simple ASCII chart.
Updated
To read binary, give each digit a place value that doubles from right to left (1, 2, 4, 8, 16, 32, 64, 128) and add up the place values wherever there is a 1. So 01000001 is 64 + 1, which is 65. If the binary stands for text, split it into groups of eight bits, turn each group into a number, and look the number up in an ASCII chart, where 65 is the letter A.
Bits, bytes and nibbles
A bit is one binary digit: a 0 or a 1. On its own a bit can only answer a yes or no question, so bits are used in groups.
- 4 bits make a nibble, which holds 16 values (0 to 15).
- 8 bits make a byte, which holds 256 values (0 to 255).
- 16 bits hold 65,536 values, and 32 bits hold 4,294,967,296.
Each extra bit doubles the number of possible patterns. The byte is the unit that matters most, because files, memory and text are all measured and addressed in bytes. For how bits and bytes show up in internet speeds and file sizes, see Bits vs Bytes.
Counting in binary
Counting works like a car odometer with only two digits on each wheel. The rightmost column flips on every step. When a column rolls over from 1 to 0, it carries into the column on its left.
| Decimal | Binary | Decimal | Binary |
|---|---|---|---|
| 0 | 0000 | 8 | 1000 |
| 1 | 0001 | 9 | 1001 |
| 2 | 0010 | 10 | 1010 |
| 3 | 0011 | 11 | 1011 |
| 4 | 0100 | 12 | 1100 |
| 5 | 0101 | 13 | 1101 |
| 6 | 0110 | 14 | 1110 |
| 7 | 0111 | 15 | 1111 |
Look down each column of bits and a rhythm appears. The ones column alternates every row. The twos column alternates every two rows, the fours column every four, and the eights column every eight.
You can count this way on your fingers. Treat each finger as a bit, down for 0 and up for 1. One hand reaches 31 and two hands reach 1,023.
Reading a binary number
Take the byte 01101001. Write the place values underneath and keep the ones that sit under a 1.
| Bit | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 |
|---|---|---|---|---|---|---|---|---|
| Place value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
The ones are under 64, 32, 8 and 1. Adding them gives 105.
That is the whole skill. Longer numbers just have more columns. The guide to Binary to Decimal covers shortcuts, larger values and negative numbers, and Decimal to Binary goes the other way.
Reading binary as text
Binary has no built-in meaning. The byte 01101001 is the number 105, and whether that is a quantity, a shade of red or a letter depends on the agreement between whoever wrote it and whoever reads it. For text, the oldest and most widespread agreement is ASCII, which assigns a number from 0 to 127 to each English letter, digit and punctuation mark. In ASCII, 105 is a lowercase i.
| Character | Decimal | Binary |
|---|---|---|
| space | 32 | 00100000 |
| 0 | 48 | 00110000 |
| 9 | 57 | 00111001 |
| A | 65 | 01000001 |
| B | 66 | 01000010 |
| C | 67 | 01000011 |
| Z | 90 | 01011010 |
| a | 97 | 01100001 |
| b | 98 | 01100010 |
| z | 122 | 01111010 |
The pattern that saves you the chart
ASCII was laid out so that the bits themselves tell you what kind of character you are looking at. Split each byte into its first three bits and its last five.
- Starts with
010: an uppercase letter. The last five bits are its position in the alphabet, so00001is A,00010is B and11010(26) is Z. - Starts with
011: a lowercase letter, with the same last five bits.01100001is a. - Starts with
0011: a digit. The last four bits are the digit's own value, so00110111is 7. 00100000: a space.
Upper and lower case differ by a single bit, the one worth 32. That is why A is 65 and a is 97.
Worked example: decoding a word
Decode 01001000 01100101 01101100 01101100 01101111.
01001000starts with010, so it is uppercase. The last five bits,01000, are 8. The eighth letter is H.01100101starts with011, so it is lowercase.00101is 5: e.01101100is lowercase.01100is 12: l.01101100again: l.01101111is lowercase.01111is 15: o.
The message is "Hello". If a binary string arrives without spaces, count off eight bits at a time from the left.
Beyond ASCII
ASCII only covers 128 characters. Modern text uses UTF-8, which keeps every ASCII character as the same single byte and adds accented letters, other scripts and emoji as sequences of two to four bytes. In UTF-8, any byte that begins with 0 is plain ASCII, and bytes that begin with 1 belong to a longer sequence. So the method above reads English text correctly, and anything else needs a UTF-8 decoder.
Long runs of bits are hard on the eyes, which is why programmers usually write each byte as two base 16 digits instead. What Is Hexadecimal explains that shorthand.
Checking your reading with the converter
The Number Base Converter converts numbers, not text, so it will not turn a whole binary message into words. It is still the quickest way to check each byte. Type 01001000 into the binary field and the decimal field shows 72, which you can look up as H. The same screen shows the hex form, 48, and the bit length.
To go the other way, type a character's ASCII number into the decimal field and read its bits from the 8-bit row of the binary panel, already padded with leading zeros.
Try it
Open the Number Base Converter, type 1 into the binary field, and keep adding digits to watch the decimal value double with each 0 you append. Then decode this one yourself, a byte at a time: 01000010 01101001 01110100.