• Zn-Co alloy film was prepared by supercritical-CO 2 electrodeposition pathway. • The higher incorporation of cobalt significantly improves the corrosion resistance. • Cobalt act as an inhibitor in the alloy coating. • The inhibition of coating is 27.6 % increase in the supercritical-CO 2 process. Supercritical-CO 2 (SC-CO 2 ) approach to the electrodeposition process has received significant attention due to its advantages, such as low surface tension, high diffusivity, and permeability. These properties can even replace the role of toxic additives and surfactants. Here in, we demonstrated the green fabrication of zinc-cobalt (Zn-Co) alloy film by SC-CO 2 electrodeposition process and explored its electrochemical performance. The prepared films were characterized by various micro-and spectroscopic analyses. Based on the results, the SC-CO 2 method prepared films show a compact structure with reduced crystallite size and 27.6 % improved corrosion resistance than the conventional method.