Binary is a base‑2 number system.
That means it only uses two digits:
0 and 1.
Our usual decimal system is base‑10 and uses digits
0–9.
Binary is how computers represent numbers using only two states:
off (0) and on (1).
Just like decimal has place values (ones, tens, hundreds…), binary has place values too, but each place is a power of 2 instead of 10.
| Bit position | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|
| Power of 2 | 2⁷ | 2⁶ | 2⁵ | 2⁴ | 2³ | 2² | 2¹ | 2⁰ |
| Value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
Each position is called a bit (binary digit). 8 bits together are called a byte.
Line it up with the place values:
| Bit position | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|
| Value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
| Bit | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 |
Only positions with a 1 are added:
64 + 8 + 2 = 74
So 01001010 in binary equals 74 in decimal.
16 + 4 + 1 = 21.
1, 2, 4, 8, 16, 32 → stop at 32 (too big), so use up to 16.
1 in that bit.1 there.1 there.0.| Value | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|
| Bit | 1 | 1 | 0 | 0 | 1 |
So 25 in decimal is 11001 in binary.
8 + 4 + 1 = 13 → 01101.
| Decimal | Binary |
|---|---|
| 0 | 0000 |
| 1 | 0001 |
| 2 | 0010 |
| 3 | 0011 |
| 4 | 0100 |
| 5 | 0101 |
| 6 | 0110 |
| 7 | 0111 |
| 8 | 1000 |
| 9 | 1001 |
| 10 | 1010 |
| 11 | 1011 |
| 12 | 1100 |
| 13 | 1101 |
| 14 | 1110 |
| 15 | 1111 |
Everything in a computer—numbers, text, images, sound—is ultimately broken down into patterns of bits.
Answers: base 2, two values (0 or 1), 10, 0111, 8 bits.