Every digital system, from smartphones to supercomputers, relies on binary – a language made entirely of 1s and 0s. This chapter lays the foundation for understanding how computers represent and store all kinds of data. Whether it’s a number, a word, or a file, it must be converted into binary before it can be processed or saved.
You’ll explore the different units used to measure data – from bits to petabytes – and how to calculate the size of files using common units. You’ll also learn to convert between number systems: denary, binary, and hexadecimal. These skills are vital for understanding how memory works and for solving common computing problems like overflow errors.
Computers are not magic – they work through millions of simple ON and OFF switches. These switches are called transistors, and the two possible states (ON/OFF) are represented using binary digits: 1 and 0. Everything a computer does – storing photos, playing music, showing videos, processing apps – is ultimately controlled by these binary numbers.
Learning Objectives:
Define binary and explain why computers use it.
Identify types of data that must be converted into binary.
Explain how binary links to the structure of modern computers.
All modern computers rely on binary – a number system made up of just two digits: 1 and 0. This is because the internal components of a computer, such as circuits and transistors, are designed to be in one of two states: on (represented by a 1) or off (represented by a 0). These two states can be used to encode all forms of data, from numbers and letters to images, videos, and software instructions.
Before any type of data can be stored, processed, or transmitted by a computer, it must first be converted into binary format. This means that a photograph, for example, becomes a long string of 1s and 0s, where each group of digits might represent the colour of a single pixel. Similarly, the letter “A” is stored as 01000001 using an agreed character encoding system (ASCII). Music, videos, programs, websites – they are all ultimately represented in binary when inside a computer system.
Binary is a practical choice for computers because it’s both simple and reliable. There’s no confusion in digital electronics between just two voltage levels – either something is there or it isn’t. This makes processing fast, storage efficient, and error detection easier to manage. Without binary, digital computing as we know it would not be possible.
Key Terms:
Binary: A number system using only 1s and 0s.
Transistor: A tiny switch inside a computer that can be on or off.
Bit: The smallest unit of data; a single 1 or 0.
Digital: Technology that uses binary (1s and 0s) to represent information.
Processing: The manipulation of data by a computer.
Storage: Saving data for later use.
Circuit: A complete path through which electric current can flow.
Voltage level: The electrical signal used to represent 0s and 1s.
Revision Focus
Computers use binary because transistors can only be in two states: on (1) or off (0).
All data – including text, images, sound, and instructions – must be converted into binary before being stored or processed.
Binary makes computing reliable, fast, and well-suited to electronic hardware.
Add a new section to your WBK with the title of this part of the course.
Copy the questions into your WBK and answer them in full sentences.
Explain why binary is used instead of denary in digital systems.
Give three types of data that must be converted into binary.
Describe how a photograph or text file is represented using binary.
GCSE Exam-style Questions
State two reasons why computers use the binary number system. (2)
Explain how binary is used to represent images or sound in a computer. (3)
From tiny files to massive cloud storage, data is measured using standard units. Understanding these units helps us know how much data can be stored or transferred. Whether saving a Word document or streaming a video, you’re dealing with bits and bytes.
Learning Objectives:
Identify and define different data storage units.
Convert between bits, bytes, and larger units.
Understand why storage units are important in computing.
When you save a file or install a program, the data takes up space in the computer’s memory or storage device. To measure this space, computers use a system of data units, starting from the smallest possible value – the bit. A bit (short for binary digit) is either a 0 or a 1. By itself, a single bit can only store two possible values, which isn’t very useful on its own. That’s why bits are grouped together to form larger units.
A byte is a group of 8 bits and is enough to store a single character, such as the letter "A". Two bytes can store a short word like "Hi". Four bits make up a nibble, which is rarely used on its own but appears in some technical contexts. As data becomes larger and more complex, we need much larger units to measure it:
1 kilobyte (KB) = 1,000 bytes
1 megabyte (MB) = 1,000 KB
1 gigabyte (GB) = 1,000 MB
1 terabyte (TB) = 1,000 GB
1 petabyte (PB) = 1,000 TB
For example, a single page of text might take around 30 KB, while a photo from a modern phone might be 2–5 MB. A film could take up 2–4 GB depending on its quality. Large online services like Google or Netflix deal with data on the petabyte scale. Understanding these units helps us manage storage and transfer data more efficiently.
Key Terms:
Bit: A binary digit, 0 or 1.
Byte: 8 bits.
Kilobyte (KB): 1,000 bytes.
Megabyte (MB): 1,000 KB.
Gigabyte (GB): 1,000 MB.
Terabyte (TB): 1,000 GB.
Petabyte (PB): 1,000 TB.
Nibble: 4 bits, half a byte.
Memory: The component where data is stored.
Storage device: Hardware used to save data, like SSDs and USB sticks.
Revision Focus:
Bit = smallest unit of data (1 or 0)
Byte = 8 bits (stores 1 character)
Larger units increase by ×1,000: KB → MB → GB → TB → PB
Data units are used to measure file sizes and storage capacity
Add a new section to your WBK with the title of this part of the course.
Copy the questions into your WBK and answer them in full sentences.
How many bits are in a kilobyte? Explain how you worked it out.
Why is it helpful to measure storage in larger units like MB or GB?
Give a real-world example of how file size affects digital storage.
GCSE Exam-style Questions
Convert 3.5 MB into bytes. Show your working. (2)
Identify one advantage of using gigabytes instead of bytes when measuring file sizes. (1)
Storage isn’t just about knowing the size of a file — it’s also about comparing and calculating. You’ll often need to switch between KB, MB, and GB. These conversions use powers of 10 (unless otherwise stated), which makes mental maths straightforward.
Learning Objectives:
Convert accurately between data units using multiplication/division.
Apply conversions to real-world storage examples.
Understand base-10 unit conversions.
When working with digital storage, it's important to understand how to convert between units like kilobytes (KB), megabytes (MB), and gigabytes (GB). In the OCR specification, conversions are based on base-10, which means every step up or down involves multiplying or dividing by 1,000. For example, 1 MB = 1,000 KB, and 1 GB = 1,000 MB.
To convert a large unit into a smaller one, multiply by 1,000. For example, if you have 3.5 GB, you multiply by 1,000 to get 3,500 MB. To go the other way and convert a smaller unit into a larger one, divide by 1,000. So, 1,200 KB divided by 1,000 equals 1.2 MB. For more detailed measurements, you may also need to convert bytes: 1 MB = 1,000,000 bytes, so 5 MB = 5,000,000 bytes.
Understanding these conversions helps when comparing storage devices, estimating how many files will fit on a USB stick, or choosing the right size memory card for a phone or camera. It's also essential when calculating how much space will be needed to download or back up data.
Key Terms:
Unit conversion: Changing a value from one unit to another.
Base-10: A decimal system using powers of 10.
Kilobyte: 1,000 bytes.
Megabyte: 1,000 KB.
Gigabyte: 1,000 MB.
Multiplication/Division: Mathematical operations used in conversions.
Revision Focus:
OCR uses base-10 conversions (× or ÷ 1,000)
1 KB = 1,000 bytes, 1 MB = 1,000 KB, 1 GB = 1,000 MB
Multiply to go smaller → larger number of smaller units
Divide to go bigger → smaller number of larger units
Example: 2.5 GB = 2,500 MB
Add a new section to your WBK with the title of this part of the course.
Copy the questions into your WBK and answer them in full sentences.
Convert 4.2 GB to kilobytes. Show each step.
Explain why we use base-10 for unit conversion in this course.
A video file is 3,200,000 bytes. What is this in MB?
GCSE Exam-style Questions
A file is 1.2 GB in size. Convert this into kilobytes. Show your working. (3)
Explain why unit conversions are useful when comparing storage devices. (2)
Whether uploading a photo, saving a music file, or watching a video, you’re using up storage space. But how much? Knowing how to calculate data capacity helps you work out if you’ve got enough space – or if it’s time for a bigger USB stick.
Learning Objectives:
Calculate file sizes using given parameters.
Estimate storage requirements for media files.
Apply data size formulas to realistic examples.
Different types of files require different amounts of storage space, depending on what kind of data they contain. To estimate how much space is needed, we use simple formulas that vary depending on the file type. For text files, the calculation is straightforward: each character typically takes up 1 byte (in ASCII), so a 1,000-character document would require 1,000 bytes, or 1 KB.
For images, the amount of data depends on the resolution (width × height in pixels) and the colour depth (the number of bits used to store the colour of each pixel). To calculate image file size: multiply the width by the height by the colour depth. For example, a 200 × 300 image using 24-bit colour (which allows over 16 million colours) would be:
200 × 300 × 24 = 1,440,000 bits = 180,000 bytes = 180 KB.
Audio files require three key pieces of information to calculate size: the sample rate (how many samples per second), bit depth (bits used to store each sample), and the number of channels (e.g., 1 for mono, 2 for stereo), along with the duration in seconds. For example, an audio file recorded at 44,100 samples/second, 16-bit depth, 2 channels, and 60 seconds long would be: 44,100 × 16 × 2 × 60 = 84,480,000 bits = 10.56 MB.
Being able to calculate data capacity helps you choose appropriate storage devices, plan for downloads, and understand why some file types take up more space than others.
Key Terms:
File size: The amount of storage needed for a file.
Sample rate: How many samples of sound are taken per second.
Resolution: The number of pixels in an image.
Bit depth: Number of bits used to store colour or sound levels.
Calculation: A process of working out a total or value.
Channel: Refers to audio channels like mono (1) or stereo (2).
Duration: The length of time an audio file plays.
Revision Focus:
Text file size = characters × 1 byte
Image file size = width × height × colour depth (in bits)
Audio file size = sample rate × duration × bit depth × channels
Always convert bits → bytes → kilobytes if needed (÷ 8, then ÷ 1,000)
Bigger resolution, colour depth, or duration = larger file size
Add a new section to your WBK with the title of this part of the course.
Copy the questions into your WBK and answer them in full sentences.
Calculate the size of a 400 × 500 image with 8-bit colour.
Why does audio require bit depth and sample rate to estimate file size?
Explain how increasing resolution or duration affects data size.
GCSE Exam-style Questions
Calculate the file size in KB of an image with resolution 400 × 300 and 8-bit colour depth. Show all steps. (3)
A text file has 2,500 characters. Estimate its size in bytes and explain your reasoning. (2)
Denary (decimal) is the number system we use every day, but computers speak binary. We need to be able to switch between these systems easily. In binary, we only use 1s and 0s — but don’t worry, it’s all about patterns and place values.
Learning Objectives:
Convert numbers between denary and binary.
Use 8-bit binary with leading zeroes where necessary.
Understand and explain overflow errors.
Binary is a number system based on powers of 2. In an 8-bit binary number, each position has a specific value from left to right: 128, 64, 32, 16, 8, 4, 2, 1. These are known as place values. Converting a denary (decimal) number to binary means working out which of these values can be added together to make the number, and marking each with a 1 (used) or a 0 (not used).
For example, to convert the denary number 156 into binary, start with the largest place value that fits into it – 128. Subtracting 128 leaves 28, then take 16 (leaving 12), then 8 (leaving 4), then 4 (leaving 0). So 156 = 128 + 16 + 8 + 4 → the binary result is 10011100.
To convert binary to denary, reverse the process: look at which positions have a 1, and add those values. So 01101001 becomes 64 + 32 + 8 + 1 = 105.
All numbers in this course are stored using 8-bit binary, which allows values from 0 to 255. But what happens if we go beyond that? This is called an overflow error. For example, 255 + 1 = 256, but 256 cannot be stored in 8 bits, because 256 in binary is 100000000, which is 9 bits. In this case, the extra leftmost bit is lost, and the result becomes 00000000, causing incorrect results. Overflow is a common issue in computing and must be carefully managed.
Key Terms:
Denary: Base-10 number system (0–9).
Binary: Base-2 number system (0 and 1).
Place values: The value given to a digit based on its position.
Overflow error: An error when a number is too big for the number of bits available.
8-bit: A binary number using 8 digits.
Maximum value: The largest number that can be stored in 8-bit binary (255).
Revision Focus:
Binary place values (left to right): 128, 64, 32, 16, 8, 4, 2, 1
Denary → binary: subtract place values and mark with 1s and 0s
Binary → denary: add up the values where there is a 1
8-bit binary can store values from 0 to 255
Overflow error happens when the result exceeds the 8-bit limit (e.g. 256)
Add a new section to your WBK with the title of this part of the course.
Copy the questions into your WBK and answer them in full sentences.
Convert 198 to binary using place values.
What binary number represents the denary value 73?
Explain what an overflow error is and how it affects binary results.
GCSE Exam-style Questions
Convert the denary number 149 into 8-bit binary. (2)
A student adds 240 + 20 in binary using 8 bits. Explain why the answer causes an overflow. (2)
Hexadecimal (base-16) is a compact way of writing binary. It’s easier to read and used in memory addresses and colour codes. Just like binary, hex is part of a computer’s language – it just looks a little different.
Learning Objectives:
Convert numbers between denary and hexadecimal.
Recognise the base-16 digit system and its symbols.
Apply conversions confidently using division and multiplication.
Hexadecimal (often shortened to hex) is a base-16 number system used as a simpler way to represent binary. Instead of using just digits 0–9, hexadecimal also uses letters A to F, where A = 10, B = 11, up to F = 15. Hex is helpful in computing because it's shorter and easier for humans to read than long binary strings, but still maps directly to binary values.
To convert a denary number (0–255) into a 2-digit hexadecimal number, divide the number by 16. The quotient becomes the first hex digit, and the remainder becomes the second. For example:
200 ÷ 16 = 12 remainder 8 → the hex value is C8 (since 12 = C and 8 = 8).
To convert a hexadecimal number to denary, do the reverse: multiply the first digit by 16 and add the second. So for 1A, we convert it as:
(1 × 16) + 10 = 26. Another example: 3F = (3 × 16) + 15 = 63.
Hex is especially useful for representing values in memory addresses, colours in HTML (like #FF0000 for red), and simplifying binary code.
You can find more information about converting between hex at this page in the Tutorials section of the site.
Key Terms:
Hexadecimal: Base-16 number system using 0–9 and A–F.
Denary: Base-10 number system.
Conversion: Changing one number format into another.
Base-16: Number system with 16 possible digits.
Hex digits: Individual characters in a hex number (e.g., A, B, C...).
Quotient: The whole number result of a division.
Remainder: The part left over after division.
Revision Focus:
Hex uses digits 0–9 and letters A–F (A=10 to F=15)
Denary → Hex: divide by 16 → quotient = first digit, remainder = second
Hex → Denary: (first digit × 16) + second digit
Hex is used as a short, readable form of binary in computing
Add a new section to your WBK with the title of this part of the course.
Copy the questions into your WBK and answer them in full sentences.
Convert the denary number 212 to hexadecimal.
Explain how you would convert hex ‘2F’ into denary.
Why is hexadecimal useful for programmers?
GCSE Exam-style Questions
Convert the denary number 193 into hexadecimal. (2)
Convert hexadecimal 4F into denary. (2)
Binary is powerful but long-winded. Hexadecimal gives us a shortcut. Every 4 bits (a nibble) matches exactly 1 hex digit. It’s a cleaner, faster way for humans to write and read binary.
Learning Objectives:
Convert binary numbers to hexadecimal using nibble grouping.
Convert hexadecimal numbers to binary using 4-bit representation.
Understand why hex is used as shorthand for binary.
Converting between binary and hexadecimal is fast and simple because both number systems are closely related. Each hexadecimal digit can be directly matched with a group of 4 binary digits (called a nibble). This makes hex a convenient shorthand for long binary numbers, which are harder to read and write.
To convert binary to hex, start by splitting the binary number into groups of 4 bits from right to left. Each nibble is then converted into a single hex digit. For example, the binary number 10101100 splits into 1010 and 1100. Looking up the values, 1010 = A and 1100 = C, so the final hex result is AC.
To go the other way – hex to binary – simply convert each hex digit into its 4-bit binary equivalent. For instance, B7 becomes B = 1011 and 7 = 0111, so the full binary number is 10110111.
This method is widely used when viewing memory addresses, setting colours in design tools, or debugging code. Because of the clean 4-to-1 relationship, hex is the most compact and readable way to work with binary.
Key Terms:
Binary: Base-2 number system.
Hexadecimal: Base-16 number system.
Nibble: A group of 4 binary digits.
Conversion: Changing between binary and hex.
4-bit: A binary value made of 4 digits.
Shorthand: A simpler way to represent something (hex as shorthand for binary).
Revision Focus:
1 hex digit = 4 binary digits (a nibble)
Binary → Hex: split into nibbles, convert each to hex
Hex → Binary: convert each hex digit to 4-bit binary
Binary and hex are used together to simplify low-level computing
Add a new section to your WBK with the title of this part of the course.
Copy the questions into your WBK and answer them in full sentences.
Convert the binary number 11110010 to hex.
Convert hex ‘9C’ into an 8-bit binary number.
Explain how binary and hex are directly linked.
GCSE Exam-style Questions
Convert the binary number 11011110 into hexadecimal. (2)
Explain why hexadecimal is often used to represent binary values in computing. (2)
In this chapter, you have learned that all digital systems rely on binary – a simple language of 1s and 0s – to store and process data. You’ve explored how different file types are measured in units from bits to petabytes, and how to convert between those units using base-10.
You’ve also developed key number conversion skills: moving between denary, binary, and hexadecimal. Alongside practical calculations like file size and storage requirements, you also explored how overflow errors happen when binary values go beyond their limits. These foundations are essential for understanding how data works in every digital system.
You must be confident with conversions, understanding file sizes, and the purpose of binary in computer systems.