Applying biochar to saline soil is a novel strategy for improving soil quality. However, how biochar addition amount affects soil nutrients, bacterial communities, and cotton growth at different stages remains unclear. Three biochar treatments, no biochar (BC0), 1% biochar (BC1, w/w), 3% biochar (BC3), and two cotton varieties, salt-sensitive (SS) and salt-tolerant (ST), were used in pot experiments, analyzing biochar effects on saline soil nutrients, bacterial communities, and cotton growth. The study found that biochar increased only organic carbon (SOC), total nitrogen (TN), and available potassium (AK) at the seedling stage. However, at the flowering-boll stage, biochar also increased nitrate (NO3–N$$ {\mathrm{NO}}_3<^>{-}\hbox{–} \mathrm{N} $$) and available phosphorus (AP) and reduced soil salt content. Biochar did not affect alpha-diversity at the seedling stage, but BC3 reduced alpha-diversity at the flowering-boll stage. The principal coordinate analysis revealed changes in the soil bacterial community composition that were closely associated with biochar added. From the redundancy analyses, SOC and AK were the leading environmental factors for soil bacterial community composition changes. SOC, TN, and AK correlated positively with Proteobacteria, which increased their relative abundance through biochar addition and correlated negatively with Bacteroidetes, Chloroflexi, and Acidobacteria, which decreased their relative abundance due to biochar. Furthermore, the random forests analysis showed that SOC, Shannon index, and beta-diversity were significant predictors of cotton biomass. In summary, biochar drives changes in bacterial communities in saline soils by increasing nutrients such as SOC and AK, which affect cotton growth. This study provides data to support the application of biochar on saline soils.