The analysis of heart rhythms using symbolic dynamics is perfomed. Time intervals corresponding to the predominance of sympathetic or parasympathetic tone of the nervous regulation are encoded. During encoding 25 symbols are used, what leads to a wide variety of words in the symbolic strings. The analysis of heart rhythms for patients of all ages, including healthy ones and patients with cardiovascular diseases are produced. These results give characteristic of agerelated changes and different pathologies in cardiac rhythms.