Naoling Pian is a prescription composed of 15 herbs, which is mainly used for the treatment of insomnia in clinical practice. However, the chemical constituents in Naoling Pian are numerous and unclear, which hinders the interpretation of its bioactive constituents and the subsequent research on the material basis for pharmacodynamics. The purpose of this study is to develop a rapid method for identifying the chemical constituents of Naoling Pian using high-throughput ultra-performance liquid chromatography quadrupole time of flight coupled with mass spectrometry combined with a software platform for data processing. The whole composition of Naoling Pian was characterized in positive and negative ion modes. In this experiment, an overall total of 201 constituents were identified by using reference standards, online and self-built databases matching, fragmentation rules analysis of mass spectrometry peaks with a software platform. Meanwhile, Naoling Pian was analyzed for the first time using liquid chromatography-mass spectrometry method, the constituents could be identified in a quick and accurate manner, and the results could provide a scientific basis for the follow-up research on the pharmacodynamic material basis and quality control of Naoling Pian.