Despite their potential toxicity, bitter almonds are used in certain products, albeit in a processed form that removes toxic compounds. Bitter almond oil, for example, is often used in cosmetics and pharmaceuticals after undergoing treatment to remove hydrogen cyanide. Additionally, bitter almonds are sometimes used in the production of liqueurs and flavor extracts, where they are treated to ensure safety.