Build your first neural network.

Snap colorful blocks together to recognize handwritten digits, sort clothing and teach a tiny transformer to write like Shakespeare. Ask Blocky for a clue whenever you get stuck.

Open the playground

Free to play. No account needed.

A stack of blocks: Handwritten digit, Flatten, Dense and Softmax. Blocky cheers as a Digit guess block, showing a 7, is about to click on below.

What you’ll build

Recognize a digit

Flatten an MNIST image into numbers. Use a Dense layer and Softmax to turn those numbers into ten digit probabilities.

Sort clothes

Try a hidden layer with Sigmoid or Tanh on Fashion-MNIST. Can your network tell a sneaker from a shirt?

Go deeper

Stack more layers with ReLU. If you train your builds, use the experiment notebook to compare how they do on held-out images.

Write like Shakespeare

Build a tiny transformer with attention and shortcut wires. Train it on Shakespeare’s plays and watch it write, one letter at a time.

Check your build to unlock the next lesson. Training is optional and runs in your browser. In Sandbox, all blocks are available from the start.