Skip to content
ToolPlankDEV
Text Tools
100% In-Browser Execution

Updated:

Letter Frequency Counter

Use this letter frequency counter to see how often each letter appears in your text. You get counts, percentages and bars, plus the expected English share of each letter and the letters you never used. Count pairs or any character. Nothing is uploaded.

Options:

Your text

Input
0 chars Β· 0 lines

Letter counts

Ready
Processing in browser...
0 chars Β· 0 linesUpdates as you type

Processed on your device. Your text is not sent to our servers.

More free tools you may need next.

Quick Guide

How to use Letter Frequency Counter

Simple step-by-step instructions to get the exact output you need.

  1. 01

    Paste your text

    Paste or type the text into the Your text box, or press Paste, or drop a .txt file onto it. Press Sample to load a short paragraph.

  2. 02

    Choose what to count

    Letters A to Z is the default. Switch Count to letters of any alphabet, letters and numbers, or every character. Under Count in groups of you can count pairs or triples of characters instead of single ones.

  3. 03

    Read the table

    Each row shows the count, the share of all counted characters, the usual English share and a bar. The line above the table gives the total, the number of different letters and the letters you did not use. Sort by count or A to Z, and limit the rows to the top 10, 20 or 50.

  4. 04

    Copy or download

    Press Copy for the text table, or set Output to CSV or TSV to paste the numbers into a spreadsheet. Download saves the result as a .txt file.

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:

Text
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.

Text
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:

Text
=LEN(A1)-LEN(SUBSTITUTE(LOWER(A1),"e",""))

For every letter at once, a script is shorter. In Python, Counter does the counting:

Python
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.

Frequently Asked Questions

Technical Q&A for Letter Frequency Counter

Common questions about edge cases, character encoding, and privacy guarantees.

Paste the text into the tool. Each letter appears in a table with its count and share of the total. Sort by count to see the most common letters first.

E is the most common letter, followed by T, A, O, I and N. The english column in the table shows the usual share of each letter for comparison.

Use =LEN(A1)-LEN(SUBSTITUTE(LOWER(A1),"e","")) to count the letter e in cell A1. To count all letters at once, paste the text into this tool and copy the CSV output.

Leave Count on Letters A to Z. The table lists every letter that appears with its count, and List letters that never appear adds the others with a count of 0.

Yes. Set Count to Every character to include digits, spaces, punctuation and symbols. Spaces are shown as (space) and line breaks as (newline).

Yes, as the counting step. Compare the most common cipher letters with E, T and A. It works best on long texts, and the tool does not solve the cipher.

By default Γ©, Γ¨ and Γͺ count as E. Turn off Count accented letters as the base letter to leave them out of the A to Z count, or choose Letters of any alphabet to count them as they are.

Not by default, so E and e are one letter. Turn on Match case to list them separately.

Yes. Set Output to CSV or TSV, then press Copy or Download. The columns are the letter, the count, the percent and, for A to Z, the English percent.

No. The counting runs in your browser, and nothing is uploaded or stored.