Electronic components are basic elements that are widely used in many industrial and technological fields. With the development of technology, their dimensions are being produced in smaller and smaller sizes. As a result, making fast distinctions becomes difficult. Being able to classify electronic components quickly and accurately will save labor and time in all areas where these elements are used. Recently, deep learning algorithms have become preferential in product classification studies due to their high accuracy and speed. In this paper, a classification study of electronic components was carried out with the deep learning method. A new convolutional neural network (CNN) model is proposed in the study. The model has six convolution layers, four pooling layers, two fully connected layers, softmax, and a classification layer. The training parameters of the network were determined as an ensemble size of 16, maximum period of 100, initial learning rate of 1 × 10−3, and the optimizing method sgdm. While determining the CNN model layers and training parameters, the values with the highest predictive values were selected as a result of the trials. Classification research was conducted using the pre-trained networks AlexNet, ShuffleNet, SqueezeNet, and GoogleNet for the same data, and their performance success parameters were compared to those of the proposed CNN model. The proposed CNN model showed higher performance than the other methods, and an accuracy value of 98.99% was obtained.