Heating potassium perchlorate yields pure oxygen and potassium chloride is left behind. Potassium chloride has many of the same properties of sodium chloride (salt). It even tastes like salt which is why its used as a salt substitute for people on low sodium diets.