Near-infrared spectroscopy (NIRS) was used as an analysis method for quality control of aqueous xanthan gum solutions. Quantitative models for the determination of optical density, glucose, and xanthan gum were developed, enabling fast and reliable quality control.