We have described the design, synthesis, spectroscopy and biological applications of NI-βGal, a versatile fluorescent probe to detect E. coliβ-galactosidase in live cells and mice sensitively and directly, which holds great promise for its application in biomedical research such as gene therapy for cancer in the future.