Artificial intelligence (AI) is increasingly used in electrocardiography (ECG) to assist in diagnosis, stratification, and management. AI algorithms can help clinicians in the following areas: (1) interpretation and detection of arrhythmias, ST-segment changes, QT prolongation, and other ECG abnormalities; (2) risk prediction integrated with or without clinical variables (to predict arrhythmias, sudden cardiac death, stroke, and other cardiovascular events); (3) monitoring ECG signals from cardiac implantable electronic devices and wearable devices in real time and alerting clinicians or patients when significant changes occur according to timing, duration, and situation; (4) signal processing, improving ECG quality and accuracy by removing noise/artifacts/interference, and extracting features not visible to the human eye (heart rate variability, beat-to-beat intervals, wavelet transforms, sample-level resolution, etc.); (5) therapy guidance, assisting in patient selection, optimizing treatments, improving symptom-to-treatment times, and cost effectiveness (earlier activation of code infarction in patients with ST-segment elevation, predicting the response to antiarrhythmic drugs or cardiac implantable devices therapies, reducing the risk of cardiac toxicity, etc.); (6) facilitating the integration of ECG data with other modalities (imaging, genomics, proteomics, biomarkers, etc.). In the future, AI is expected to play an increasingly important role in ECG diagnosis and management, as more data become available and more sophisticated algorithms are developed.