the invention relates to a process for removing at least a portion of salts contained in whey or a liquid based on whey by means of electrolysis while producing an acid mixture and a base mixture useful in food industries . in the process a four - compartment electrolytic cell is used in the electrolysis of the whey or the liquid based on whey . the four compartments between an anode and a cathode are separated from each other by means of ion exchange membranes and an independent liquid recirculation is connected with each one of the four compartments of the electrolytic cell .