KS3 · Computer Science
Binary to denary conversion
To you, 101 means one hundred and one. To a computer, it means five. Same three digits, different number. By the end of this lesson you'll know why.
Computer Science · Binary
Eight switches, one number
Each box is one bit: a binary digit, 0 or 1. The small number above each box is its place value. Tap a bit to flip it and watch the denary value change.
Why binary?
Reason it through
Why do computers count in binary instead of denary?
First link · your turn
A computer stores and processes data using electronic circuits. How many states does the circuit use to hold data?
Computer Science · Algorithms
Trace table — dry run the code
Now the other way: turn the denary number 45 into 8-bit binary. At each place value, from 128 down to 1, ask one question: does it fit into what's left?
Ready when you are — step through one line at a time.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Computers count with just 0 and 1. Learn to read their numbers, then write your own.
What you need to know
- Denary (also called decimal) is base 10: it uses the ten digits 0 to 9.
- In denary, each place value is ten times the one to its right: 1, 10, 100, 1000 and so on.
Have a goQuick one before binary arrives: in the denary number 3000, what is the 3 actually worth?
Three thousand.
The 3 sits in the 1000 column, so its position multiplies it; reading it as just 3 ignores where it is, and position is the whole idea behind binary too.
- Binary is base 2. It uses only the digits 0 and 1, and each binary digit is called a bit.
- Computers use binary because their electronic circuits store and process data as two states: on and off.
- Here's the one rule that changes: in binary, each place value is double the one to its right.
Have a goSam has a binary column worth 16 and swears the next column to its left is worth 26, 'because that's how place value works'. What is it really worth?
32.
Sam added ten. Binary columns double, so the next one along is 16 × 2 = 32, and even denary multiplies by ten rather than adding it.
- So for 8 bits, the place values from right to left are 1, 2, 4, 8, 16, 32, 64 and 128.
- Binary to denary: write the place values above the bits, then add up the columns holding a 1. A 0 column adds nothing.
Have a goTry it in your head: what is 10000001 in denary?
129.
Only the 128 and 1 columns hold a 1, so 128 + 1 = 129; counting the two 1s would give 2, which ignores what each column is worth.
- Denary to binary: start at the largest place value. Fits into what's left? Write 1 and subtract. Doesn't fit? Write 0.
- Keep going until every column has a bit and nothing is left over, even if that means a few 0s at the end.
- A byte is a group of 8 bits. It can hold the denary values 0 (00000000) to 255 (11111111).
The big picture
Binary is place value with one rule changed. Denary (base 10) uses the digits 0 to 9, and each place value is ten times the one to its right. Binary (base 2) uses only 0 and 1, called bits, and each place value is double the one to its right. Computers use binary because their circuits store and process data as two states, on and off. To read binary, add up the place values of the columns holding a 1. To write it, work down from 128: if a place value fits, write 1 and subtract; if not, write 0. One byte (8 bits) holds 0 to 255.
Key points
Worked example
Problem
Convert the denary number 200 to 8-bit binary, then check your answer by converting it back.
⚠ Watch out
Reading binary as if it were denary, so thinking 101 means one hundred and one. Looks convincing. It isn't: in binary, 101 is 4 + 1 = 5. The other trap is adding up every place value. Only the columns holding a 1 count; a 0 adds nothing.
Memory hook
Picture a row of eight light switches labelled 128, 64, 32, 16, 8, 4, 2, 1. Lights on count. Lights off don't. Every light on? 255.
Check yourself
Without scrolling up: what is 00010110 in denary? What is 19 as an 8-bit binary number? What is the largest number one byte can hold? (Answers: 22, 00010011 and 255.)
Flashcards
(14)What is denary?
In denary, how does each place value compare with the one to its right?
What is binary?
What is a bit?
Why do computers use binary?
In binary, how does each place value compare with the one to its right?
The eight place values of an 8-bit number, from left to right?
How do you convert binary to denary?
What does a column holding 0 add to the total?
How do you convert denary to binary?
Converting denary to binary: when do you stop?
Does the binary number 101 mean one hundred and one?
What is a byte?
What range of denary values can one byte hold?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore KS3 Computer Science topics
How this lesson was checked. This KS3 Computer Sciencelesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 30 October 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.