How to Use the Letter Frequency Counter
A letter frequency counter tells you how many times each letter appears in a text and what share of all the letters that is. Paste your text and the table appears at once. Counting is done in one pass over the text, so a long text is not a problem.
This is the sample text with Show set to Top 10. Case is ignored, so E and e are one letter:
Letters counted: 132 Β· Different: 21 Β· Shown: 10 Β· Not used: B J K V Z
letter count share english bar
E 21 15.9% 12.7% ββββββββββββββββ
T 14 10.6% 9.1% βββββββββββ
N 12 9.1% 6.7% βββββββββ
O 11 8.3% 7.5% ββββββββ
S 11 8.3% 6.3% ββββββββ
A 10 7.6% 8.2% ββββββββ
R 7 5.3% 6.0% βββββ
C 6 4.5% 2.8% βββββ
H 6 4.5% 6.1% βββββ
L 6 4.5% 4.0% βββββThe share is the count divided by the 132 letters counted. The bars are scaled to the most frequent letter, so the longest bar is always the top row. The Not used list names the five letters that never appear in the text.
What Gets Counted
- Letters A to Z: only the 26 English letters. Digits, spaces, punctuation and letters of other alphabets are skipped.
- Letters of any alphabet: also counts Greek, Cyrillic, Hebrew, Arabic, Chinese and every other script, but not digits.
- Letters and numbers: letters of any alphabet plus digits.
- Every character: also spaces, line breaks, punctuation and symbols. Spaces are shown as (space) and line breaks as (newline).
Count accented letters as the base letter is on by default, so Γ©, Γ¨ and Γͺ all count as E. Turn it off to keep them out of the A to Z count, or to count them separately in the other modes. Match case, when on, lists E and e as two different characters.
English Letter Frequency Reference
The english column shows the usual share of each letter in ordinary English text, so you can see where your text differs. E is the most common letter by a wide margin, followed by T, A, O, I and N. Q, Z, X and J are the rarest. In the sample text, E is 15.9 percent against 12.7 percent in the reference.
The reference figures are rounded values of the kind published in common letter frequency tables. Other collections of text give slightly different numbers, and a short text can differ a lot. The column appears only for single letters A to Z with Match case off.
Letter Frequency Analysis for Ciphers
Frequency analysis is the classic first step on a simple substitution cipher, where every letter is replaced by another one. Paste the ciphertext and look at the top of the table. If the most common cipher letter is X, then X probably stands for E, T or A. The second and third letters give more clues.
This works best on long texts in English. A few lines are too short to follow the reference, and a text in another language has its own pattern. The tool only counts. It does not try to solve a cipher for you.
Count Letter Pairs and Triples
Set Count in groups of to Pairs to count every two letters that follow each other, such as TH and HE, or to Triples for three. Overlapping groups all count, so the word the contributes TH and HE. Groups never run across a character that is not counted, so with letters A to Z the pairs stay inside words.
Hello World, pairs
Pairs counted: 8 Β· Different: 8
pair count share bar
EL 1 12.5% ββββββββββββββββ
HE 1 12.5% ββββββββββββββββ
LD 1 12.5% ββββββββββββββββ
LL 1 12.5% ββββββββββββββββ
LO 1 12.5% ββββββββββββββββ
OR 1 12.5% ββββββββββββββββ
RL 1 12.5% ββββββββββββββββ
WO 1 12.5% ββββββββββββββββHello and World give eight different pairs and none of them appears twice. There is no pair made of the o in Hello and the W in World, because the space between them is not counted. Switch Count to Every character if you want pairs that include spaces.
Find Letters You Never Used
With letters A to Z the summary line ends with the letters that do not appear, or with All 26 letters used. That makes the tool a quick check for a pangram, a sentence that uses every letter, or for a lipogram, a text written without one letter. Turn on List letters that never appear to also see them as rows with a count of 0.
For the word Hello, the summary reads Not used: A B C D F G I J K M N P Q R S T U V W X Y Z. The sentence The quick brown fox jumps over the lazy dog uses all 26.
Count the Frequency of a Letter in Excel or Python
To count how often one letter appears in a cell in Excel, compare the length of the text before and after removing the letter. This formula counts the letter e in A1, whatever its case:
=LEN(A1)-LEN(SUBSTITUTE(LOWER(A1),"e",""))For every letter at once, a script is shorter. In Python, Counter does the counting:
from collections import Counter
text = "Hello"
print(Counter(c for c in text.lower() if c.isalpha()))This prints Counter({'l': 2, 'h': 1, 'e': 1, 'o': 1}). The tool gives the same counts for Hello, with shares added and no code to run. Unlike this script, it also folds Γ© into E by default. To count the words of a text instead of its letters, use the Word Frequency Counter.
Clean the Text Before You Count
In the default mode digits and punctuation are skipped already, so cleaning is rarely needed. If you count every character and want to leave punctuation out, run the text through Remove Punctuation first. Extra spaces and blank lines can be removed with Remove Extra Spaces.
To turn the counted letters into a list that you can sort or filter, copy the CSV output into a spreadsheet, or paste a column of letters into Remove Duplicate Lines to see which ones occur.
Limits and Privacy
- Characters are counted one by one. A letter with several accent marks, or an emoji built from several parts, may count as more than one character in Every character mode.
- The English reference is for English only. Other languages have different letter shares.
- Letters with no A to Z base, such as Γ, ΓΈ and Γ¦, are not counted in A to Z mode. Use Letters of any alphabet to count them.
Your text is counted in your browser. It is not uploaded or stored. See the Privacy Policy for details.