GCSE · Computer Science · Edexcel · Spec 1CP2
Hexadecimal
#FF6600 is six characters on screen, yet the computer still holds 24 bits underneath. So what is hexadecimal for? Flip some bits and find out.
Computer Science · Data
Flip the bits, read the hexadecimal
Eight switches, eight bits. Start with the four on the right: flip them from 0000 up to 1111 and watch the Hex readout. Four bits can make exactly 16 values, so we need 16 symbols to name them, and 0 to 9 runs out at 9. Now flip the four on the left and watch a second digit appear.
Computer Science · Number representation
Swap each group of four for one digit
Pick A3 and watch the binary split into two groups of four: 1010 becomes A and 0011 becomes 3. Then work the other way: toggle bits yourself until you have made 6C, which is just 6B plus one.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
What you need to know
- Four bits can be arranged in exactly 16 different ways, from 0000 up to 1111.
- Hexadecimal is base 16: its 16 digits are 0 to 9 then A to F, and each place is 16 times bigger than the one to its right.
- The letters are numbers: A is 10, B is 11, C is 12, D is 13, E is 14 and F is 15.
Have a goSam says: "E is the fifth letter, so E is 5." Sam sounds very sure. What is E really worth?
14
The letters are not alphabet positions. A is 10, B is 11, C is 12, D is 13, so E is 14.
- Counting carries on as normal: after 6B comes 6C, and hexadecimal 10 is 16 in denary.
Have a goKeep counting from 6C. What are the next two hexadecimal numbers?
6D, then 6E
Counting works as normal: the letter digits just carry on upwards, one at a time.
- Every group of four binary digits becomes one hexadecimal digit, so 1111 (15) is F and hexadecimal is shorter.
- To go from binary to hexadecimal, split into fours from the right and swap each group for its digit: 1010 0011 is A3.
Have a goTry it before you look: write 1111 0000 in hexadecimal.
F0
1111 is 15, which is F, and 0000 is 0. Each group of four gets its own digit, even a group of zeros.
- To go from hexadecimal to denary, multiply each digit by its place value and add: 2F is 2 × 16 + 15 = 47.
- People use hexadecimal because it is easier to read, write and interpret, and fewer digits means fewer errors.
- Hexadecimal is for humans only: the computer still stores and processes binary, with the same number of bits.
- You will see hexadecimal in colour codes like #FF6600, in MAC addresses and in memory dumps.
The big picture
Hexadecimal is base 16: the digits 0 to 9 and then A to F (10 to 15). One hexadecimal digit stands for exactly four bits, so binary becomes shorter and easier for people to read, write and convert. The computer still stores and processes the same binary.
Key points
Worked example
Problem
Convert the binary number 0111 1011 to hexadecimal, then convert that hexadecimal number to denary.
⚠ Watch out
Thinking hexadecimal saves memory or makes the computer faster. It does neither: the computer still stores and processes the same bits, and hexadecimal is only easier for people to read and write.
Memory hook
Four bits, sixteen values, one hexadecimal digit. The screen shows the short version, and the computer still holds every bit.
Check yourself
Invent a two-digit hexadecimal number with a letter in it. Write it in binary, then in denary. Then say what hexadecimal does for you, but not for the computer.
Flashcards
(13)How many different values can four bits hold?
What are the 16 digits of hexadecimal, in order?
What do the letters A, B, C, D, E and F stand for?
How much bigger is each hexadecimal place value than the one to its right?
What comes after 6B in hexadecimal? And what is hexadecimal 10 in denary?
Which hexadecimal digit is 1111?
How many binary digits does one hexadecimal digit stand for?
How do you convert binary to hexadecimal?
Write hexadecimal 9E as binary.
How do you convert hexadecimal to denary?
Why do people use hexadecimal instead of binary?
A colour code like #FF6600 has six characters. How many bits does the computer hold, and does hexadecimal save memory?
Name three places hexadecimal is seen.
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 Edexcel GCSE Computer Science topics
How this lesson was checked. This Edexcel GCSE Computer Science (specification 1CP2)lesson 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 9 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.