Oxidative stress plays a crucial role in the pathogenesis of many diseases. Esculetin is a natural coumarin compound with good antioxidant and anti-inflammatory properties. However, whether esculetin can protect HepG2 cells through inhibiting H2O2-induced apoptosis and pyroptosis is still ambiguous. Therefore, this study aimed to investigate the protective effects and mechanisms of esculetin against oxidative stress-induced cell damage in HepG2 cells. The results of this study demonstrate that pretreatment with esculetin could significantly improve the decrease in cell viability induced by H2O2 and reduce intracellular ROS levels. Esculetin not only apparently reduced the apoptotic rates and prevented MMP loss, but also markedly decreased cleaved-Caspase-3, cleaved-PARP, pro-apoptotic protein (Bax), and MMP-related protein (Cyt-c) expression, and increased anti-apoptotic protein (Bcl-2) expression in H2O2-induced HepG2 cells. Meanwhile, esculetin also remarkably reduced the level of LDH and decreased the expression of the pyroptosis-related proteins NLRP3, cleaved-Caspase-1, Il-1β, and GSDMD-N. Furthermore, esculetin pretreatment evidently downregulated the protein expression of p-JNK, p-c-Fos, and p-c-Jun. Additionally, anisomycin, a specific activator of JNK, blocked the protection of esculetin against H2O2-induced HepG2 cells apoptosis and pyroptosis. In conclusion, esculetin can protect HepG2 cells against H2O2-induced oxidative stress, apoptosis, and pyroptosis via inhibiting the JNK signaling pathway. These findings indicate that esculetin has the potential to be used as an antioxidant that improves oxidative stress-related diseases.