2H2O -> 2H2 + O2
 

Electrolysis uses energy from electricity to split water molecules into hydrogen gas and oxygen gas.