Hepatocellular Carcinoma (HCC) is a type of liver cancer which occurs when a tumor grows malignantly in the liver. This cancer starts from the liver and is not caused by the spread of cancer from other organs. HCC commonly occurs due to the complications of liver disease. However, most patients do not show signs and symptoms in the early stage of liver cancer. Therefore, classification with high accuracy is needed to predict individuals with HCC early, based on their data and to provide them with the best treatment. In this study, the data used consisted of 192 samples with 66 HCC and 126 non-HCC samples, which were obtained from Al Islam Bandung Hospital. Many machine learning methods have been used to carry out classification. Among these methods, Support Vector Machine (SVM) and Random Forest (RF) have been frequently used due to their high level of performance. Therefore, in this study, SVM and RF were compared and analyzed for the classification of HCC. The aim of this study was to discover which method has the best accuracy to classify HCC. The results showed that SVM and RF had the highest accuracy value at 90% and 100% respectively. Therefore, RF method is a better model compared to SVM and suggested to be used in the classification of HCC.