As a food additive, citric acid is used as a flavoring and preservative in food and beverages, especially soft drinks.