Lattice positions of Sn in kesterite Cu 2ZnSnS4 and Cu 2 SnS 3 nanoparticles and thin films were investigated by XANES (x-ray absorption near edge structure) analysis at the S K-edge. XANES spectra were analyzed by comparison with simulations taking into account anti-site defects and vacancies. Annealing of Cu 2ZnSnS4 nanoparticle thin films led to a decrease of Sn at its native and defect sites. The results show that XANES analysis at the S K-edge is a sensitive tool for the investigation of defect sites, being critical in kesterite thin film solar cells.