The invention provides a preparation method of a quinoxaline fluorescent probe and its application in detecting G-quadruplexes. At least one of ethylamino, R2 adopts F, methyl, and R3 adopts at least one of F, methyl, N-methylpiperazinyl and triazolyl. Compared with the prior art, the present invention has the following advantages: (1) The probe is easy to prepare, easy to obtain, stable in structure and convenient for storage. (2) The probe provided by the present invention can specifically detect the G-quadruplex structure, realize the distinction between the G-quadruplex structure and other secondary structures, and use a simple fluorescence spectrometer, even without any instrument, to observe with the naked eye The secondary structure of the nucleic acid sample can be identified, which is fast, easy to operate, low in cost, and can realize on-site detection. (3) The probe has no obvious influence on the secondary structure of the nucleic acid to be detected, and can accurately detect the original structure of the nucleic acid.