In the field of materials for electrochromic (EC) applications much attentionwas paid to the derivatives of aniline. We report on the optical, structural and electrochromic properties of electrochromic thin film based on composite of WO3 nanoparticles and copolymer of aniline and o-toluidine prepared by electrochemical polymerization method on fluorine doped tin oxide (FTO) coated glass. The thin film was studied by X-ray diffraction (XRD) and Fourier transforms infrared (FTIR) spectroscopy. The morphology of prepared thin film was characterized by field emission scanning electron microscopy (FESEM), atomic force microscopy (AFM) and the thermal gravimetric analysis (TGA) as well. The optical spectra of nanocomposite thin film were characterized in the 200e900 nm wavelength range and EC properties of nanocomposite thin film were studied by cyclic voltammetry (CV). The calculation of optical band gaps of thin film exhibited that the thin film has directly allowed transition with the values of 2.63 eV on first region and 3.80 eV on second region. Dispersion parameters were calculated based on the single oscillator model. Finally, important parameters such as dispersion energy, oscillator energy and lattice dielectric constant were determined and compared with the data from other researchers. The nonlinear optical properties such as nonlinear optical susceptibility, nonlinear absorption coefficient and nonlinear refractive index were extracted. The obtained results of nanocomposite thin film can be useful for the optoelectronic applications.