Neural Network Playground

Train a small neural network live in your browser and watch the decision boundary learn

Epoch: 0Loss: 0.0000

Architecture: 2 → 88 → 1 (tanh / sigmoid)

Watch backpropagation learn

This is a real multilayer perceptron trained with stochastic gradient descent and backpropagation — no libraries, just JavaScript. The shaded background shows the network's current decision boundary; dots are the training data. Try the spiral with too few neurons to see underfitting, crank the learning rate to watch training destabilize, and reset to get new random weights. A hands-on way to build intuition for how neural networks actually learn.

Your data stays private. All processing happens locally in your browser. No data is collected, stored, or sent to any server.