The invention provides a near-
infrared beta-galactosidase fluorescent probe as well as preparation and application thereof, and relates to the technical field of fluorescent probes, according to the near-
infrared beta-galactosidase fluorescent probe, when beta-galactosidase exists, a D-galactosyl group can be split, meanwhile, self-
elimination of p-hydroxybenzyl is removed, a fluorescent
signal unit is released, and the beta-galactosidase can be detected by the near-
infrared beta-galactosidase fluorescent probe. The
fluorescence signal is obviously enhanced. Excitation and emission spectra of the near-infrared beta-galactosidase fluorescent probe are both in a near-infrared region, the
fluorescence intensity at 760 nm is rapidly increased, the
fluorescence intensity rapidly reaches a
stable state after 30 min, and compared with a visible light probe, the near-infrared beta-galactosidase fluorescent probe has deeper tissue penetrating capacity, background interference can be effectively avoided, and the resolution ratio is improved; the compound can be applied to beta-galactosidase detection imaging and preparation of beta-galactosidase detection imaging reagents, especially
breast cancer detection reagents.