A new hemicyanine-based near-infrared fluorescence off-on probe with phenyl 2-(benzoylthio)benzoate as the recognition moiety to trap hydrogen polysulfides (H2Sn, n > 1) is developed, and is used for the sensitive imaging of H2Sn in cells and mice in vivo.