Nitrophenol compounds (NCs) are widely distributed in water environments and regarded as important precursors of disinfection byproducts (DBPs). Herein, 4-nitrophenol and 2-amino-4-nitrophenol were selected as representative NCs to explore chlorinated DBPs (Cl-DBPs) formation during UV/post-chlorination. Dichloronitromethane (DCNM), trichloronitromethane (TCNM), dichloroacetonitrile (DCAN), and trichloromethane (TCM) were formed from 4-nitrophenol and 2-amino-4-nitrophenol during UV/post-chlorination, and the yields of individual Cl-DBPs from 2-amino-4-nitrophenol were higher than those from 4-nitrophenol. Meantime, increasing chlorine contact time, UV fluence, and free chlorine dose could enhance Cl-DBPs formation, while much higher values of the three factors might decrease the yields of Cl-DBPs. Besides, alkaline pH could decrease the yields of halonitromethane (HNMs) and DCAN but increase the yields of TCM. Also, higher concentrations of 4-nitrophenol and 2-amino-4-nitrophenol would induce more Cl-DBPs formation. Subsequently, the possible formation pathways of DCNM, TCNM, DCAN, and TCM form 4-nitrophenol and 2-amino-4-nitrophenol during UV/post-chlorination were proposed according to transformation products (TPs) and density functional theory (DFT) calculation. Notably, Cl-DBPs formed from 2-amino-4-nitrophenol presented higher toxicity than those from 4-nitrophenol. Among these generated Cl-DBPs, DCAN and TCNM posed higher cytotoxicity and genotoxicity, respectively. Furthermore, 4-nitrophenol, 2-amino-4-nitrophenol, and their TPs exhibited ecotoxicity. Finally, 4-nitrophenol and 2-amino-4-nitrophenol presented a high potential to produce DCNM, TCNM, DCAN, and TCM in actual waters during UV/post-chlorination, but the Cl-DBPs yields were markedly different from those in simulated waters. This work can help better understand Cl-DBPs formation from different NCs during UV/post-chlorination and is conducive to controlling Cl-DBPs formation.