Massive computation of seismic traveltimes is widely used in seismic processing, for example, for the Kirchhoff migration of seismic and microseismic data. Implementation of the Kirchhoff migration operators uses large precomputed traveltime tables (for all sources, receivers, and densely sampled imaging points). We have tested the idea of using artificial neural networks for approximating these traveltime tables. The neural network has to be trained for each velocity model, but then the whole traveltime table can be compressed by several orders of magnitude (up to six orders) to the size of less than 1 MB. This makes it convenient to store, share, and use such approximations for processing large data volumes. We evaluate some aspects of choosing neural-network architecture, training procedure, and optimal hyperparameters. On synthetic tests, we find a reasonably accurate approximation of traveltimes by neural networks for various velocity models. A final synthetic test shows that using the neural-network traveltime approximation results in good accuracy of microseismic event localization (within the grid step) in the 3D case.