GCSE · Computer Science · AQA · Spec 8525
Unicode
Type a capital A and your computer doesn't save an A. It saves 65. So how on earth does it save a letter from another alphabet, or an emoji?
Try it · 7 bits, one character
Flip a bit, change the letter
Code key: A = 65, B = 66, C = 67 … Z = 90, then a = 97, b = 98, c = 99 … z = 122. Codes that aren't on this key belong to other characters, such as digits, punctuation and control codes.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
What you need to know
- A character set (or character encoding) gives every character its own unique number, called its character code.
- The computer stores that code in binary. Type A and it really saves the number 65.
- ASCII uses 7 bits per character, so it has room for only 128 different characters.
Have a goYour friend is certain: "Seven 1s make 127, so ASCII has 127 characters. Easy." Are they right?
Not quite: it's 128.
127 is the highest code, but 0000000 is a code too, so 0 to 127 is 128 different codes. Your friend forgot to count the zero.
- That covers English letters, digits, punctuation and control codes. Other alphabets simply don't fit.
- Codes for letters and digits run in order (A 65, B 66, a 97), so one code lets you work out its neighbours.
Have a goCapital M has the code 77. Which letter has the code 80?
P
Codes run in order, so 80 is three steps on from 77: N, O, P. Counting M itself as the first step lands you on O instead.
- Unicode uses more bits per character than ASCII (up to 32), so it can represent far more characters.
- Its target: almost all of the world's writing systems, plus many symbols and emoji.
- Unicode was designed to be compatible with ASCII: its first 128 codes are ASCII's codes, so A is 65 in both.
Have a goAn old ASCII file stores "Hi" as the codes 72 and 105. You open it in a program that uses Unicode. What do you see?
Still "Hi".
Unicode kept ASCII's first 128 codes, so 72 and 105 mean exactly the same characters. Nothing gets renumbered, so nothing breaks.
- The win: text in many languages, and emoji, can be stored and shared consistently between computers worldwide.
- The cost: more bits per character can use more memory and make larger files for the same text.
The big picture
Every character gets a unique number, its character code, and the computer stores that code in binary. ASCII uses 7 bits per character, so it has only 128 codes: enough for English letters, digits, punctuation and control codes, but not other alphabets. Unicode uses more bits (up to 32), so it covers almost all the world's writing systems, plus many symbols and emoji. Its first 128 codes match ASCII's, so A is 65 in both. The price: more bits per character can mean more memory and larger files.
Key points
Worked example
Problem
A program stores the letter G. You know that A has the code 65. Find G's code, write it as a 7-bit binary number, then find the code for small g.
⚠ Watch out
Thinking Unicode gave English letters new, bigger codes. It sounds logical (more bits, so new numbers?), but no: Unicode's first 128 codes are exactly ASCII's, so A is 65 in both. The extra bits make room for characters ASCII never had.
Memory hook
Seven bits, one-two-eight: ASCII's full. Unicode keeps those 128 and builds the rest of the world on top.
Check yourself
Cover the page. Why do 7 bits give ASCII exactly 128 characters? If a is 97, what is the code for e? And what is one advantage and one disadvantage of Unicode?
Flashcards
(13)What is a character code?
What does a character set (character encoding) do?
How many bits per character does ASCII use?
How many different characters can ASCII represent, and why?
What can ASCII represent, and what can't it?
What is Unicode designed to represent?
How many bits per character can Unicode use?
What is the code for A in Unicode?
B is 66. How do you get C's code without a table?
How far apart are a capital letter's code and its small letter's code?
What happens to the number of possible codes when you add one more bit?
What is an advantage of Unicode over ASCII?
What is a disadvantage of Unicode compared with ASCII?
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 AQA GCSE Computer Science topics
How this lesson was checked. This AQA GCSE Computer Science (specification 8525)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 28 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.