A series of water-soluble A-π-A' typological indolium derivatives with two-photon properties for rapidly detecting HSO3 -/SO3 2- in living cells.