Neonatal birth weight is a crucial indicator of intrauterine growth and development with important implications for child development and adult health. The birth weight of a newborn is closely linked to the nutrition and health of the mother during pregnancy as well as genetic factors. Therefore, assessing the metabolic status of the fetus in utero is greatly significant for understanding the mechanisms responsible for abnormal birth weight. While previous studies often analyzed the impact of maternal metabolism on fetal development using umbilical cord blood from pregnant women, such blood may not accurately reflect the actual intrauterine environment owing to the barrier function of the placenta; moreover, obtaining biological samples during the fetal period is challenging. Meconium, the first feces excreted by a newborn, provides ideal biological material for studying maternal and infant health. Metabolomics can reveal metabolic changes in living organisms by analyzing small molecules in biological samples; hence studying meconium samples using metabolomics technology is expected to reveal fetal metabolic changes during pregnancy, thereby providing new insights into fetal nutritional intake, growth, and development, as well as metabolic pathways related to birth weight. To gain a deeper understanding of the metabolic changes associated with birth weight, this study collected metabolomic data from the meconium of 484 newborns in the established Xiaogan birth cohort using an untargeted metabolomics technique based on liquid chromatography-high resolution mass spectrometry (LC-HRMS) and analyzed the association between meconium metabolites and birth weight. This cohort exhibited incidence rates of low birth weight (<2500 g) and macrosomia (>4000 g) of 3.3% and 7.2%, respectively, which were roughly equivalent to the national average. Orthogonal partial least squares discriminant analysis revealed significant differences between the meconium metabolomes of the low birth weight and macrosomic groups when compared to the normal weight group. We discovered significant distinctions between the differential metabolites of newborns of low birth weight and those of normal weight, as well as between macrosomic and normal weight newborns that point to disparate biological pathways. Newborns with low birth weight exhibited significantly lower levels of critical amino acids, such as glutamate and proline, compared to the normal weight group, which may be associated with placental dysfunction and maternal nutritional deficiencies. Conversely, the meconium of macrosomic newborns contained significantly elevated levels of hormone metabolites such as estrone that reflected the pathophysiological state associated with maternal metabolic diseases or excessive placental hormone levels. Our study suggests that the metabolomic profile of the meconium reflects the metabolic pathways and regulatory mechanisms at play during fetal growth and development, and offers potential metabolic biomarkers and directions for future in-depth research into diseases related to fetal development. However, this study was based solely on the Xiaogan birth cohort, which was limited to specific regions and populations. A multicenter, multiethnic, and multiregional study is expected to help validate the universality of our research findings.