AbstractHigh-precision spectroscopy of large stellar samples plays a crucial role for several topical issues in astrophysics, such as studying the chemical evolution of the Milky Way Galaxy. Data are accumulating from instruments that obtain high-quality spectra of stars in the ultraviolet, optical and infrared wavelength regions on a routine basis. The interpretation of these spectra is often based on synthetic stellar spectra, either calculated on the fly or taken from a spectral library. One of the most important ingredients of these spectra is a set of high-quality transition data for numerous species, in particular neutral and singly ionized atoms. We rely heavily on the continuous activities of laboratory astrophysics groups that produce and improve the relevant experimental and theoretical atomic data. As an example, we briefly describe the efforts done in the context of the Gaia-ESO Public Spectroscopic Survey to compile and assess the best available data in a standard way, providing a list of recommended lines for analysis of optical spectra of FGK stars. The line data, together with specialised analysis methods, allow different surveys to obtain abundances with typical precisions of ∼0.1 dex on an industrial scale for ∼10 chemical elements. Several elements with urgent need for better atomic data have been identified.