Abstract: Brain tumors pose a serious health risk, and prompt and precise identification is essential for successful treatment. This article describes an automated method employing convolutional neural networks (CNNs) to identify and categorize brain cancers in MRI images. The dataset that was used consists of 7,023 MRI scans that were obtained from three different sources: the Br35H dataset, the SARTAJ dataset, and the fig share repository. Four classes are identified from the images: pituitary tumors, gliomas, meningioma’s, and no tumor. With the use of this improved dataset, the CNN model was created and trained, ultimately attaining a 97.5% test accuracy. Moreover, class-wise analysis showed that the precision values for pituitary tumors were 96.1%, 98.8%, 96.1%, and 98.6%, respectively, with equivalent recall rates of 94.7%, 95.4%, 100%, and 99% for gliomas, meningioma’s, and no tumors. With values of 0.966 for gliomas, 0.957 for meningioma’s, 0.994 for no tumor, and 0.975 for pituitary tumors, the F1-scores demonstrate the general resilience of the model. These findings show that the suggested CNNbased method is effective in assisting with brain tumor diagnosis from MRI scans, providing radiologists and other medical practitioners with a useful tool. In order to improve diagnostic accuracy, future study may entail enhancing the model even further and investigating the integration of other imaging modalities