Lyso-TPFP presents lysosomal targetability and an acidic pH-activatable response toward formaldehyde. Thus, it exclusively visualizes lysosomal formaldehyde and is immune against it in neutral cytosol and other organelles. In addition, two-photon fluorescence imaging endows Lyso-TPFP with the capability of in situ tracking formaldehyde in live cells and animals.