Character Frequency Counter

Paste your text to count the frequency of each character.

How it is calculated

The text is split into individual Unicode characters, so letters with accents or non-Latin scripts count as one character each. Every character that is not whitespace (spaces, tabs, line breaks) is tallied, which means punctuation, digits and symbols are counted like letters. Counting is case-sensitive: H and h are two different characters. The list is sorted from most to least frequent; characters with the same count keep the order in which they first appeared in your text. Two totals are given: total = number of non-whitespace characters and unique = number of different characters. Empty input or input that is only whitespace gives no result.

Worked example

Take the text Hello, World!. Its 13 characters include one space, which is ignored, so the total is 12. The letter l appears 3 times, o twice, and each of H, e, comma, W, r, d and the exclamation mark once. That is 9 different characters. The ranked list therefore starts with l: 3, then o: 2, then the seven single characters in order of first appearance.

Try this example →

Common mistakes

  • Expecting upper and lower case to be merged: "Hello" gives H and e separately, and a capital A and a small a are listed as two entries; lower-case the text first if you want combined counts.
  • Forgetting that punctuation, digits and symbols are counted; the total is not a letter count or a word length, and the unique figure includes them too.
  • Expecting spaces or line breaks in the total; whitespace is skipped, so the total is smaller than the character count of an editor.
  • Reading a tie as a ranking: the characters with count 1 are in order of appearance, not alphabetical order, so two equal counts say nothing about which is "more" common.
  • Using a very short text for frequency analysis of a cipher; letter frequencies only settle down on longer passages.

About this calculator

This tool tallies how many times each distinct character appears in a text (whitespace excluded), ranking results from most to least frequent alongside a running total. The underlying technique is frequency analysis — the same method used to break classical substitution ciphers, since letters like E and T appear far more often than Q or Z in natural English text.

Beyond cryptanalysis, it's useful for stylometry and writing analysis (spotting a writer's habitual letter or symbol use), puzzle-solving (Scrabble, cryptograms, word games), and checking character-set balance in generated text or passwords.

Was this helpful?

You can pick up to 3 reactions.

Comments (1)

  • Editorial team

    Because capitals and lowercase letters are counted separately, and punctuation and digits count too, a raw run is not yet a letter-frequency table. For something like a simple cipher analysis, lowercase your text and remove punctuation first. As a small check, Hello World has 10 characters excluding the space, 7 of them unique, with l at the top with 3. What kind of text are you analysing?

Popular calculators

All Calculators