This study investigates the structural and optical characteristics of TiO2 thin films deposited by spray pyrolysis using different precursors: titanium (III) chloride (TiCl3) and titanyl acetylacetonate (TiAcAc) at varying molar concentrations. The X-ray diffraction (XRD) results indicated that TiO2 films exhibited the anatase phase, with the optimal structural parameters obtained at higher concentrations of the TiCl3 precursor. Optical analyses revealed varying band gap energies, transmittance, refractive index, extinction coefficients, and photoluminescence emissions based on the precursor and molarity, highlighting the potential applications of these films in optoelectronic devices and environmental protection.