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