Draw a digit

The 784-256-10 network trained on MNIST in this repository, quantised to int8 and running in your browser — 98.5% accurate on the 10,000 held-out test digits. Draw big and roughly centred.

Your drawing

Prediction

— draw something to start
normalised
→
deskewed
→
What the model actually sees. Your drawing is cropped to the ink, scaled so its long side is 20px, centred by centre of mass, then de-slanted — exactly how MNIST itself was built.

Model file is 268 KB. The int8 quantisation costs under 0.05 percentage points of accuracy versus float32, measured in scripts/export_web_model.py, and a parity test checks this page agrees with scikit-learn to 1e-6.