๐Ÿ”ค Character Set Explorer

OCR Computer Science J277 - Mr Brown

Interactive Character Encoder

Computers can only store binary. A character set is "a defined list of characters recognised by the computer hardware and software" โ€” each character in the list is mapped to a unique binary code. Try encoding and decoding text below!

This encoder uses standard 8-bit ASCII

Type up to 14 characters โ€” try letters, digits, symbols, or even paste an emoji!

๐Ÿงฎ Bits โ†” Capacity Calculator

Drag the slider to see how many characters you could represent with different numbers of bits โ€” this is the relationship between bits per character and the size of a character set.

8 bits โ†’ 28 = 256 characters

๐Ÿ† Character Set Challenges

Challenges Complete

0

Total Points

0

Loading challengeโ€ฆ

๐Ÿ“š Master Character Sets

๐Ÿ”ค What is a Character Set?

Computers only store binary โ€” they can't store letters or symbols directly. The exam board defines a character set as:

"A defined list of characters recognised by the computer hardware and software."

Every character (like 'A', '7' or '๐Ÿ˜€') is mapped to a unique binary code โ€” without an agreed character set, one computer's 01000001 could mean something different on another.

๐Ÿงฎ Bits, Bytes and How Many Characters

With n bits you can make 2โฟ different binary patterns โ€” one per character. More bits means more possible characters, but more storage space too.

Bits2โฟCharacters possible
42โด16
72โท128
82โธ256
162ยนโถ65,536

Try the slider in the Playground tab!

๐Ÿ”ก ASCII

ASCII was one of the earliest character sets. Standard ASCII uses 7 bits (2โท = 128 characters) โ€” enough for English letters, digits and punctuation. The exam always shows ASCII codes using 8 bits (e.g. 'A' = 01000001).

Logical ordering: codes increase predictably, so you only need one anchor point per group, not the whole table:

  • 'A' = 65 โ€ฆ 'Z' = 90 (capitals)
  • 'a' = 97 โ€ฆ 'z' = 122 (lower case)
  • '0' = 48 โ€ฆ '9' = 57 (digits)

Know the anchor, count the offset โ€” that's exactly what the Challenges tab tests!

๐ŸŒ Unicode

ASCII's 128 characters aren't enough for every language, symbol and emoji used worldwide. Unicode uses more bits per character โ€” 8 to 32 bits, depending on the encoding โ€” to cover a huge range of characters. Its first 128 codes match ASCII exactly, so ASCII text is also valid Unicode text.

โš–๏ธ ASCII vs Unicode โ€” the Impact

ASCIIUnicode
Bits per character7 (8 in the exam)8-32 (varies)
Characters representable128Over 1 million
Covers other languages / emoji?NoYes
File size for the same textSmallerUsually larger

More bits per character means Unicode text can need more storage space than the same text in ASCII โ€” the trade-off for supporting far more characters.

โœ… What to Remember for the Exam

  • Computers represent characters using binary codes, defined by a character set.
  • The number of bits per character limits how many characters can be represented: 2โฟ.
  • Standard ASCII uses 7 bits (128 characters); the exam shows ASCII codes using 8 bits.
  • Character sets are logically ordered โ€” consecutive characters have consecutive codes.
  • Unicode uses more bits (8-32) than ASCII to represent far more characters, including other languages and emoji.
  • You do NOT need to memorise character set codes โ€” just understand how they work.