As the simplest aldehyde compounds, formaldehyde (FA) is implicated in nervous system diseases and cancer. Endoplasmic reticulum is an organelle that plays important functions in living cells. Accordingly, the development of efficient methods for FA detection in the endoplasmic reticulum (ER) is of great biomedical importance. In this work, we developed the first ER-targeted fluorescent FA probe Na-FA-ER. The detection is based on the condensation reaction of the hydrazine group and FA to suppress the photo-induced electron transfer (PET) pathway, resulting in a fluorescence increase. The novel Na-FA-ER showed high sensitivity to FA. In addition, the Na-FA-ER enabled the bio-imaging of exogenous and endogenous FA in living HeLa cells. Most significantly, the new Na-FA-ER was employed to visualize the endogenous FA in the ER in living cells for the first time.