High-fructose corn syrup (HFCS) consumption has been associated with oxidative stress-related tissue injury; however, its effects on ocular tissues remain poorly understood. This study investigated the protective effects of riboflavin (RIB) against HFCS-induced ocular injury. Thirty-two male Wistar albino rats were randomly assigned to four groups (n = 8/group): Control, HFCS (30% in drinking water), HFCS + RIB (25 mg/kg/day, oral gavage), and RIB. Following the experimental period, ocular tissues were collected for histopathological evaluation of the cornea, limbus, retina, and lens. Corneal and retinal thickness were measured morphometrically. Immunohistochemical analyses of nuclear factor kappa B (NF-κB) and caspase 3 were conducted to assess inflammatory and apoptotic responses. Gene expression levels of glutathione peroxidase 4 (GPX4), heme oxygenase-1 (HO-1), hypoxia-inducible factor 1-alpha (HIF-1α), interleukin 6 (IL-6), NLR family pyrin domain-containing 3 (NLRP3), Beclin-1, caspase 3 (CASP-3), aquaporin 4 (AQP4) and zonula occludens-1 (ZO-1) were quantified by reverse transcription quantitative polymerase chain reaction. HFCS exposure induced significant histopathological alterations, increased corneal and retinal thickness, enhanced NF-κB and caspase-3 immunoreactivity, upregulated NLRP3, Beclin-1, CASP-3, and AQP4 expression, and reduced GPX4, HO-1, and HIF-1α expression. RIB administration significantly attenuated these pathological and molecular alterations. In conclusion, RIB attenuated HFCS-associated structural ocular injury and favorably modulated the expression of genes related to antioxidant defense, inflammatory signaling, cellular stress responses, apoptosis, and barrier-associated homeostasis. These findings support a potential protective role for RIB against diet-associated ocular injury.