What Scratch is
Scratch is a free, visual programming language made by the MIT Media Lab. Instead of typing code, you snap coloured blocks together like puzzle pieces. There are no spelling mistakes or missing brackets, so learners can focus on logic.
The ideas in Scratch, such as loops, decisions and variables, are the same ones used in Python and on the GCSE Computer Science course.
Getting started
- Go to scratch.mit.edu and click Create. An account is free and lets you save projects online.
- The stage on the right is where your project runs. The cat is a sprite.
- The block palette on the left holds the blocks, sorted by colour.
- Drag blocks into the code area in the middle and snap them together.
- Click the green flag to run your project and the red stop sign to stop it.
The block colours
| Category | What it does | Example |
|---|---|---|
| Motion | Moves and turns sprites | move (10) steps |
| Looks | Speech, costumes and effects | say [Hello!] |
| Sound | Plays sounds | start sound [Meow] |
| Events | Starts scripts | when green flag clicked |
| Control | Loops, waits and decisions | repeat (10), if then |
| Sensing | Detects touching, keys and answers | touching [edge]? |
| Operators | Maths, random numbers and comparisons | pick random (1) to (10) |
| Variables | Stores values such as a score | change [score] by (1) |
Your first project: the bouncing cat
when green flag clicked
forever
move (10) steps
if on edge, bounce
end
- Drag
when green flag clickedfrom Events. - Add
foreverfrom Control underneath. - Put
move (10) stepsandif on edge, bounceinside the forever loop. - Click the green flag. Change 10 to 20 to make it faster.
Five things to try next
- Add a second sprite and make them talk to each other.
- Use the arrow keys to control a sprite.
- Add a score variable that goes up when you click.
- Paint your own sprite or backdrop.
- Make a sprite change colour when it touches another.
Ready for more? Try the Scratch coding challenges.
For parents
You do not need to know how to code to help. Sit alongside, ask “what happens if you change that number?”, and celebrate when something works. Short, regular sessions of 20 to 30 minutes work better than long ones. Scratch's online community is moderated, and you can keep projects private if you prefer.

