In the process, sodium hypochlorite (NaClO) and sodium chloride (NaCl) are formed when chlorine is passed into cold and dilute sodium hydroxide solution. It is prepared industrially by electrolysis with minimal separation between the anode and the cathode.