Management of wound infection has remained a significant challenge. Silver nanoparticles (AgNPs) have been identified as a potent antibacterial agent to prevent and reduce infection in wounds. The objective of this study was to examine the impact of improved green synthesis process by Allium iranicum extract. In this regard, AgNPs were synthesized in various pH, temperature, and time conditions to optimize the best situation. Moreover, the physico-chemical characteristics of synthesized AgNPs were assessed using UV–Vis spectroscopy, FTIR, XRD, zeta potential, DLS, FESEM, EDX, and TEM. Furthermore, the biological properties of synthesized AgNPs were evaluated by cell viability assay, blood compatibility assay, and antibacterial performance. The results of this study revealed that the green synthesized AgNPs by Allium iranicum extract resulted in the production of nanoparticles with an average diameter of 11.15 ± 4.198 nm and a relatively uniform distribution. In addition, a significant reduction in toxicity against fibroblasts and a significant decrease in hemolysis rate were observed in all doses in contrast to the control group. Additionally, its distinctive antibacterial characteristics against gram-positive and gram-negative bacteria substantiated its efficacy in wound infections. Altogether, the tailored synthesis of AgNPs may provide a potent biocompatible and antibacterial agent for managing severe wound infections.