Riboflavin (vitamin B2) is an essential B-vitamin crucial for the metabolism, development, and overall well-being of porcine species. As pig production intensifies, understanding the micronutrient needs of swine, particularly riboflavin, becomes increasingly vital. Riboflavin acts as a precursor for coenzymes involved in key redox reactions essential for energy production, growth, and immune regulation. Ariboflavinosis can disrupt metabolic functions, leading to impaired growth, reproductive issues, decreased feed efficiency, compromised immune function, ocular problems, and liver dysfunction. To ensure optimal growth and health, pig diets are consistently supplemented with riboflavin-enriched supplements. This review explores the diverse functions of riboflavin in swine metabolism, focusing on biochemical basics, metabolic pathways, riboflavin uptake and distribution, consequences of deficiency, and benefits of adequate intake. It emphasizes the need for optimized riboflavin supplementation strategies tailored to different production stages and environmental conditions. According to recommendations from four major breeding companies, the dietary riboflavin levels for swine are advised to range between 7.5 and 15 mg/kg for piglets, 3.5 to 8.0 mg/kg for finishing gilts and barrows, 4 to 10 mg/kg for gestating sows, and 5 to 10 mg/kg for lactating sows. Advances in precision nutrition, microbial production of riboflavin, and the development of functional feed additives are potential innovations to enhance swine health, growth performance, and sustainability. Comprehensive studies on the long-term effects of subclinical riboflavin deficiency and the broader health and welfare implications of supplementation are also needed. Addressing knowledge gaps and embracing future trends and innovations will be key to optimizing riboflavin supplementation and advancing the swine industry.