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.

Practise this lesson free (6 questions)

More tools

Character sets

A character set is a list of characters and the binary code for each one.
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

Letters are in order, so if A is 65 then C is 67. Capital and small letters have different codes. The last row is a space.
CharacterDenary codeBinary
A651000001
B661000010
Z901011010
a971100001
0480110000
320100000

Unicode

ASCII only covers English letters. Unicode is a much bigger character set. It includes the letters of many languages, such as Arabic, Chinese and Greek, as well as maths symbols and emoji.
Unicode uses more bits per character, so the same text can take up more space.
Worked example

How much space does the word HELLO take if each character uses 1 byte?

  1. HELLO has 5 characters.
  2. 5 × 1 byte = 5 bytes = 5 × 8 = 40 bits.

Answer: 5 bytes (40 bits)

Key idea

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.

Key words
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].

All KS3 Computing 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. 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.

  2. 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.

Video for this lesson coming soon. Subscribe on YouTube

Sources and references

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

Related lessons