Formic acid is a common chemical raw material, the effective detection of which is of importance to food safety and environmental quality. In this work, the lanthanide functionalized dual-emission metal-organic framework (TH25) was prepared as a ratiometric fluorescent sensor for formic acid. This ratiometric sensor has a good detection performance with high selectivity, sensitivity, and reproducibility. Together with a low limit of detection of 2.1 ppm, these characters promise the ability to sense at low levels as well as a practical detection ability. This work provides ideas for the design and synthesis of effective chemical sensors for organic acids.