There are many ways, but the two most common are desalinization tablets and distilling the water. Reverse osmosis works well, as does water softeners. Both uses are elaborate in construction, but...
Several ways--
Distillation. The fresh water evaporates and is collected in a cooler place. This can be simple or complex. Rain is a distillation process. Heating up the salt water makes it...