Computerized fundus image analysis is a wellestablished research area in the field of medical imaging. The cause of noise in fundus images is due to many factors like the low lighting conditions, adverse illumination effects, camera malfunctioning, etc. The presence of noise may lead to data loss and sometimes to the wrong data interpretation. Classifying the fundus images into either good quality or bad quality is very important as the good quality fundus images can be directly sent for processing without any preprocessing, hence reducing the computational time and the bad quality images can be forwarded for the required preprocessing stages. In this paper, we are using a convolutional neural network (CNN) to assess the quality of fundus images automatically. We use No-reference image quality assessment technique (IQA) classify the fundus images into good quality or bad quality based on their quality. A Mean Opinion Square (MOS) of 12 image quality assessment participants is taken for labeling the 300 fundus images based on their quality. The participants have rated the fundus images on the scale of 010, where the 0-rating is given for very bad quality fundus images, and 10-rating is given for the very good quality fundus images. The experimental study has proven that the classification result of the proposed CNN outperforms the best-known blind image quality assessment algorithms, namely, DIVINE, BLIINDS-II, and BRISQUE when trained on the public databases LIVE, TID2013 and on our fundus image dataset.