To prepare dihydrogen, electrolysis of acidified or alkaline water using platinum electrodes is carried oiut. At cathode, water is reduced and at anode, hydroxide ions are oxidized.

Electrolytes such as acids or bases increase the electrical conductivity of water and the rate of electrolysis.