KS3 · Computer Science
Representing numbers in binary
In binary, 11111111 isn't eleven million-something — it's 255. By the end of this lesson 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.
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?
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
- Binary is base 2: it uses only the digits 0 and 1, and each binary digit is called a bit. A group of eight bits is called a byte.
- Binary place values start at 1 on the right and double each time: 1, 2, 4, 8, 16, 32, 64, 128. A binary number's value is the place values of its 1 bits added together.
- To convert decimal to binary, work from the biggest place value down: write 1 and take it away if it fits, otherwise write 0. An 8-bit number can represent every whole number from 0 to 255.
The big picture
Binary is base 2: it uses only 0 and 1 (bits), and each place value doubles as you move left — 1, 2, 4, 8, 16, 32, 64, 128 for an 8-bit byte. To read binary, add the place values of the 1 bits. To write a decimal number in binary, work from the biggest place value down: write 1 and take it away if it fits, or 0 if it doesn't. Eight bits cover every whole number from 0 to 255, and each extra bit doubles how many values are possible.
Key points
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. Place values start at 1 on the RIGHT and double as you move left, so the left-hand bit of a byte 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?
What is a byte?
Why is binary called base 2?
The place values of an 8-bit binary number, from right to left?
How do you turn a binary number into decimal?
Decimal to binary: where do you start?
Decimal to binary: what do you do at each place value?
Smallest and largest number an 8-bit binary number can represent?
How many different values can 8 bits represent?
What happens to the number of possible values when you add one more bit?
Do zeros added on the left change a binary number?
What is the binary number 10 in decimal?
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
- Abstraction in computational thinking
- Adding binary numbers
- Binary to denary conversion
- Boolean logic: AND, OR, NOT
- Bubble sort
- Building truth tables
- Client-server vs peer-to-peer
- Collecting and recording data
- Comparing sorting algorithms
- Compressing data
- Creating a 3D animation
- Decomposition: splitting problems up
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.