Abstract: A method of treating whey for demineralization purposes, the method comprising a stage of separating out salts by transfer through electrodialysis or nanofiltration membranes, wherein, upstream from this separation stage, the method comprises in succession at least one step of exchanging divalent cations for protons and at least one step of exchanging divalent anions for chloride ions.