About Letter Frequency Counter
Paste a passage or open a text file to see how many times each letter occurs and what share of all letters it makes up, most frequent first or in alphabetical order. The most common letter pairs are listed too.
It is the first step in breaking a substitution cipher or a cryptogram: compare the top letters with the usual order in English (E, T, A, O…), and use the index of coincidence to tell a simple substitution from a keyword cipher. It is also handy for language study and word games.
How it works
- Upper and lower case count as the same letter. With A to Z, accented letters count as their plain letter (é as E), and other letters such as ß or Greek are set aside and their number reported.
- With Any script, every letter of every alphabet is counted as written, so the tool also works for Greek, Cyrillic, Arabic or Chinese text.
- A letter pair is two letters directly next to each other. Pairs never span a space, digit or punctuation mark, so they reflect how letters combine inside words.
- The index of coincidence is the chance that two letters picked at random from the text are the same: about 0.067 for English and 0.038 for random letters. A substitution cipher keeps it; a keyword cipher such as Vigenère pulls it towards the random figure.
Questions
Can I see the result as a chart?
The counts and shares are shown as figures in tables rather than as a bar chart. Choose Most frequent first to read them like a ranked chart, or Alphabetical to compare them letter by letter.
How do I use this to solve a cryptogram?
In a simple substitution cipher every letter is replaced by the same other letter, so the frequencies keep their shape. The most common ciphertext letter is likely E or T, and common pairs such as TH, HE and IN show up as the most frequent ciphertext pairs.
How large a text can it count?
Up to 2 MB of text, typed, pasted or opened as a plain text or Markdown file. The letter table shows up to 200 letters and the pair table the 30 most common pairs; the totals always cover the whole text.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.