Esketamine is a widely used intravenous general anesthetic. However, its safety, particularly its effects on the heart, is not fully understood. In this study, we investigated the effects of esketamine exposure on zebrafish embryonic heart development. Zebrafish embryos were exposed to esketamine at concentrations of 1, 10, and 100 mg/L from 48 h post-fertilization (hpf) to 72 hpf. We found that after exposure, zebrafish embryos had an increased hatching rate, decreased heart rate, stroke volume, and cardiac output. When we exposed transgenic zebrafish of the Tg(cmlc2:EGFP) strain to esketamine, we observed ventricular dilation and thickening of atrial walls in developing embryos. Additionally, we further discovered the abnormal expression of genes associated with cardiac development, including nkx2.5, gata4, tbx5, and myh6, calcium signaling pathways, namely ryr2a, ryr2b, atp2a2a, atp2a2b, slc8a3, slc8a4a, and cacna1aa, as well as an increase in acetylcholine concentration. In conclusion, our findings suggest that esketamine may impair zebrafish larvae’s cardiac development and function by affecting acetylcholine concentration, resulting in weakened cardiac neural regulation and subsequent effects on cardiac function. The insights garnered from this research advocate for a comprehensive safety assessment of esketamine in clinical applications.