Bits, bytes and place values
Binary Numbers Explained: Bits, Bytes and Place Values
Every photo, message and app on your phone is stored as bits: tiny switches that are either off (0) or on (1). This guide explains how binary numbers work, what bits and bytes are, and why each position is worth double the one to its right.
What is binary?
Computers store everything as bits. A bit is either 0 (off) or 1 (on). Binary is a base-2 number system: each position is worth double the one to its right. In everyday decimal (base 10) each position is worth ten times more; binary works the same way with twos.
Place values
Eight bits make a byte. Reading from the right, the place values are 1, 2, 4, 8, 16, 32, 64 and 128. With every bit on, a byte is 255, the largest 8-bit number:
Four bits make a nibble, worth up to 15. Sixteen bits go up to 65,535.
4 bits → 0–15 · 8 bits → 0–255 · 16 bits → 0–65,535
Counting to 15
Counting up is like a car's odometer: when a bit goes past 1, it resets to 0 and carries to the left.
| 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 |
Try it: flip the bits
Tap the bits to turn them on and off and watch the value change.
Frequently asked questions
- What is a bit?
- A bit is the smallest unit of data in a computer. It has only two values: 0 (off) or 1 (on).
- How many bits are in a byte?
- A byte is 8 bits. With all 8 bits on, a byte is 255, so one byte can store any value from 0 to 255.
- What is a nibble?
- A nibble is 4 bits, half a byte. It can store values from 0 to 15, which is exactly one hexadecimal digit.
- Why do computers use binary?
- Electronic circuits are reliable at telling two states apart, on and off. Binary maps directly onto those two states.
Practise Binary Basics as a game
The Binary Game turns this lesson into quick rounds with a breakdown after every answer. Free to start on iPhone and iPad.