Chlorphenesin is used in cosmetic formulations as a preservative to prevent the growth of harmful bacteria, fungi, and other microorganisms. It helps extend the shelf life of products and maintain their efficacy over time.