In this paper, titanium nitride nanoparticles were prepared in three methods, In the first method, titanium nitride nanoparticles were prepared by the Ball-mill method; in the second and third methods, the nanoparticles were synthesized by the sol-gel, and the co-precipitation methods. The samples were characterized by X-ray diffraction (XRD), UV-Vis spectroscopy, and scanning electron microscopy (SEM), for the study of structural, linear optical properties, and surface morphology study, respectively. The Z-scan technique was utilized to study the TiN nanoparticles nonlinearity. A change in nonlinear optical behavior with an increase in input pump power and concentration of the TiN nanoparticles was observed. Results showed that the TiN nanoparticles give new potentials in nonlinear optical applications. The nonlinear optical behavior of the TiN nanoparticles shifts from inverse saturation absorption to saturation absorption with increase of intensity.