This study addresses improving the electrical properties and demonstrating the antibacterial capability of spinel ZnCo2O4 films. We used sol–gel and spin-coating techniques to prepare samples and analyzed their crystal structures, microstructures, as well as their photoelectric and antibacterial properties, in relation to Ni doping. Single-phase spinel oxide is maintained in all of the Zn(Co1-xNix)2O4 films. The replacement of cobalt by nickel causes a decrease in the average grain size and surface roughness. Both the grain size and the surface roughness affect the optical properties of the film translucence. The transmittances of all films at a wavelength of 600 nm is ~31.3–48.6%. The characteristic absorption peak of the photon-excited electron is about 400 nm. A higher doping content ratio (Nix = 0.15–0.30) causes the absorption characteristic peak to gradually disappear. The direct energy gap of all spinel oxides ranges from 2.45 to 2.57 eV. All films are p-type semiconductors, and nickel can replace cobalt to increase the carrier concentration, resulting in a decrease in the resistivity of Zn(Co1-xNix)2O4 from 312.5 Ω-cm (Nix = 0) to 15.8 Ω-cm (Nix = 0.30). The antibacterial rate for Escherichia coli and Staphylococcus aureus associated of the material can reach more than 99.9%, and no photocatalysis is necessary. Therefore, Ni-doped ZnCo2O4 possesses excellent properties for potential applications.