A two-photon fluorescent probe FNTR, constructed for nitroreductase by using a fluorine derivative as a TP fluorophore and a p-nitrobenzyl carbamate group as a recognition domain, was successfully applied to detect endogenous NTR in living cells, tissues and zebrafish.