NIR dyes have become popular for many applications, including biosensing and imaging. For this reason, the molecular switch mechanism of the xanthene dyes makes them useful for in vivo detection and imaging of bioanalytes. Our group has been designing NIR xanthene-based dyes by the donor-acceptor-donor approach; however, the equilibrium between their opened and closed forms varies depending on the donors and spacer. We synthesized donor-acceptor-donor NIR xanthene-based dyes with an alkyne spacer via the Sonogashira coupling reaction to investigate the effects of the alkyne spacer and the donors on the maximum absorption wavelength and the molecular switching (ring opening) process of the dyes. We evaluated the strength and nature of the donors and the presence and absence of the alkyne spacer on the properties of the dyes. It was shown that the alkyne spacer extended the conjugation of the dyes, leading to absorption wavelengths of longer values compared with the dyes without the alkyne group. In addition, strong charge transfer donors shifted the absorption wavelength towards the NIR region, while donors with strong π-donation resulted in xanthene dyes with a smaller equilibrium constant. DFT/TDDFT calculations corroborated the experimental data in most of the cases.Dye 2containing the N,N-dimethylaniline group gave contrary results and is being further investigated.