Student attendance is essential in the learning process. To record student attendance, several ways can be done; one of them is through student signatures. The process has several shortcomings, such as requiring a long time to make attendance; the attendance paper is lost, the administration must enter attendance data one by one into the computer. To overcome this, the paper proposed a web-based student attendance system that uses face recognition. In the proposed system, Convolutional Neural Network (CNN) is used to detect faces in images, deep metric learning is used to produce facial embedding, and K-NN is used to classify student's faces. Thus, the computer can recognize faces. From the experiments conducted, the system was able to recognize the faces of students who did attend and their attendance data was automatically saved. Thus, the university administration is alleviated in recording attendance data.