Higher maternal betaine intake and serum folate levels were associated with lower cord blood and placental IGF2 DNA methylation (r = − 0.13, p = 0.049 and r = − 0.065, p = 0.034, respectively) in both GDM and non-GDM pregnancies. Here, IGF2 is linked to gestational diabetes.