GCSE · Computer Science · OCR · Spec J277

ASCII

Type an A and the computer stores a pattern of 1s and 0s. ASCII is the agreed list of which pattern means which character.

Computer Science · ASCII

Flip the bits, change the letter

64 + 1 = 65

7-bit binary 1000001 = 65 in denary

ASCII code65
Key: 65 = A, 66 = B, 67 = C, 97 = a, 98 = b. Start on A, then count up to B and C. Now go back to A and flip just the 32 column. What do you get?

Each box is one bit. The number below is the code your seven bits make. Switch bits on and off, then look the code up in the key.

Predict, then check

ASCII gives every character a sequence of seven bits. Commit to a number before you look.

How many different sequences can seven bits make?

Why a standard?

?

Reason it through

Why does it matter that every ASCII character has a standardised sequence?

Link 1 of 3

First link · your turn

ASCII is a character set. What does each character get in it?

2
Locked — reveal the link above first
3
Locked — reveal the link above first

ASCII and Unicode

ASCIIvsUnicode

Open each row to see what it tells you.

Focus

What it was made to represent

ASCII

Basic English letters, numbers and symbols

Unicode

Characters ASCII cannot represent, as well as ASCII's own

The insight

ASCII's small set is the reason Unicode was created.

Urdu or Mandarin Chinese

ASCII

Cannot represent their characters

Unicode

Created to get past that limit

The first 128 characters

ASCII

All 128 of ASCII's characters

Unicode

The same 128 characters as ASCII

Your turn to write

Explain ASCII in your own words

Explain what ASCII is and why it can represent only 128 characters. [3 marks]

0 words · your answer stays on this page and is not sent anywhere.

UK note

OCR GCSE Computer Science (J277), section 1.2.4: character sets, including ASCII.

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

How a computer gives every character its own seven-bit code, and why that code runs out at 128.

What you need to know

  • A character set matches each character to its own unique binary sequence and keeps a record of which is which.
  • ASCII is a character set that uses a seven-bit binary sequence for each character.
  • Seven bits give 2 to the power of 7 = 128 different states, so ASCII has 128 possible characters.
  • A sequence of n bits has 2 to the power of n states, and each extra bit doubles the number of states.
  • Have a goYour friend says four bits make 8 states, because 4 x 2 = 8. Can you put them right?

    Four bits make 2 to the power of 4 = 16 states.

    Each extra bit doubles the states: 2, 4, 8, 16 for one to four bits. Multiplying the number of bits by 2 is not the rule.

  • ASCII stands for American Standard Code for Information Interchange. Its first edition was created in 1963.
  • Every character has one standardised sequence, so all devices using ASCII know which character each sequence means.
  • Letters and their sequences go up in order, and a capital and its lower-case partner differ by only one bit.
  • Have a goJo is very sure: 'Capital B and lower-case b are the same letter, so ASCII gives them the same sequence.' Is she right?

    No. They are different characters, so they have different sequences.

    Every character has its own unique sequence. A capital and its lower-case partner differ by only one bit, but they do differ.

  • ASCII covers basic English letters, numbers and symbols. It cannot represent characters from languages not based on the same alphabet, such as Urdu or Mandarin Chinese, or many other symbols.
  • Have a goAli wants to send his gran a message in Mandarin Chinese using only ASCII. What goes wrong?

    ASCII cannot represent Mandarin Chinese characters.

    ASCII is built for basic English letters, numbers and symbols, so characters from languages not based on the same alphabet are out of reach.

  • Unicode was created because of that limit. Its first 128 characters are ASCII's, so a system using Unicode still displays ASCII characters correctly.

The big picture

A character set matches each character to a unique binary sequence. ASCII uses seven bits per character, and seven bits have 2 to the power of 7 = 128 states, so ASCII has 128 possible characters. Its sequences are standardised, so every device using it agrees which character is which. Letters go up in order and a capital and its lower-case partner differ by one bit. ASCII covers basic English letters, numbers and symbols only, which is why Unicode was created.

Key points

1A character set matches characters to unique binary sequences. ASCII uses seven bits for each character.
2Seven bits have 2 to the power of 7 = 128 states, so ASCII has 128 possible characters. Each extra bit would double that.
3ASCII's sequences are standardised, so devices using it agree on every character. Capital and lower-case partners differ by one bit.
4ASCII cannot represent characters from languages like Urdu or Mandarin Chinese. Unicode was created for this and starts with ASCII's 128 characters.

Worked example

Problem

A games designer is inventing a toy character set with 40 characters. Each one needs its own unique binary sequence, and every sequence must be the same length. What is the fewest bits each sequence can have?

⚠ Watch out

Thinking ASCII can represent any character. With seven bits it has only 128, covering basic English letters, numbers and symbols, which is why Unicode was created.

🧠

Memory hook

Capital to small is one flip: change a single bit and A becomes a.

✓

Check yourself

Without scrolling up: how many characters can seven bits give a unique sequence to, and why can ASCII not store a Mandarin Chinese character?

Flashcards

(12)
What is a character set?
A system that matches characters to unique binary sequences. It keeps a record of each character against its sequence.
How many bits does ASCII use for each character?
Seven.
Why does ASCII provide 128 possible characters?
Seven bits have 2 to the power of 7 = 128 different states, and each character needs its own.
How many states does a sequence of n bits have?
2 to the power of n. Each extra bit doubles the number of states.
What does ASCII stand for?
American Standard Code for Information Interchange.
When was the first edition of the ASCII standard created?
1963.
Why does it matter that each ASCII sequence is standardised?
All devices using ASCII know which character matches each binary sequence.
How do the ASCII sequences of a capital letter and its lower-case partner compare?
They differ by only one bit.
In which order do the letters' sequences run in ASCII?
They go up sequentially, in the order of the letters.
Which characters can ASCII not represent?
Characters from languages not based on the same alphabet, such as Urdu or Mandarin Chinese, and many other symbols.
Why was Unicode created?
ASCII cannot represent many characters, such as those of Urdu or Mandarin Chinese, so Unicode was created.
How do the first 128 characters of Unicode compare with ASCII?
They are the same, so a system using Unicode can still display ASCII characters correctly.

Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.

Learning with Lightbulb is opening soon

You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.

Keep me posted

More OCR GCSE Computer Science topics

See the full OCR Computer Science curriculum →

How this lesson was checked. This OCR GCSE Computer Science (specification J277)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 14 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.