ASCII and Unicode: 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
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.
Something not quite clicking?
Ask Aica to explain any part of this differently. Free, takes 30 seconds.
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
Binary Addition and Logical Shifts
Image Representation: Pixels and Colour Depth
Related lessons
6 min