Purpose: During the current pandemic scientists, researchers, and health professionals across the globe are in search of new technological methods for tackling COVID-19. The magnificent performance reported by machine learning and deep learning methods in the previous epidemic has encouraged researchers to develop systems with these methods to diagnose COVID-19. Methods: In this paper, an ensemble-based multi-level voting model is proposed to diagnose COVID-19 from chest x-rays. The multi-level voting model proposed in this paper is built using four machine learning algorithms namely Random Forest (RF), Logistic Regression (LR), Support Vector Machine (SVM) with a linear kernel, and K-Nearest Neighbor (KNN). These algorithms are trained with features extracted using the ResNet50 deep learning model before merging them to form the voting model. In this work, voting is performed at two levels, at level 1 these four algorithms are grouped into 2 sets consisting of two algorithms each (set 1 — SVM with linear kernel and LR and set 2 — RF and KNN) and intra set hard voting is performed. At level 2 these two sets are merged using hard voting to form the proposed model. Results: The proposed multilevel voting model outperformed all the machine learning algorithms, pre-trained models, and other proposed works with an accuracy of 100% and specificity of 100%. Conclusion: The proposed model helps for the faster diagnosis of COVID-19 across the globe.