In the wake of the COVID-19 pandemic, the use of medical imaging, particularly X-ray radiography, has become integral to the rapid and accurate diagnosis of pneumonia induced by the virus. This research paper introduces a novel twodimensional Convolutional Neural Network (2D-CNN) architecture specifically tailored for the classification of COVID-19 related pneumonia in X-ray images. Leveraging the advancements in deep learning, our model is designed to distinguish between viral pneumonia, typical of COVID-19, and other types of pneumonia, as well as healthy lung imagery. The architecture of the proposed 2D-CNN is characterized by its depth and a unique layer arrangement, which optimizes feature extraction from X-ray images, thus enhancing the model's diagnostic precision. We trained our model using a substantial dataset comprising thousands of annotated X-ray images, including those of patients diagnosed with COVID-19, patients with other pneumonia types, and individuals with no lung infection. This dataset enabled the model to learn a wide range of radiographic features associated with different lung conditions. Our model demonstrated exceptional performance, achieving high accuracy, sensitivity, and specificity in preliminary tests.The results indicate that our 2D-CNN model not only outperforms existing pneumonia classification models but also provides a valuable tool for healthcare professionals in the early detection and differentiation of COVID-19 related pneumonia. This capability is crucial for prompt and appropriate treatment, potentially reducing the pandemic's burden on healthcare systems. Furthermore, the model's design allows for easy integration into existing medical imaging workflows, offering a practical and efficient solution for frontline medical facilities. Our research contributes to the ongoing efforts to combat COVID-19 by enhancing diagnostic procedures through the application of artificial intelligence in medical imaging.