Menu

Letter Frequency Counter

Paste your text to see how many times each letter appears and what share of all letters it makes up, next to the typical frequency of that letter in English.

0 words 0 characters 0 lines

Continue with this text: Word frequencyCharacter counterCaesar cipher

Your text stays in your browser: nothing is uploaded or stored on a server.

How to use it

  1. Paste or type your text in the box, open a plain-text file with Open file, or click Example to load the opening of A Tale of Two Cities.
  2. Choose the options: Letters only, Case-sensitive, Count accented letters as plain, and the Order of the rows.
  3. Read the table: each row shows the letter, its count, its share of everything counted, the typical share in English and a bar scaled to the most frequent letter.
  4. Use Copy or Download .txt to take the result as plain text, one row per line: letter, count and percent separated by tabs, ready to paste into a spreadsheet.

The line under the table shows the total, for example “129 characters counted, 20 different”.

The options

Option Default What it changes
Letters only (skip digits and punctuation) On Counts letters from any alphabet and skips digits, punctuation, symbols and emoji. Off: every character except whitespace is counted.
Case-sensitive (A and a counted apart) Off Off: uppercase is folded into lowercase and rows are shown in lowercase. On: A and a get their own rows.
Count accented letters as plain (é → e) Off Removes accent marks before counting, so é, è and ê add to e.
Order Most frequent first Most frequent first sorts by count, with ties in alphabetical order. Alphabetical sorts by letter.

Here is what the options do to one input, Hello, World! 2026:

Settings Result
Default l 3 (30%), o 2 (20%), d, e, h, r, w 1 each (10%); 10 counted
Letters only off l 3 (18.75%), 2 2, o 2, then , ! 0 6 d e h r w 1 each; 16 counted
Case-sensitive on Same counts, but the rows read H and W instead of h and w

How the counting works

  • What a character is. The text is split into the characters you see, not into code units, so an emoji with a skin tone such as 👍🏽 counts as one character (with “Letters only” off) rather than two or four.
  • Whitespace (spaces, tabs, line breaks) is never counted, whatever the options.
  • Letters from any script count. With “Letters only” on, Greek, Cyrillic, Arabic, Chinese and other letters are counted too: 東京 Москва gives 8 letters, each its own row. The “In English” column shows a dash for anything outside a–z.
  • Accents. Without the fold option, é is a different letter from e: Café crème, naïve gives 11 different letters, with é, è and ï in their own rows. With the option on, the same text gives 9, and e rises to 4. Letters that are not built from a base letter plus a mark stay as they are, so ø, æ and ß are not changed into o, ae or ss.
  • Percentages are worked out from everything counted under the current options, so changing “Letters only” changes every share.
  • Long text. The table shows the first 120 rows, which only matters with many scripts or symbols mixed in; the copied text result always has every row.
  • Two ways of typing an accent. An accented letter typed as two code points (a plain e followed by a combining accent, common in text copied from some PDFs and file names) is normalized first, so it lands in the same row as the usual one-character é: the two forms of é together give one row, é 2.
  • Turkish İ. Without “Case-sensitive”, the capital dotted İ counts as i, so İstanbul gives 8 letters with one i. With “Case-sensitive” on, İ keeps its own row.

Worked example: the sample text

The Example button loads the first lines of Dickens’ A Tale of Two Cities. With the default options it counts 129 letters, 20 different:

Letter Count Share In English
e 17 13.18% 12.7%
t 17 13.18% 9.06%
s 14 10.85% 6.33%
i 13 10.08% 6.97%
o 12 9.30% 7.51%
h 9 6.98% 6.09%
a 8 6.20% 8.17%
f 8 6.20% 2.23%
w 8 6.20% 2.36%

E and T lead, as in typical English, but W, S and F are far above the norm because the passage repeats “it was”, “times” and “of”. This is the main thing to remember about letter frequency: one sentence or paragraph can sit far from the averages, and the figures only settle near the English table for long texts.

Frequency analysis of a cipher

In a substitution cipher each letter is always replaced by the same other letter, so the letter counts stay the same; only the labels change. That is why counting letters is the first step in breaking one. Take this sentence, shifted by 3 with the Caesar cipher tool:

Phhw ph qhdu wkh rog wuhh dw vhyhq; eulqj wkh ohwwhu dqg wkh nhb.

The counter finds 50 letters, and h is far ahead with 14 (28%), followed by w with 8 (16%). Guessing that h stands for e, the most common letter in English, gives a shift of 3 (e → h), and w → t fits the same shift. Shifting back by 3 gives the message: “Meet me near the old tree at seven; bring the letter and the key.” Short messages do not always follow the English pattern, so test the second and third most frequent letters too if the first guess gives nonsense.

When people use it

  • Puzzles and word games. Paste a list of candidate words for Wordle, Scrabble or a crossword to see which letters appear most often in it. The tool counts letters anywhere in the word, not by position.
  • Teaching and classwork. Students compare the letters in their own essay or a novel chapter with the English table, or count letters in another language to see how its pattern differs.
  • Typography and design. Before choosing or subsetting a font, check which letters and accented characters a text really uses (untick “Letters only” to see punctuation too).
  • Checking text data. A quick scan with “Letters only” off shows stray characters such as curly quotes, dashes or symbols you did not expect; the remove special characters tool can then clean them out.

Letter frequency vs word frequency

Letter frequency answers “which characters appear most”; word frequency answers “which words repeat most”, which is the one to use for spotting overused words in writing. For the total number of characters, with and without spaces, use the character counter.

Questions

What is the most common letter in English?

E. In Robert Lewand's table, used for the "In English" column, E makes up about 12.7% of the letters in typical English text, followed by T (9.1%) and A (8.2%). Short texts can differ a lot from this. See the most common letters in English for the full list.

Are uppercase and lowercase letters counted together?

Yes, by default A and a are one row, shown in lowercase. Tick "Case-sensitive" to count them as separate rows.

Does it count numbers, punctuation and spaces?

Spaces, tabs and line breaks are never counted. Digits and punctuation are skipped while "Letters only" is ticked; untick it to count every visible character, including emoji.

What do the percentages add up to?

The share is each row's count divided by the total of all counted characters, so the shares add up to 100% (allowing for rounding). With "Letters only" on, that total is the number of letters; with it off, it includes digits and punctuation, so each letter's share is lower.

Can I use it for frequency analysis of a cipher?

Yes. Paste the ciphertext and compare the most frequent letters with the "In English" column. In a Caesar cipher the most common ciphertext letter often stands for E, which gives you the shift.

Does it count letter pairs (bigrams) or letters by position?

No. It counts single characters anywhere in the text. For whole words, use the word frequency counter.

Is my text uploaded?

No. The counting runs in your browser and the text is not sent anywhere.