The present invention provides an ophthalmic composition comprising a hyperbranched polymer. The ophthalmic compositions may also comprise carbonic anhydrase inhibitors, wherein the hyperbranched polymer increases the aqueous solubility of the carbonic anhydrase inhibitor, and increases corneal permeation of the active agent. The ophthalmic compositions may also comprise non-ionic surfactants, such as polysorbate, hydroxypropyl methyl cellulose or hydroxyethyl cellulose, and beta-blockers, such as carteolol, levobunolol, betaxolol, metipranolol, timolol or propranolol.