A review with more than 100 references on the principles and recent developments in the solid-phase extraction (SPE) prior and for in situ near and attenuated total reflection (ATR) infrared spectroscopic analysis is presented. New materials, chromatographic modalities, experimental setups and configurations are described. Their advantages for fast sample preparation for distinct classes of compounds containing different functional groups in order to enhance selectivity and sensitivity are discussed and compared. This is the first review highlighting both the fundamentals of SPE, near and ATR spectroscopy with a view to real sample applicability and routine analysis. Most of real sample analyses examples are found in environmental research, followed by food-and bioanalysis. In this contribution a comprehensive overview of the most potent SPE-NIR and SPE-ATR approaches is summarized and provided.