Electrolysis of ammonia in alkaline electrolyte solution was applied for the production of hydrogen. Both Pt-loaded Ni foam and Pt-Ir loaded Ni foam electrodes were prepared by electrodeposition and served as anode and cathode in ammonia electrolytic cell, respectively. The electrochemical behaviors of ammonia in KOH solution were individually investigated via cyclic voltammetry on three electrodes, i.e. bare Ni foam electrode, Pt-loaded Ni foam electrode and Pt-Ir loaded Ni foam electrode. The morphology and composition of the prepared Ni foam electrode were analyzed by scanning electron microscopy (SEM) and X-ray diffraction (XRD). Effects of the concentration of electrolyte solution and temperature of electrolytic cell on the electrolysis reaction were examined in order to enhance the efficiency of ammonia electrolysis. The competition of ammonia electrolysis and water electrolysis in the same alkaline solution was firstly proposed to explain the changes of cell voltage with the electrolysis proceeding. At varying current densities, different cell voltages could be obtained from galvanostatic curves. The low cell voltage of 0.58 V, which is less than the practical electrolysis voltage of water (1.6 V), can be obtained at a current density of 2.5 mA/cm 2 . Based on some experimental parameters, such as the applied current, the resulting cell voltage and output of hydrogen gas, the power consumption per gram of H 2 produced can be estimated.