Local structures of diamond-like carbon (DLC) films formed by various methods were studied by near-edge X-ray absorption fine-structure (NEXAFS) spectroscopy. The DLC films are characterized by the sp/sp ratio, which influences the mechanical and electronic properties. NEXAFS spectroscopy is sensitive to the sp/sp ratio, because the isolated peak corresponding to the 1s resonance transition can be observed. Carbon K-edge NEXAFS spectra for DLC thin films, which were synthesized by various methods, were measured using the total electron yield mode in the range of 275 eV–320 eV. A peak due to the coupling of carbon with oxygen was observed in the spectra of some DLC films, whereas it was not observed in the spectra of hydrogenated carbon films formed by RF sputtering. The obtained relative sp contents of the DLC films were distributed in the range of 20%. The minimum sp/sp ratio was obtained from DLC films formed by vacuum arc deposition from graphite, and large sp/sp ratios were obtained from DLC films formed by plasma chemical vapor deposition from hydrocarbons. The local structure of a DLC film was concluded to depend on the synthesis method, and in particular, the carbon source material.