Grade 8 · Media & Informatics
Explain how numbers, text and images are coded as binary data.
You already know a bit is a 0 or 1 and that eight bits make a byte. Binary is simply the number system that uses only those two digits. Where our everyday (decimal) system has ten digits, 0–9, binary has just two, 0 and 1 — and that is all a computer needs, because its switches are off or on.
To store anything, a computer codes it as binary. Numbers become binary numbers. Text is coded by giving each character a number — in a common code, the letter 'A' is 65 — and that number is stored in binary. Images are split into tiny dots called pixels, and each pixel's colour is stored as numbers too.
Because one byte (8 bits) gives 256 possible patterns, it is a handy unit. It is enough to store one basic text character, and larger things — a photo, a song, a video — are just very many bytes. All of it, in the end, is binary.
Have a go right here. Nothing is saved and you can retry as much as you like. Create a free account when you want to save your progress and get Archie, your tutor.
Create a free account to save your progress, track mastery and ask Archie, your tutor, for a hand.
Already with us? Open this lesson in learncoach.ch for mastery tracking and Archie, your tutor.