Artificial neural networks play a prominent role in the rapidly growing field of machine learning and are recently introduced to quantum many-body systems to tackle complex problems. Here, we find that even topological states with long-range quantum entanglement can be represented with classical artificial neural networks. This is demonstrated by using two concrete spin systems, the one-dimensional (1D) symmetry-protected topological cluster state and the 2D toric code state with an intrinsic topological order. For both cases we show rigorously that the topological ground states can be represented by short-range neural networks in an exact fashion. This neural network representation, in addition to being exact, is surprisingly efficient as the required number of hidden neurons is as small as the number of physical spins. Our exact construction of topological-order neuron-representation demonstrates explicitly the exceptional power of neural networks in describing exotic quantum states, and at the same time provides valuable topological data to supervise machine learning topological quantum orders in generic lattice models.