We prepared Zn–Ni–B alloys with high Zn content and high corrosion resistance. The composition of the alloys was controlled by potentiostatic electrolysis. In the electroplating bath, dimethylamineborane was used as the B source. The characterization of the alloys and corrosion resistance evaluation were carried out by X-ray diffraction (XRD) analysis, optical microscopy, scanning electron microscopy (SEM), transmission electron microscopy (TEM), inductively coupled plasma–atomic emission spectrometry (ICP-AES), Tafel plots, and cyclic corrosion tests. All films were categorized into three groups on the basis of the results of XRD analysis, and it was found by TEM analysis that the Ni–B-type showed an amorphous structure. The Ni–B-type could contain up to 50.6 mol % Zn and showed similar or better anticorrosion properties than the amorphous Ni–B films. In the Ni–B-type, the higher the Zn content, the higher the corrosion resistance. The Zn–Ni–B alloys had almost the same electrochemical corrosion resistance and Zn content as the Zn–Ni–P alloys.