Track progress, take quizzes and save notes on this lesson.

Free forever · no card needed

Start free
Intermediate

ASCII and Unicode: Character Encoding

3.3.5 Character encoding

Aligned to the AQA 8525 specification

Level
Intermediate
Reading time
6 min
Published
2 June 2026
Updated
1 July 2026
On this page
  1. 1.Why Computers Need Character Encoding
  2. 2.ASCII: The 7-Bit Standard
  3. 3.Converting Between Characters and ASCII Codes
  4. 4.Patterns in the ASCII Table
  5. 5.The Limits of ASCII
  6. 6.Unicode: A Universal Character Set
  7. 7.Common Exam Mistakes

Key takeaways

  • ASCII is a 7-bit standard giving 2^7 = 128 unique code points (0–127), stored in an 8-bit byte with a leading zero, covering English letters, digits and common punctuation.
  • A digit's character has a different value from its ASCII code: the character '5' has code 53, found using 48 + the digit value.
  • Unicode assigns a unique code point to over 140,000 characters across the world's writing systems, and uses the same codes as ASCII for values 0–127 for backward compatibility.
  • Unicode requires more bits per character than 7-bit ASCII, so Unicode files are only larger than ASCII when they contain characters outside the 0–127 range.
  • The gap between an uppercase letter and its lowercase form is always 32, so adding 32 converts uppercase to lowercase and subtracting 32 does the reverse.

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.

Patterns in the ASCII Table

The ASCII table has structured ranges that allow quick calculation from first principles.

Digits ('0''9', codes 48–57): The character '0' = 48, '1' = 49, up to '9' = 57.

The character '5' has ASCII code 53, not 5. The digit and its code are different. To find the code: 48 + (digit value).

Uppercase letters ('A''Z', codes 65–90): 'A' = 65. The code for any uppercase letter = 65 + (alphabetical position − 1). 'E' is the 5th letter: 65 + 4 = 69.

Lowercase letters ('a''z', codes 97–122): 'a' = 97. The gap between upper and lowercase is always 32.

CharacterCodeDifference
A65
a97+32
M77
m109+32

To convert uppercase to lowercase in code: add 32. To convert lowercase to uppercase: subtract 32.

Something not quite clicking?

Ask Aica to explain any part of this differently. Free, takes 30 seconds.

Ask Aica

The Limits of ASCII

ASCII was designed for English-language computing. Its 128 characters cover the Latin alphabet, Arabic numerals, and common punctuation — sufficient for American English but inadequate for almost everything else.

Characters ASCII cannot represent:

  • Accented letters: é, ñ, ü, ç
  • Non-Latin scripts: Arabic (ع), Mandarin (文), Hindi (अ), Korean (한)
  • Mathematical symbols: ∑, π, ≠, ∞
  • Currency symbols: €, £, ¥ (£ exists in extended ASCII, but not the core 7-bit set)

As computing became global, different regions created incompatible extensions. The same byte value (e.g. 130) represented different characters in different extended ASCII variants, causing encoding conflicts when files were transferred between systems.

A single, universal standard was needed — one large enough to cover every writing system in regular use.

Unicode: A Universal Character Set

Unicode assigns a unique code point to every character across all the world's writing systems. The current standard defines over 140,000 characters spanning 150+ scripts, plus emoji, mathematical symbols, and historical scripts.

Key facts for GCSE:

  • Unicode uses the same code points as ASCII for characters 0–127. This is deliberate backward compatibility — any software that reads ASCII can read the first 128 Unicode characters without modification.
  • Unicode requires more bits than 7-bit ASCII to represent its full range of characters. This means Unicode files can be larger than ASCII files when they contain characters outside the 0–127 range.
PropertyASCIIUnicode
Characters covered128140,000+
Bit depth7 bits per characterMore bits than ASCII
Compatible with ASCII?Yes — codes 0–127 are identical
Used forEnglish-language systemsMultilingual, global use

The GCSE requirement is: Unicode covers far more characters than ASCII; Unicode uses the same codes as ASCII for values 0–127; Unicode requires more bits per character. You do not need to know specific encoding names such as UTF-8 or UTF-16 for AQA 8525.

Common Exam Mistakes

1. Confusing a digit's value with its ASCII code

The character '7' has ASCII code 55 (= 48 + 7), not 7. Any question asking for the ASCII code of a digit requires the 48 offset.

2. Stating ASCII uses 8 bits per character

ASCII is a 7-bit standard. It is stored in an 8-bit byte with a leading zero, but the encoding itself is 7-bit. Mark schemes distinguish between these.

3. Thinking Unicode replaces ASCII code points 0–127

Unicode was designed to extend ASCII, not replace it. Code points 0–127 are identical in both standards.

4. Claiming Unicode always uses more storage

Unicode uses the same codes as ASCII for characters 0–127, and in those cases uses no more storage than ASCII. Unicode files are only larger when they contain characters outside the ASCII range, because those characters require more bits to represent.

5. Not using the table provided in the exam

Almost every GCSE paper that tests character encoding supplies the ASCII table. Use it — do not attempt to recall every code point. The marks are for applying the table correctly, not for memorisation.

Key terms

Character encoding
A system that assigns a unique number, or code point, to each character so software can translate between binary and readable text.
Code point
The unique number assigned to a character by an encoding standard, which is what the computer stores in binary.
ASCII
American Standard Code for Information Interchange, a 7-bit encoding giving 128 code points (0–127) for English letters, digits and punctuation.
Unicode
A character set that assigns a unique code point to every character across the world's writing systems, covering over 140,000 characters.
Control character
A non-printable character such as newline, tab or backspace, occupying ASCII codes 0–31 and 127.
Printable character
A character that displays a visible symbol or space, occupying ASCII codes 32–126.
Bit
A single binary digit; ASCII uses 7 bits per character.
Byte
Eight bits; ASCII stores one character per byte, so a 10-character ASCII string occupies exactly 10 bytes.

Frequently asked questions

ASCII is a 7-bit standard, giving 128 unique code points numbered 0–127. In practice it is stored in an 8-bit byte with the leading bit set to 0, but the encoding itself is 7-bit and mark schemes distinguish between these.

ASCII covers 128 characters using 7 bits, designed for English-language systems, while Unicode covers over 140,000 characters across 150+ scripts using more bits per character. Unicode uses the same code points as ASCII for values 0–127, making it backward compatible.

No. Unicode uses the same codes as ASCII for characters 0–127 and in those cases uses no more storage. Unicode files are only larger when they contain characters outside the ASCII range, because those characters require more bits to represent.

Generate revision on any topic you study

Type any topic you're studying and Aicademy generates a complete lesson, quiz, and flashcard set, personalised to your level.

Lessons on anything

Structured, level-matched lessons on any topic you study

Practice quizzes

Find out what you actually know before the exam does

Flashcard sets

Lock in key concepts with instant revision cards

Ask Aica

Stuck on something? Get a clear explanation, any time

Prev

Binary Addition and Logical Shifts

Next

Image Representation: Pixels and Colour Depth

Related lessons

6 min

Top students don’t revise more. They revise what counts.

Start revising free

Free to start. No card needed.