KS3 · Computer Science

Binary to denary conversion

To you, 101 means one hundred and one. To a computer, it means five. By the end of this lesson you'll know why.

Computer Science · Binary

Eight switches, one number

2 + 1 = 3

8-bit binary 00000011 = 3 in denary

Denary3
tap a bit to flip it

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.

Watch out: The place values double from right to left: 1, 2, 4, 8 and so on. The leftmost bit is worth the most, not the least.

Denary vs binary

Denary (base 10)vsBinary (base 2)

You already use place value every day. Binary keeps the idea and changes one rule.

Focus

Moving one place to the left

Denary (base 10)

Each place value is ten times the one on its right: 1, 10, 100, 1000 …

Binary (base 2)

Each place value is double the one on its right: 1, 2, 4, 8 …

The insight

This is the only rule that changes. Ones, tens, hundreds becomes ones, twos, fours.

Digits it uses

Denary (base 10)

Ten digits: 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9

Binary (base 2)

Two digits: 0 and 1. Each binary digit is called a bit.

What the digits 101 mean

Denary (base 10)

1 hundred + 0 tens + 1 one = one hundred and one

Binary (base 2)

1 four + 0 twos + 1 one = five

Writing the number twelve

Denary (base 10)

12: two digits

Binary (base 2)

1100: four bits (8 + 4)

Why binary?

?

Reason it through

Why do computers count in binary instead of denary?

Link 1 of 3

First link · your turn

A computer stores and processes data using electronic circuits. How many states does the circuit use to hold data?

2
Locked — reveal the link above first
3
Locked — reveal the link above first

Your turn · Binary to denary

Finish the conversion

Convert the binary number 01101001 to denary.

  1. Write the place values above the bits, starting with 1 on the right and doubling as you go left: 128, 64, 32, 16, 8, 4, 2, 1 above 0, 1, 1, 0, 1, 0, 0, 1.
  2. missing step
Which line is step 2?

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 is left?

1left ← 45
2FOR EACH place IN 128, 64, 32, 16, 8, 4, 2, 1
3 IF place <= left THEN
4 left ← left - place
5 OUTPUT 1
6 ELSE
7 OUTPUT 0
8 ENDIF
9ENDFOR
place
fits?
left
Output
Press Start to run the first line.
·

Ready when you are — step through one line at a time.

Bytes

How big can a byte go?

A group of 8 bits is called a byte. What is the largest denary number one byte can hold? Commit to a guess before you work it out.

Your estimate

500

01000

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

Computers count with just 0 and 1. Learn to read their numbers and write your own.

What you need to know

  • Denary (decimal) is base 10: it uses the ten digits 0 to 9, and each place value is ten times the one to its right (1, 10, 100, 1000 …).
  • 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.
  • In binary each place value is double the one to its right. In 8 bits, from right to left, they are 1, 2, 4, 8, 16, 32, 64 and 128.
  • Binary to denary: write the place values above the bits and add the place values of every column holding a 1. Columns holding 0 add nothing.
  • Denary to binary: start at the largest place value. If it fits into what is left, write 1 and subtract it; otherwise write 0. Carry on until every column is filled and nothing is left.
  • A byte is a group of 8 bits. It can represent 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 the place values of the columns holding a 1. To write it, work down from 128, writing 1 and subtracting whenever a place value fits. One byte (8 bits) holds 0 to 255.

Key points

1Denary = base 10, digits 0–9, place values × 10 each step left.
2Binary = base 2, digits 0 and 1 (each one a bit), place values × 2 each step left.
3Computers use binary: their circuits have two states, on and off.
48-bit place values, left to right: 128, 64, 32, 16, 8, 4, 2, 1.
5Binary → denary: add the place values of the 1 columns only.
6Denary → binary: biggest place value first; fits → 1 and subtract, doesn't fit → 0.
71 byte = 8 bits = denary 0 to 255.

Worked example

Problem

Convert the denary number 200 to 8-bit binary, then check your answer by converting it back.

⚠ Watch out

Reading a binary number as if it were denary, so thinking 101 means one hundred and one. In binary, 101 is 4 + 1 = 5. The other trap is adding up every place value: only the columns holding a 1 count, and a 0 column 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?
The base-10 number system we use every day. It uses the ten digits 0 to 9.
In denary, how does each place value compare with the one to its right?
It is ten times bigger: 1, 10, 100, 1000 and so on.
What is binary?
The base-2 number system. It uses only the two digits 0 and 1.
What is a bit?
A single binary digit: a 0 or a 1.
Why do computers use binary?
Their electronic circuits store and process data as two states, on and off, so each digit can only have two values.
In binary, how does each place value compare with the one to its right?
It is double: 1, 2, 4, 8 and so on.
List the place values of an 8-bit binary number, from left to right.
128, 64, 32, 16, 8, 4, 2, 1
How do you convert a binary number to denary?
Write the place values above the bits, then add the place values of every column holding a 1.
What does a column holding 0 add to the total?
Nothing. Only the columns holding a 1 count.
How do you convert a denary number to binary?
Start at the largest place value. If it fits into what is left, write 1 and subtract it; if not, write 0. Move to the next place value.
When converting denary to binary, when do you stop?
When every column has a bit in it and nothing is left over. Columns after the last 1 still get a 0.
Does the binary number 101 mean one hundred and one?
No. In binary 101 means 4 + 1 = 5.
What is a byte?
A group of 8 bits.
What range of denary values can one byte hold?
0 (00000000) to 255 (11111111).

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 posted

More KS3 Computer Science topics

See the full KS3 Computer Science curriculum →

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 1 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.