Mg-Ni alloys are produced by molten salt electrolysis and diffusion method on a nickel plate in KCl-NaCl based melts. Structure, alloy composition and electrochemical properties of these alloys are evaluated. Electrolyte composition and applied current density parameters are studied for the characterization of the alloys. It is found that Mg-Ni alloys with 45 wt% to 49 wt% Ni content which can be defined as MgNi-type alloys, have both higher discharge capacity and good retaining rate (72%). These alloys are mainly composed of Mg2Ni phases and displayed a maximum discharge capacity of 384 mAhg(-1). Increased Ni content is advantageous for the enhancement of the cycle life. At the same time, the discharge capacity of Mg-Ni alloy electrode is found to be decreasing. The highest capacity retaining (85%) rate is observed in the highest Ni content alloys (72 wt% Ni). Electrochemical impedance spectroscopy and potentiodynamic polarization measurements show that the controlling-step of the discharge process changed from a mixed rate determining process at lower depth of discharge to a mass transfer controlled process at higher depth of discharge. The charge transfer resistance increases from 0.5 Omega to 23 Omega with increasing depth of discharge. (C) 2018 Hydrogen Energy Publications LLC. Published by Elsevier Ltd. All rights reserved.