4-Nitrophenol (4-NP), as a toxic and refractory pollutant, has generated significant concern due to its adverse effects. However, the potential toxic effects and mechanism remained unclear. In this study, the reproduction, development, locomotion and reactive oxygen species (ROS) production of Caenorhabditis elegans were investigated to evaluate the 4-NP toxicity. We used metabolomics to assess the potential damage mechanisms. The role of metabolites in mediating the relationship between 4-NP and phenotypes was examined by correlation and mediation analysis. 4-NP (8 ng/L and 8 µg/L) caused significant reduction of brood size, ovulation rate, total germ cells numbers, head thrashes and body bends, and an increase in ROS. However, the oosperm numbers in uterus, body length and body width were decreased in 8 µg/L. Moreover, 36 differential metabolites were enriched in the significant metabolic pathways, including lysine biosynthesis, β-alanine metabolism, tryptophan metabolism, pentose phosphate pathway, pentose and glucuronate interconversions, amino sugar and nucleotide sugar metabolism, starch and sucrose metabolism, galactose metabolism, propanoate metabolism, glycerolipid metabolism, and estrogen signaling pathway. The mechanism of 4-NP toxicity was that oxidative stress caused by the perturbation of amino acid, which had effects on energy metabolism through disturbing carbohydrate and lipid metabolism, and finally affected the estrogen signaling pathway to exert toxic effects. Moreover, correlation and mediation analysis showed glycerol-3P, glucosamine-6P, glucosamine-1P, UDP-galactose, L-aspartic acid, and uracil were potential markers for the reproduction and glucose-1,6P2 for developmental toxicity. The results provided insight into the pathways involved in the toxic effects caused by 4-NP and developed potential biomarkers to evaluate 4-NP toxicity.