A unique class of near-infrared functional fluorescent dyes with carboxylic-acid-modulated fluorescence ON/OFF switching: rational design, synthesis, optical properties, theoretical calculations, and applications for fluorescence imaging in living animals.