Lung infection is the most dangerous sign of Covid 19. X-ray images are the most effective means of diagnosing this virus. In order to detect this disease, deep learning algorithms and machine vision are widely used by computer scientists. Convolutional neural networks (CNN), DenseNet121, Resnet50, and VGG16 were used in this study for the detection of Covid-19 in X-ray images. In the current study, 1341 chest radiographs from the COVID-19 dataset were used to detect COVID-19 including infected and Healthy classes using a modified pre-trained CNN (train and test accuracy of 99.75% and 99.63%, respectively). The DENSENET121 model has a training accuracy of 43.89% and a test accuracy of 57.89%, respectively. The train and test accuracy of ResNet-50 are, respectively, 89.43% and 90%. Additionally, the CNN model has test and train accuracy of 98.13% and 96.73%, respectively. The suggested model has COVID-19 detection accuracy that is at least 1% higher than all other models.