The present invention provides an ophthalmic composition comprising a hyperbranched polyester. The ophthalmic compositions may also comprise carbonic anhydrase inhibitors, wherein the hyperbranched polyester 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 PEG, Polysorbate, HPMC or HEC, and beta-blockers, such as Carteolol, Levobunolol, Betaxolol, Metipranolol, Timolol or Propranolol. The concentration of the hyperbranched polyester in the ophthalmic formulation should be less than or equal to 4% (w/v) in order to avoid any cytotoxic effects on human corneal cells and thus the eye irritation.