Zirconium (Zr)-doped NiO films with different contents were successfully synthesized via the chemical spray pyrolysis technique. The structure, morphology, optical and electrochemical behaviors of these films were investigated by X-ray diffraction (XRD), Raman spectrometer, scanning electron microscopy (SEM), energy dispersive spectrometer (EDS), UV–Vis-NIR spectrophotometry, cyclic voltammetry (CV), and chronoamperometry (CA). XRD results suggested that the synthesized samples have the cubic crystal structure and a preferred orientation along the plane (111). Raman spectra further confirmed the successful incorporation of zirconium ions into the NiO films. SEM images explained that the surfaces of the doped films were composed of uniform and dense nanoparticles. EDS analysis suggested that Zr, Ni and O elements were uniformly distributed on the films. The optical results showed that the band gap decreases from 3.53 eV to 3.47 eV as the increase of zirconium doping content. The electrochemical analysis suggested that zirconium doping improved the specific capacitance of the NiO films (the NiO film with the Zr amount of 7 %, 59 F/g at 6 mV/s). In addition, the NiO film with 5 % Zr doped amount exhibited the largest ΔOD (81 %), the largest CE (60.37 cm2/C), and the fastest coloring time (tc =2.1 s) and bleaching time (tb = 2.4 s). These results showed that this film had the excellent electrochromic properties, suggesting that the optimal Zr doped amount of NiO films is 5 %. As a novel kind of electrochromic material, the Zr-doped NiO film has broad application prospects in smart windows, green buildings and energy efficient utilization fields.