Axion couplings to photons could induce photon-axion conversion in the presence of magnetic fields in the Universe. The conversion could impact various cosmic distance measurements such as luminosity distances to type Ia supernovae and angular distances to galaxy clusters in different ways. We consider different combinations of the most updated distance measurements to constrain the axion-photon coupling. Ignoring the conversion in intracluster medium (ICM), we find the upper bounds on axion-photon couplings to be around $5 times 10^{-12}$ (nG/$B$) GeV$^{-1}$ for axion mass below $5 times 10^{-13}$ eV, where $B$ is the strength of the magnetic field in the intergalactic medium (IGM). When including the conversion in ICM, the upper bound gets stronger and could reach $5 times 10^{-13} $GeV$^{-1}$ for $m_a < 5 times 10^{-12}$ eV. While this stronger bound moderately depends on the ICM modeling, it is independent of the IGM parameters. All the bounds are determined by the shape of Hubble rate as a function of redshift reconstructable from various distance measurements, and insensitive to todays Hubble rate, of which there is a tension between early and late cosmological measurements. As an appendix, we discuss model building challenges to use photon-axion conversion to make type Ia supernovae brighter to alleviate the Hubble problem/crisis.