Representing characters: ASCII

Every letter, digit and symbol you type is stored as a binary code. ASCII is the classic character set.

Practise this lesson free (6 questions)

More tools

Character sets

A character set gives every character a unique binary code.
7-bit ASCII has 27 = 128 codes, covering English letters, digits, punctuation and control codes such as Enter.

Codes run in order

Letters and digits are in order, so 'C' = 67 and '9' = 57.
CharacterDenary code7-bit binary
A651000001
B661000010
a971100001
0480110000
Space320100000

Unicode (International GCSE)

ASCII cannot store characters from most of the world's languages or emoji.
Unicode uses more bits per character, so it can represent many thousands of characters, and its first 128 codes match ASCII.
The cost is that text can take more storage.
Worked example

'A' is 65. What is the ASCII code for 'G'?

  1. G is 6 letters after A.
  2. 65 + 6

Answer: 71

Key idea

7-bit ASCII gives 128 characters, with letters and digits in order. 'A' = 65, 'a' = 97, '0' = 48. Unicode extends this to many more characters.

Key words
ASCII
A 7-bit character set with 128 codes for English letters, digits, punctuation and control codes.
Binary
Base 2: the number system that uses only the digits 0 and 1.
Character set
A list of characters a computer can use, each with a unique binary code.
Unicode
A character set that uses more bits than ASCII so it can represent characters from most of the world's languages.

All GCSE and International GCSE Computer Science key terms and definitions โ†’

Quick check

Try two quick questions

See if it has sunk in. Answers are marked straight away.

Extra practice

2 more questions

Try each one, then tap to check.

  1. A character set uses 8 bits per character. How many different characters can it represent?

    Show the answer

    Answer: 256

    28 = 256 different codes.

  2. 'A' has the ASCII code 65. What is the code for 'J'?

    Show the answer

    Answer: 74

    Count on from A: J is 9 letters after A, so 65 + 9 = 74.

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.

Video for this lesson coming soon. Subscribe on YouTube

Sources and references

Facts checked against the sources below, 17 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.

What do exam command words like explain and evaluate mean? โ†’

Related lessons