This study presents a convolutional neural network (CNN) approach to classify skin cancer into benign and malignant categories using a dataset of 3,297 images. Two CNN architectures were developed, achieving accuracies of 93% and 74%, respectively, with the first model being utilized for a web-based application. The research aims to improve early detection of skin cancer to assist dermatologists and potentially reduce mortality rates.