Poly (vinyl chloride, PVC)/MoO3/NiMoO4/polyaniline (PANI)/x wt% tetrabutylammonium iodide (TBAI) polymers were formed using casting and hydrothermal methods. The present study examined the nanocomposites’ structural, electrical, and optical features comprising PVC/MoO3/NiMoO4/PANI/x wt%TBAI polymers. X-ray diffraction and scanning electron microscopy were used to investigate the structure and morphology of different samples. The influence of different amounts of TBAI on the linear and nonlinear optical features of PVC/MoO3/NiMoO4/PANI/x wt%TBAI polymers was explored. Adding MoO3/NiMoO4/PANI.TBAI reduced the direct and indirect optical band gaps to their minimum values (3.88, 3.04) eV and (3.58, 2.13) eV, respectively. Doped polymer with MoO3/NiMoO4 has the highest refractive index value. Only PVC filled with MoO3/NiMoO4 exhibits the highest non-linear optical parameters within the visible range. The fluorescence intensity and emitted colors influenced by the kind of dopant. The dielectric constant and ac conductivity values of the host polymer were affected by the amount of TBAI. The maximum energy density value was observed in PVC/MoO3/NiMoO4/PANI/10 wt%TBAI polymer. The Cole-Cole plot demonstrated an irregular shift for doped samples relative to the undoped. The obtained results nominated the nanocomposite films of PVC/MoO3/NiMoO4/PANI/x wt%TBAI to be used in diverse electric and optoelectrical applications.