Sodium chloride has the chemical formula NaCl. It is an ionic compound consisting of positively charged sodium (Na+) and negatively charged chloride (Cl-) ions. Sodium chloride is commonly known as table salt and is widely used as a seasoning and food preservative.