This study focuses on the probable use of PET waste black carbon (PETWBC) and rice straw black carbon (RSBC) as an adsorbent for Acid Red 27 (AR 27) adsorption. The prepared adsorbent is characterized by FE-SEM and FT-IR. Batch adsorption experiments were conducted with the influencing of different operational conditions namely time of contact (1–180 min), AR 27 concentration (5–70 mg/L), adsorbent dose (0.5–20 g/L), pH (2–10), and temperature (25–60°C). High coefficient value [PETWBC (R2 = 0.94), and RSBC (R2 = 0.97)] of process optimization model suggesting that this model was significant, where pH and adsorbent dose expressively stimulus removal efficiency including 99.88, and 99.89% for PETWBC, and RSBC at pH (2). Furthermore, the machine learning approaches (ANN and BB-RSM) revealed a good association between the tested and projected value. Pseudo-second-order was the well-suited kinetics, where Freundlich isotherm could explain better equilibrium adsorption data. Thermodynamic study shows AR 27 adsorption is favourable, endothermic, and spontaneous. Environmental friendliness properties are confirmed by desorption studies and satisfactory results also attain from real wastewater experiments. Finally, this study indicates that PETWBC and RSBC could be potential candidates for the adsorption of AR 27 from wastewater.