Faraday’s second law of electrolysis: "The mass of a substance deposited or liberated at an electrode is directly proportional to the quantity of electricity passed through the electrolyte."
At the anode: 2Cl− → Cl2(g) + 2e− Chlorine gas (Cl2) is evolved, and the solution near the anode becomes more acidic (pH decreases).
At the cathode: 2H2O + 2e− → H2(g) + 2OH− Hydrogen gas (H2) is evolved, and the solution near the cathode becomes more alkaline (pH increases).