Hydrochloric acid is used as a bleaching agent in food, textile, metal, and rubber industries. Hydrochloric acid is used to produce various chemicals, including: Chlorides.