Similar to the figures in this 3Blue1Brown video, I would like to create a basic figure of a multilayer perceptron (neural network).

enter image description here

2 Answers 2


I wrote an in-browser tool for this: NN-SVG. Choose from FCNN layout, LeNet layout, and AlexNet layout.

enter image description here


Grant Sanderson a.k.a. 3Blue1Brown writes his own code to produce the figures he presents in his videos. The code is available at https://github.com/3b1b/manim and you may find the code for the neural network figures in https://github.com/3b1b/manim/tree/master/old_projects/nn

Also: How to draw Deep learning network architecture diagrams?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.