How computers think in 0s and 1s — and why it powers everything
Every photograph you've ever taken, every song you've streamed, every text message you've sent — all of it is stored as a sequence of just two digits: 0 and 1. When NASA's Voyager 1 probe sends signals from 24 billion kilometres away, those signals arrive as binary. When your bank processes a £5,000 transfer, the amount is stored in binary. The entire digital world — from TikTok's recommendation algorithm to the NHS patient database — runs on a number system invented in the 17th century by Gottfried Leibniz, inspired by Chinese hexagrams. Today you learn the language every computer on Earth speaks.
Denary (base-10) is the number system humans use — it has 10 digits (0–9). Binary (base-2) is what computers use — it has only 2 digits: 0 and 1. Each binary digit is called a bit. A group of 8 bits is called a byte.
Just like denary has place values of 1, 10, 100, 1000 — binary has place values that are powers of 2. For an 8-bit number, the columns are:
To convert denary to binary: work from left to right. Ask "Does this number fit in column 128?" If yes → write 1 and subtract. If no → write 0. Repeat for each column.
Write out the 8 place values: 128 · 64 · 32 · 16 · 8 · 4 · 2 · 1
Starting from 128: if your number ≥ column value → write 1 and subtract. If not → write 0 and move on.
Repeat for each column until you reach the 1s column. The remainder must be 0 at the end.
Divide your denary number by 2. Record the remainder (0 or 1).
Take the quotient and divide by 2 again. Record the remainder. Repeat until the quotient is 0.
Read the remainders bottom to top — that is your binary number. Pad with leading zeros to make 8 bits.
Reading division remainders top to bottom — you must read them bottom to top. The last remainder is the most significant bit (leftmost).
Forgetting to pad to 8 bits — if your binary is only 5 bits long, add leading zeros: 00101010, not 101010.
Skipping a column in the place value method — always write a 0 if the number doesn't fit. Never leave a column blank.
Click each step to reveal the working — try to predict first!
Write your answers in the lines below, then reveal the marking scheme.
Answer all 5 questions to earn your XP badge. Instant feedback on every question.