The coronavirus or COVID-19 infectious virus is the deadliest and potentially dangerous disease for humans. Radiologists frequently employ medical imaging tools to visualize complex internal structures as well as the functioning of the body. With precise diagnosis, it is possible to identify the infectious COVID-19 virus earlier, especially in an individual having no visible symptoms. For the diagnosis and early detection of the infectious COVID-19 virus, chest X-rays (CXRs) have been utilized which are available at https://www.kaggle.com/datasets/tawsifurrahman/covid19-radiography-database . Applying the gray-level co-occurrence matrix (GLCM) and gray-level run length matrix (GLRLM) feature extraction techniques, the features of the four classes (normal, lung opacity, viral pneumonia, and COVID-19) have been extracted and then classified by utilizing a machine learning (ML) classifier. Six distinct ML classifiers SMO (Sequential Minimal Optimization), Random Tree, MLP (Multi-Layer Perceptron), Linear SVM, Ensemble Classifier (Boosted Tree), and Bayes Net (Bayesian Network) with respective accuracy of 98.85%, 93.19%, 93.35%, 91.5%, 96.4%, and 96.454% are utilized to classify. The classifiers successfully distinguish between normal individuals, viral pneumonia-affected persons, lung opacity individuals, and COVID-19 virus-infected individuals who were considered for the study. These advanced technologies for coronavirus identification may be helpful in areas where access to skilled medical professionals and modern facilities is limited. Hence, as per the analysis, the study may be helpful in disease detection and classification. To classify the virus, radiologists’ second opinion can be quick and accurate in this urgent scenario.