In this paper, Ni-doped ZnS (ZnS:Ni2+) nanoparticles (NPs) have been prepared through a chemical method. The average size of the particle is 45 nm. Thin films of the particles have been prepared by using the spin-coating method. The linear and nonlinear optical properties of Ni-doped ZnS thin films and the colloidal solution of them have been studied widely. Using a precise numerical method, the refractive index curve (dispersion curve), absorption coefficient and optical permittivity of Ni-doped ZnS film have been obtained. Using these values, the absorption coefficient of the colloidal solution of Nidoped ZnS particles has been simulated and compared with experimental results. Finally, using the z-scan method at low laser irradiation, the thermooptical effect has been studied and the nonlinear refractive index due to this effect has been reported.