Textile printing and dyeing wastewater is a substantial source of highly toxic halogenated pollutants because of the chlorination decolorization. However, information on the occurrence and fate of the highly toxic halogenated byproducts, which are produced by chlorination decolorization of the textile printing and dyeing wastewater, is very limited. In this study, the occurrence of six categories of halogenated byproducts (haloacetic acids (HAAs), haloacetonitriles (HANs), N-nitrosamines (NAs), trihalomethanes, halogenated ketones, and halonitromethanes) was investigated along the full-scale treatment processes of textile printing and dyeing wastewater treatment plants. Furthermore, the ecological risk of the halogenated byproducts was evaluated. The results showed that the total concentration of halogenated byproducts increased significantly after chlorination. Large amounts of HAAs (average 122.1 μg/L), HANs (average 80.9 μg/L), THMs (average 48.3 μg/L), and NAs (average 2314.3 ng/L) were found in the chlorinated textile wastewater, and the results showed that the generations of HANs and NAs were positively correlated with the BIX and β/α index, indicating that the HANs and NAs might form from the microbial metabolites. In addition, HAAs and HANs exhibited high ecological risk quotients (>1), suggesting their high potential ecological risk. The results also demonstrated that most halogenated byproducts could be effectively removed by reverse osmosis treatment processes except NAs, with a lower removal rate of 18%. This study is believed to provide an important theoretical basis for controlling and reducing the ecological risks of halogenated byproducts in textile printing and dyeing wastewater effluents.