Electrocardiogram (ECG) is defined as an electrical signal, which represents cardiac activity. Heart rate variability (HRV) as the variation of interval between two consecutive heartbeats represents the balance between the sympathetic and parasympathetic branches of the autonomic nervous system. In this study, we aimed to evaluate the efficiency of discrete wavelet transform (DWT) based features extracted from HRV which were further selected by genetic algorithm (GA), and were deployed by support vector machine to HRV classification. In this paper, 53 ECGs including 3 different beat types (ventricular fibrillation (VF), atrial fibrillation (AF) and also normal sinus rhythm (NSR)), were selected from the MIT/BIH arrhythmia database. The approach contains 4 stages including HRV signal extraction from each ECG signal, feature extraction using DWT (entropy, mean, variance, kurtosis and spectral component β), best features selection by GA and classification of normal and abnormal ECGs using the selected features by support vector machine (SVM). The performance of the classification procedure employing the combination of selected features were evaluated using several measures including accuracy, sensitivity, specificity and precision which resulted in 97.14%, 97.54%, 96.9% and 97.64%, respectively. A comparative analysis with the related existing methods illustrates the proposed method has a higher potential in the classification of AF and VF. The attempt to classify the ECG signal has been successfully achieved. The proposed method has shown a promising sensitivity of 97.54% which indicates that this technique is an excellent model for computer-aided diagnosis of cardiac arrhythmias.