A movable two-dimensional (2D) Hadamard encoding mask is obtained and combined with conventional FT-IR spectrometers for use in both the mid- and near-infrared spectral regions. Chemical maps and spectra of individual pixels of the maps can be obtained from heterogeneous samples by using this combination of a move-able 2D Hadamard encoding mask and an FT-IR spectrometer. We call the procedure Hadamard transform/FT-IR spectrometry. Spectra of usable signal-to-noise ratio and reliable chemical maps are obtained in reasonable data acquisition and processing time.