Representing text: ASCII and Unicode
When you type a letter, the computer stores a number. A character set says which number stands for which character.
Character sets
ASCII uses 7 bits, giving 2 × 2 × 2 × 2 × 2 × 2 × 2 = 128 characters: letters, digits, punctuation and some control codes.
Characters are often stored in one byte (8 bits) each.
ASCII codes
| Character | Denary code | Binary |
|---|---|---|
| A | 65 | 1000001 |
| B | 66 | 1000010 |
| Z | 90 | 1011010 |
| a | 97 | 1100001 |
| 0 | 48 | 0110000 |
| 32 | 0100000 |
Unicode
Unicode uses more bits per character, so the same text can take up more space.
How much space does the word HELLO take if each character uses 1 byte?
- HELLO has 5 characters.
- 5 × 1 byte = 5 bytes = 5 × 8 = 40 bits.
Answer: 5 bytes (40 bits)
A character set maps characters to binary codes. ASCII uses 7 bits for 128 characters (A = 65, a = 97). Unicode covers many languages and emoji, but uses more bits.
- ASCII
- A character set that uses 7 bits to give codes to 128 characters, including English letters, digits and symbols. A is 65.
- AND
- A Boolean operator that gives True (1) only when both inputs are True.
- Unicode
- A large character set that covers the letters of many languages, symbols and emoji. It uses more bits per character than ASCII.
- Character set
- A list of characters and the binary code a computer uses for each one, such as ASCII or Unicode.
- Binary
- A number system that uses only two digits, 0 and 1. Computers store all data in binary.
- List
- A data structure that stores many items under one name, in order, such as scores = [4, 7, 2].
Try two quick questions
See if it has sunk in. Answers are marked straight away.
2 more questions
Try each one, then tap to check.
In ASCII, A is 65. What is the code for H?
Show the answer
Answer: 72
H is 7 letters after A: 65 + 7 = 72.
In ASCII, a is 97. Which letter has the code 101?
Show the answer
Answer: e
101 − 97 = 4, and 4 letters after a is e.
Check you have got it
Answer 6 quick questions with instant marking. If you get one wrong, GCSE-ready shows you why and gives you another go. It is free, and you do not need an account.
Facts checked against the sources below, 27 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.