Character frequency counter

Paste a text and see how often each letter, digit and symbol appears, sorted from most to least common with counts and percentages. Free, and your text never leaves your browser.

How to use it

  1. Type or paste your text in the box.
  2. Choose what to ignore: Ignore uppercase and lowercase, Ignore spaces and line breaks or Ignore punctuation and symbols.
  3. Read the table below: each row shows a character, its count and its share of the total.

Guide to counting character frequency

What character frequency analysis is

Character frequency analysis counts how many times each letter, digit, space or symbol appears in a text and shows each one as a share of the total. It is the classic first step in breaking simple substitution ciphers, because in a long text in a given language some letters always appear far more often than others. It is also handy for checking that a text was not padded with odd symbols, for finding stray characters such as non-breaking spaces or smart quotes, for puzzle and word-game design, and for classroom exercises on how languages differ.

How the count works

The tool reads your text one character at a time. Emoji and accented letters that are stored as a single character count as one character each, and an é is never merged with an e. Then your options are applied: spaces and line breaks are dropped if you tick Ignore spaces and line breaks; punctuation and symbols are dropped if you tick Ignore punctuation and symbols (digits are kept); and everything is converted to lowercase if you tick Ignore uppercase and lowercase. The share of each character is its count divided by the total that remains, shown with two decimals. Rows are sorted from most to least frequent, and characters with the same count are listed in character order. The table shows at most 1,000 rows. Everything runs in your browser.

Worked example

Type Banana band. With Ignore uppercase and lowercase and Ignore spaces and line breaks ticked, the Summary shows 10 characters counted and 4 different characters. The table reads: a, 4, 40.00%; n, 3, 30.00%; b, 2, 20.00%; d, 1, 10.00%.

Now untick both options. The text now has 11 characters and 6 different ones: a, 4, 36.36%; n, 3, 27.27%; then (space), B, b and d with 1 each, 9.09%. The capital B and the lowercase b are separate rows, and the space is shown as (space).

What the options change

OptionEffect on the totalUse it when
Ignore uppercase and lowercaseA and a become one rowYou study letters, not typing style
Ignore spaces and line breaksSpaces, tabs and new lines are not countedYou want percentages of visible characters only
Ignore punctuation and symbolsCommas, quotes, currency signs and emoji are not countedYou want letters and digits only

Tips and common mistakes

  • Short texts give unreliable patterns. For frequency analysis of a cipher, use at least a few hundred letters; with a few words the most common letter can be anything.
  • If a character you cannot see is counted, look for rows named (space), (tab) or (line break), or for symbols that look like normal ones. Tick the ignore options to remove them from the count.
  • A letter typed with a separate combining accent can appear as two entries. Text copied from some systems stores accents that way.
  • Percentages depend on the options. When you compare two texts, use the same options for both.

Related tools

To test what you found, try a shift cipher with the Caesar cipher tool. For plain totals of words and characters use the word counter, and to change capitalization before counting use the case converter.

Questions

How is the percentage calculated?

It is the number of times a character appears divided by the total number of characters counted, after applying the options you ticked.

Does uppercase count as a different character?

By default no: A and a are counted together. Untick "Ignore uppercase and lowercase" to count them separately.

What is this useful for?

Common uses are puzzles and ciphers (frequency analysis), checking language patterns, spotting odd or hidden characters, and learning which letters a language uses most.

Are emoji and accented letters counted?

Yes. Each emoji or accented letter is counted as a character of its own. A é is not merged with an e.