Frequency Analysis Tool (Letters, Bigrams, IoC)
Count letter frequencies and compare them with English, with chi-squared, index of coincidence, top bigrams and trigrams, doubled letters and a chart.
English percentages are the usual reference values for English text (Wikipedia, "Letter frequency"). Short texts vary a lot from them.
- Percent
- English %
| Letter | Count | Percent | English % | Difference |
|---|---|---|---|---|
| A | 12 | 6.38 | 8.2 | -1.82 |
| B | 3 | 1.6 | 1.5 | 0.1 |
| C | 7 | 3.72 | 2.8 | 0.92 |
| D | 4 | 2.13 | 4.3 | -2.17 |
| E | 24 | 12.77 | 12.7 | 0.07 |
| F | 3 | 1.6 | 2.2 | -0.6 |
| G | 1 | 0.53 | 2 | -1.47 |
| H | 11 | 5.85 | 6.1 | -0.25 |
| I | 15 | 7.98 | 7 | 0.98 |
| J | 1 | 0.53 | 0.15 | 0.38 |
| K | 2 | 1.06 | 0.77 | 0.29 |
| L | 8 | 4.26 | 4 | 0.26 |
| M | 4 | 2.13 | 2.4 | -0.27 |
| N | 14 | 7.45 | 6.7 | 0.75 |
| O | 14 | 7.45 | 7.5 | -0.05 |
| P | 5 | 2.66 | 1.9 | 0.76 |
| Q | 2 | 1.06 | 0.095 | 0.97 |
| R | 11 | 5.85 | 6 | -0.15 |
| S | 15 | 7.98 | 6.3 | 1.68 |
| T | 16 | 8.51 | 9.1 | -0.59 |
| U | 5 | 2.66 | 2.8 | -0.14 |
| V | 0 | 0 | 0.98 | -0.98 |
| W | 5 | 2.66 | 2.4 | 0.26 |
| X | 1 | 0.53 | 0.15 | 0.38 |
| Y | 4 | 2.13 | 2 | 0.13 |
| Z | 1 | 0.53 | 0.074 | 0.46 |
| Bigram | Count | Percent |
|---|---|---|
| IS | 5 | 3.55 |
| AR | 4 | 2.84 |
| EN | 4 | 2.84 |
| HE | 4 | 2.84 |
| LE | 4 | 2.84 |
| AN | 3 | 2.13 |
| CO | 3 | 2.13 |
| ER | 3 | 2.13 |
| OW | 3 | 2.13 |
| RE | 3 | 2.13 |
| TE | 3 | 2.13 |
| TH | 3 | 2.13 |
| CH | 2 | 1.42 |
| EA | 2 | 1.42 |
| ET | 2 | 1.42 |
| Trigram | Count | Percent |
|---|---|---|
| THE | 3 | 2.86 |
| AND | 2 | 1.9 |
| ARE | 2 | 1.9 |
| COU | 2 | 1.9 |
| ETT | 2 | 1.9 |
| HOW | 2 | 1.9 |
| LET | 2 | 1.9 |
| NTS | 2 | 1.9 |
| OUN | 2 | 1.9 |
| TER | 2 | 1.9 |
| TTE | 2 | 1.9 |
| UNT | 2 | 1.9 |
| WHI | 2 | 1.9 |
| ACH | 1 | 0.95 |
| ALY | 1 | 0.95 |
| Pair | Count |
|---|---|
| TT | 2 |
| EE | 1 |
| LL | 1 |
| MM | 1 |
| PP | 1 |
Frequency analysis is the oldest code-breaking method: count how often each letter appears and compare the counts with normal English, where E, T, A, O, I and N dominate. It breaks Caesar and substitution ciphers, tells transposition from substitution, and shows whether a text is English at all. This tool counts letters (or every character), compares them with English, and adds χ², the index of coincidence, top bigrams, trigrams and doubled letters.
How to use this tool
- Paste the text or ciphertext.
- Choose letters only, or every character for encodings and symbols.
- Sort the table alphabetically or by frequency, and set how many bigrams and trigrams to list.
- Compare the chart and the "letters by frequency" line with English.
Formula
share = count ÷ N × 100% IoC = Σ nᵢ(nᵢ − 1) / (N(N − 1)) χ² = Σ (nᵢ − N·pᵢ)² / (N·pᵢ)
N is the number of letters, nᵢ the count of letter i and pᵢ its English share. The index of coincidence is the chance that two letters picked at random are equal: about 0.066 for English, 0.038 for random letters. χ² measures the distance from English; it grows with text length, so compare it with the letter count.
Example
For AAB, A appears twice out of three letters: 66.67%. For AABB the index of coincidence is (2·1 + 2·1) / (4·3) = 0.3333. A pangram such as "The quick brown fox jumps over the lazy dog" has 35 letters, and O is the most common with 4 (11.43%).
Frequently asked questions
How long must a text be for frequency analysis?
Patterns start to show at about 100 letters and are reliable from a few hundred. Below 50 letters the counts can differ a lot from English even for normal text.
What does a high index of coincidence mean?
That the text uses one alphabet: plain English, a transposition or a simple substitution all score near 0.066. Polyalphabetic ciphers such as Vigenère score lower, closer to 0.038.
Where do the English percentages come from?
They are the commonly cited letter frequencies of English text (E 12.7%, T 9.1%, A 8.2% …). Every corpus differs slightly, so treat small differences as noise.
Sources
Last updated:
Page address with these inputs: https://kakao.mobile/tools/frequency-analysis-tool/
Cite or embed this tool
kakaoCalc. (2026, November 8). Frequency Analysis Tool (Letters, Bigrams, IoC). https://kakao.mobile/tools/frequency-analysis-tool/
“Frequency Analysis Tool (Letters, Bigrams, IoC).” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/frequency-analysis-tool/.
Paste this code into your page. The widget runs in your visitors' browsers, shows no ads and keeps a link back to this page. Embedding terms