Skip to content

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:

1
128
1
64
1
32
1
16
1
8
1
4
1
2
1
1
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255

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.

Numbers 0 to 15 in decimal and 4-bit binary
DecimalBinary
00000
10001
20010
30011
40100
50101
60110
70111
81000
91001
101010
111011
121100
131101
141110
151111

Try it: flip the bits

Tap the bits to turn them on and off and watch the value change.

Decimal
0
Binary
0000 0000

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.