HClO and H2S are crucial for maintaining the homeostasis in cells and play vital roles in many physiological and pathological processes. Herein, we present a fluorescent probe that can respectively and simultaneously detect H2S and HClO in a dual-ratiometric manner with good linearity. Utilizing this probe, the imaging of intracellular H2S or/and HClO in living cells in a ratiometric manner was achieved.