The ferroelectric order in SrTiO3 (STO) thin films induced by structural transformation and external stimuli such as pressure or bending stress has attracted much attention, since it is expected to be used in lead-free ferroelectric applications. We prepared STO thin films sputtered on various substrates and investigated the local distortion of the films from the electronic point of view by using Ti K-edge X-ray absorption spectroscopy. In all the films, the enhancement of the Ti-3d eg pre-edge peak was observed due to the off-center displacement of Ti ions, indicating the potential for ferroelectricity. We also observed two minor changes in the spectra depending on the films: an enhancement of the main absorption edge and a clear separation of the eg and t2g peaks. A simple model which simulates these features was coexistence of the antiferrodistortive order of TiO6 octahedra and the local ferroelectric order caused by Ti off-centering.