KS3 · Computer Science

Representing numbers in binary

In binary, 11111111 isn't eleven million-something. It's 255. Soon you'll know why, and you'll write any number from 0 to 255 in eight bits.

Computer Science · Data

Flip the bits. Watch the number.

16 + 2 + 1 = 19

8-bit binary 00010011 = 19 in denary

Decimal19
tap a bit to flip it

Each box is one bit, and the number above it is that bit's place value. Tap a bit to switch it between 0 and 1. Try this: switch every bit to 0. Then switch every bit to 1. Then flip only the left-hand bit, and after that only the right-hand bit. How far does the number jump each time?

Watch out: The place values start at 1 on the RIGHT and double as you move left. The left-hand bit of a byte is the big one: it's worth 128.

Same idea, one rule changed

Decimal (denary)vsBinary

Start with the top row. It's the one that matters most.

Focus

Each place is worth…

Decimal (denary)

10 times the place to its right

Binary

2 times the place to its right

The insight

This is the whole difference. Move one place left in decimal and you multiply by 10. In binary you multiply by 2.

Digits it uses

Decimal (denary)

Ten digits: 0 to 9

Binary

Two digits: 0 and 1

Place values, from the right

Decimal (denary)

1, 10, 100, 1000 … (ones, tens, hundreds, thousands)

Binary

1, 2, 4, 8, 16, 32, 64, 128

Its name

Decimal (denary)

Base 10

Binary

Base 2

Your turn to choose

Turn 75 into binary: you pick the missing steps

Convert the decimal number 75 into an 8-bit binary number.

  1. Write the place values: 128, 64, 32, 16, 8, 4, 2, 1. Start with the biggest, 128, and ask: does it fit into 75?
  2. missing step
Which line is step 2?

What do you think?

00000101 or 101: which is bigger?

Amir writes a binary number as 00000101. Beth writes a binary number as 101.

Which is closest to what you think right now?
How sure are you?

Commit to a number

How many numbers fit in one byte?

One byte is 8 bits. How many DIFFERENT whole numbers can 8 bits represent? Slide to your answer before you look.

Your estimate

256 values

0 values512 values

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

Binary works just like the numbers you already use, with one rule changed: every place is worth double the one to its right, not ten times.

What you need to know

  • Everyday numbers are decimal (denary): base 10, digits 0 to 9, each place worth 10 times the one to its right.
  • Binary is base 2. It uses only the digits 0 and 1, and each binary digit is called a bit.
  • In binary, each place is worth 2 times the place to its right. Double, not times ten.
  • Starting from the right, an 8-bit number's place values are 1, 2, 4, 8, 16, 32, 64 and 128.
  • Have a goYour friend insists the left-hand bit of a byte is worth 1, "because you always read from the left". Are they right? What is that bit really worth?

    No: the left-hand bit of a byte is worth 128.

    Place values start at 1 on the RIGHT and double as you move left, so after eight places the left-hand bit is 128. Reading direction doesn't change which end is worth 1.

  • A group of eight bits is called a byte.
  • Binary to decimal: add up the place values of every bit that is 1. A 0 bit adds nothing.
  • Have a goIn your head: what is 10000001 in decimal?

    129

    Only the 128 place and the 1 place hold a 1, so 128 + 1 = 129. The six 0s in between add nothing, however many of them there are.

  • Decimal to binary: start at the biggest place value. Fits into what's left? Write 1 and subtract. Doesn't fit? Write 0.
  • Have a goWrite 9 in binary using just the 8, 4, 2 and 1 places.

    1001

    8 fits into 9 (1 left), 4 and 2 don't fit into 1, then 1 fits. Forget to take the 8 away and every place seems to fit, giving 1111, which is 15.

  • With 8 bits you can show every whole number from 0 (all bits 0) to 255 (all bits 1).
  • Each extra bit doubles how many different values you can represent.
  • Zeros added on the left, called leading zeros, never change a binary number's value.

The big picture

Binary is base 2: it uses only 0 and 1 (bits), and each place is worth double the one to its right, giving 1, 2, 4, 8, 16, 32, 64 and 128 for an 8-bit byte. To read binary, add up the place values of the 1 bits. To write a decimal number in binary, start at the biggest place value: if it fits into what's left, write 1 and take it away; if not, write 0. Eight bits cover every whole number from 0 to 255, each extra bit doubles how many values you can have, and zeros on the left change nothing.

Key points

1Decimal (denary) is base 10: it uses the ten digits 0 to 9, and each place is worth 10 times the place to its right.
2Binary is base 2: it uses only 0 and 1, and each place is worth 2 times the place to its right.
3The place values of an 8-bit number, from the right, are 1, 2, 4, 8, 16, 32, 64 and 128. Eight bits make a byte.
4Binary to decimal: add together the place values of every bit that is 1. A bit that is 0 adds nothing.
5Decimal to binary: from the biggest place value down, write 1 and subtract it if it fits into what's left; if it doesn't, write 0. Read the bits from left to right.
68 bits represent 0 (all 0s) up to 255 (all 1s). Each extra bit doubles how many values can be represented, and zeros added on the left don't change a binary number's value.

Worked example

Problem

A game stores each player's score as an 8-bit binary number. Sara scores 200. What binary number does the game store?

⚠ Watch out

Writing the place values the wrong way round, with 1 on the left and 128 on the right. We read from the left, so it feels natural. But place values start at 1 on the RIGHT and double moving left: a byte's left-hand bit is worth 128.

🧠

Memory hook

Start at 1 on the right and keep doubling: 1, 2, 4, 8, 16, 32, 64, 128. Add up only the places holding a 1. Switch all eight on and you get the biggest a byte can hold: 255.

✓

Check yourself

Without looking back: what is 00010110 in decimal, and what is 37 in 8-bit binary? (Answers: 16 + 4 + 2 = 22; 32 + 4 + 1 gives 00100101.)

Flashcards

(12)
What is a bit?
A single binary digit: a 0 or a 1.
What is a byte?
A group of eight bits.
Why is binary called base 2?
It uses two digits (0 and 1), and each place is worth 2 times the place to its right. Decimal is base 10: ten digits, and each place is 10 times the one to its right.
The place values of an 8-bit binary number, from right to left?
1, 2, 4, 8, 16, 32, 64, 128
How do you turn a binary number into decimal?
Write the place value above each bit, then add up the place values of the bits that are 1. Bits that are 0 add nothing.
Decimal to binary: where do you start?
At the biggest place value (128 for 8 bits), then work down to 1.
Decimal to binary: what do you do at each place value?
If it fits into what's left, write 1 and subtract it. If it doesn't fit, write 0. Stop when nothing is left and fill any remaining places with 0.
Smallest and largest number an 8-bit binary number can represent?
0 (every bit 0) and 255 (every bit 1).
How many different values can 8 bits represent?
256: every whole number from 0 to 255.
What happens to the number of possible values when you add one more bit?
It doubles.
Do zeros added on the left change a binary number?
No. 00000101 and 101 are both 5: leading zeros add nothing.
What is the binary number 10 in decimal?
2: one 2 and no 1s. It is not ten.

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

Helpful guides for parents and students