Two probes ( and ) bearing two dansyl fluorophores were synthesized and applied to the detection of mercury(ii) ions in aqueous solution. These probes exhibited a selective response to Hg(2+) in a buffered solution, with high sensitivity and a unique fluorescence response signal which displayed a blue-shift effect in the fluorescence emission peak. The Hg(2+) recognition mechanisms of the probes were determined by NMR spectroscopy, ESI-MS and UV-vis spectroscopy. The results showed that probe and mercury(ii) ions formed an unusual 2:2 stoichiometric ratio complex, while probe and Hg(2+) formed a multidentate complex with a stoichiometric ratio of 2:1.