Early identification of a patient with a high risk of blood transfusion during brain tumor resection surgery is difficult but critical for implementing preoperative blood-saving strategies. This study aims to develop and validate a machine learning prediction tool for intraoperative blood transfusion in brain tumor resection surgery. A total of 541 patients who underwent brain tumor resection surgery in our hospital from January 2019 to December 2021 were retrospectively enrolled in this study. We incorporated demographics, preoperative comorbidities, and laboratory risk factors. Features were selected using the least absolute shrinkage and selection operator (LASSO). Eight machine learning algorithms were benchmarked to identify the best model to predict intraoperative blood transfusion. The prediction tool was established based on the best algorithm and evaluated with discriminative ability. The data were randomly split into training and test groups at a ratio of 7:3. LASSO identified seven preoperative relevant factors in the training group: hemoglobin, diameter, prothrombin time, white blood cell count (WBC), age, physical status of the American Society of Anesthesiologists (ASA) classification, and heart function. Logistic regression, linear discriminant analysis, supporter vector machine, and ranger all performed better in the eight machine learning algorithms with classification errors of 0.185, 0.193, 0.199, and 0.196, respectively. A nomogram was then established, and the model showed a better discrimination ability [0.817, 95% CI (0.739, 0.895)] than hemoglobin [0.663, 95% CI (0.557, 0.770)] alone in the test group (P = 0.000). Hemoglobin, diameter, prothrombin time, WBC, age, ASA status, and heart function are risk factors of intraoperative blood transfusion in brain tumor resection surgery. The prediction tool established using the logistic regression algorithm showed a good discriminative ability than hemoglobin alone for predicting intraoperative blood transfusion in brain tumor resection surgery.