A topical pharmaceutical formulation comprising 0.5 ppm to 1000 ppm of a tertiary amine oxide of general formula I. The tertiary amine oxide functions as a preservative or enhances the preservative efficacy in such formulations developed for topical administration. In particular, the topical formulation is an ophthalmic composition.