Diabetes is a leading cause of death worldwide and results in over 3 million annual deaths. While insulin manages the disease well, many patients fail to comply with injection schedules, and despite significant investment, a more convenient oral formulation of insulin is still unavailable. Studies suggest that glycosylation may stabilize peptides for oral delivery, but the demanding production of homogeneously glycosylated peptides has hampered transition into the clinic. We report here the first total synthesis of homogeneously glycosylated insulin. After characterizing a series of insulin glycoforms with systematically varied O-glycosylation sites and structures, we demonstrate that O-mannosylation of insulin B-chain Thr27 reduces the peptide’s susceptibility to proteases and self-association, both critical properties for oral dosing, while maintaining full activity. This work illustrates the promise of glycosylation as a general mechanism for regulating peptide activity and expanding its therapeutic use.