This study aims to apply a Hybrid CNN-Transformer model based on Medical Vision Transformer (MedViT) for pneumonia classification using chest X-Ray images. The dataset consisted of 450 images, including 150 pneumonia images, 150 non-pneumonia images, and 150 random images as a control class to test system robustness. The data were obtained from Labuang Baji Hospital, Makassar, during the 2023 to 2025 period. The research stages included data collection, preprocessing, augmentation, dataset splitting, model implementation, training, and performance evaluation. The tested models consisted of CNN, Vision Transformer (ViT), and Hybrid CNN-Transformer. The evaluation used accuracy, precision, recall, F1-score, AUC, confusion matrix, ROC curve, and Grad-CAM visualization. The results showed that the Hybrid CNN-Transformer model achieved the best performance with an accuracy of 95.59%, precision of 96.12%, recall of 95.59%, F1-score of 95.58%, and AUC of 0.9968. The model improved accuracy by 8.83% compared with CNN and produced fewer classification errors. The Grad-CAM visualization also indicated that the model focused on relevant lung areas. These findings indicate that combining CNN local feature extraction with Transformer global context can improve pneumonia classification based on medical images..