In response to escalating global wastewater issues, particularly from dye contaminants, many studies have begun using hydrochar to adsorb dye from wastewater. However, the relationship between the preparation conditions of hydrochar, the properties of hydrochar, experimental conditions, types of dyes, and equilibrium adsorption capacity (Q) has not yet been fully explored. This study conducted a comprehensive assessment using twelve distinct ML models. The Gradient Boosting Regressor (GBR) model exhibited superior performance with R² (0.9629) and RMSE (0.1166) in the test dataset, marking it as the most effective among the evaluated models. Moreover, this study also proved the feasibility of the GBR model through stability testing and residual analysis. A feature importance analysis prioritized the variables as follows: experimental conditions (41.5 %), properties of hydrochar (26.0 %), preparation conditions (18.1 %), and type of dye (14.4 %). Meanwhile, experimental conditions (C