A combined approach of physicochemical extraction and sulfur K-edge X-ray absorption near-edge structure (XANES) spectroscopy was applied to characterize the extracellular polymeric substances (EPS) of typical bacterial biofilms in this study. Physicochemical analysis showed variation of the contents of DNA, polysaccharide and protein in different fractions of EPS in different mediums. The sulfur K-edge XANES analysis yielded a variety of spectra. Spectral fitting of the XANES spectra utilizing a large set of model compounds showed that there was more reduced sulfur in both LB-EPS (loosely bound EPS) and TB-EPS (tightly bound EPS) of all the biofilms in LB medium than in R2A medium. More oxidized sulfur was identified in LB-EPS than that in TB-EPS, suggesting different niches and physiological heterogeneity in the biofilms. Our results suggested that the sulfur K-edge XANES can be a useful tool to analyze the sulfur speciation in EPS of biofilms.