The advancement of e-commerce has changed the way people shop. However, there is a mismatch between the actual quality of a product and the seller’s description. Product reviews are an important source of information for making purchasing decisions. However, processing large numbers of reviews manually is difficult. This research aims to detect emotions in Indonesian language product review texts using contextual embeddings. The public dataset used was PRDECT-ID, which comprises five emotion labels. The methods used include data preprocessing, feature extraction using contextual embeddings such as Bidirectional Encoder Representations from Transformers (BERT), and classification using Decision Tree, Naïve Bayes, and k-Nearest Neighbors (KNN). Among the compared models, the KNN model demonstrated the highest improvement, achieving a 15.09% enhancement over the decision tree results. This research provides insights into the effectiveness of contextual embeddings in detecting emotions in Indonesian language product review texts.