Intermediate

ASCII and Unicode: Character Encoding

AicademyAicademy
·GCSE Computer Science·AQA 8525·7 slides
3.3.5 Character encoding

Why Computers Need Character Encoding

Computers process only binary — every character, whether a letter, digit, or punctuation mark, must be stored as a number. Character encoding is the system that assigns a unique number (a code point) to each character, allowing software to consistently translate between binary values and readable text.

Without an agreed standard, text created on one system would display as gibberish on another. A file of English text is just a sequence of bytes; the encoding standard tells the software which character each byte represents.

Two encoding standards are required by the AQA GCSE spec:

StandardBits per characterCharacters covered
ASCII (7-bit)7 (stored in 8)128 characters (0–127)
UnicodeVariableOver 140,000 characters

A character encoding is a lookup table: a number maps to a character, and that number is what the computer stores in binary.

ASCII: The 7-Bit Standard

ASCII (American Standard Code for Information Interchange) uses 7 bits to represent each character, giving unique code points numbered 0–127.

The 128 positions are divided into three groups:

Range (denary)Contents
0–31Control characters — non-printable: newline, tab, backspace
32–126Printable characters — letters, digits, punctuation, space
127Delete (control character)

Key code points to know:

CharacterASCII code (denary)
Space32
048
957
A65
Z90
a97
z122

In practice, ASCII is stored in 8-bit bytes with the leading bit set to 0. The standard itself is 7-bit — this distinction appears in mark schemes.

Converting Between Characters and ASCII Codes

Exam questions provide an ASCII table and ask you to convert in both directions. The key reference points from the previous slide are enough to answer most questions without memorising every value.

Worked example 1 — encode Cat as ASCII code points (denary):

CharacterASCII code
C67
a97
t116

Worked example 2 — decode the ASCII sequence 72, 101, 120 to text:

CodeCharacter
72H
101e
120x

Result: Hex

ASCII stores one character per byte. A 10-character string in ASCII occupies exactly 10 bytes — no more, no less.

4 more slides

Continue this lesson

Create a free account to unlock all 7 slides, track your progress, and ask the AI tutor for help.

Related lessons

7 Slides

Lesson

Hexadecimal Representation

GCSE Computer Science · AQA 8525

1 day ago

ASCII and Unicode: Character Encoding: GCSE... · Aicademy