Open the editor

Computer science · High school

ASCII and Unicode Slides

Free animated slides, ready to teach: 6 slides where every step appears on a click and the diagrams move. Play them right here, present them full screen, or copy them into your account to edit.

A real Tracé deck playing in your browser. No account needed.

What the lesson covers

Computers store text as numbers: each character has a code. Students read ASCII codes, see why A and a are 32 apart, learn how Unicode covers every writing system and how UTF-8 uses 1 to 4 bytes per character.

The slides, one by one

1 Character encoding

Text is stored as numbers

What does the letter A look like inside a computer?

2 ASCII gives each character a 7-bit code

128 codes: letters, digits, symbols

Lower case = upper case + 32

3 Unicode covers every script; UTF-8 uses 1 to 4 bytes

Code points written U+…

The first 128 match ASCII

4 Encoding "Hi" in ASCII

H has code 72 and i has code 105. Write "Hi" as two bytes in binary.

→ Write each code as 8 bits using place values 128, 64, …, 1

72 = 64 + 8 = 0100\,1000
105 = 64 + 32 + 8 + 1 = 0110\,1001
\text{Hi} = 0100\,1000\ \ 0110\,1001

"Hi" is 0100 1000 0110 1001

5 Quick check

The ASCII code for C is 67. The code for c is…

  • 99
  • 68
  • 35
  • 100
Show the answer

99

Lower-case letters are 32 more than upper case: 67 + 32 = 99.

6 What to remember

Each character is stored as a number

ASCII: 7 bits, 128 characters

Unicode: a code point for every character

UTF-8: 1 to 4 bytes, ASCII-compatible

Challenge: Why might a text file of Chinese characters take more bytes than an English one with the same number of characters?

Every slide is built click by click: text, formulas and pictures come in one step at a time, so the class follows the reasoning instead of reading ahead. Graphs with sliders can be dragged live while you present.

Make your own version with AIChange the level, the numbers or the language: type the topic and get a new deck that moves in about 30 seconds. Free, no account needed.

Questions teachers ask

What is the difference between ASCII and Unicode?

ASCII uses 7 bits for 128 characters: English letters, digits and symbols. Unicode gives a code point to over 140,000 characters in every script; UTF-8 stores them in 1 to 4 bytes and matches ASCII for the first 128.

Are these slides really free?

Yes. Watch them on this page or present them full screen with no account. Making your own copy to edit is free too.

Can I change the slides before my lesson?

Yes. Press "Make my own copy" and the deck becomes one of your projects in the Tracé editor, where you can change the text, the numbers, the colours or the order of the clicks.

Do they work on a classroom projector or an interactive whiteboard?

Yes. They run in the browser on any laptop, so anything that shows your screen works. Press the right arrow or click to go to the next step.