Character Frequency Counter

Count how often each character appears in a text, with a bar chart and the percentage of the total.

24Distinct characters
119Characters

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the Character Frequency Counter does

Use this character frequency counter to count how often each character appears in a text, with a bar chart and the percentage of the total. Paste your text in, pick the options you need, and copy the result straight back out. It is most often used for frequency analysis on a substitution cipher. For a second version of this character frequency counter, see FreeToolStation.org.

How to use it

  1. Paste the text.
  2. Choose whether case matters and whether to count only letters.
  3. Set how many of the most frequent characters to show.

How it works

English letter frequency is roughly e, t, a, o, i, n, s, h, r, d, l, u — the "etaoin shrdlu" sequence that appeared as a test line in Linotype typesetting because those were the first two columns of the keyboard, arranged by frequency.

Frequency analysis is the classical method for breaking a simple substitution cipher: the most common ciphertext letter is probably e, and the pattern of frequencies constrains the rest. It works because a substitution cipher preserves the frequency distribution exactly while changing the labels.

Letter frequency differs substantially between languages, which makes it a crude language identifier. A high w and z frequency suggests Polish; a high q and u pairing suggests French; a high k suggests a Germanic or Scandinavian language.

For any text shorter than a few hundred characters the distribution is dominated by noise and tells you little. Frequency analysis needs volume.

When to use it

  • Frequency analysis on a substitution cipher.
  • Checking which characters appear in a data set before validating it.
  • Finding an unexpected character in a file.
  • Comparing letter distributions between texts or languages.

Common mistakes to avoid

  • Drawing conclusions from a short text, where noise dominates.
  • Leaving whitespace in the count when analysing letter frequency.
  • Expecting English frequencies to apply to another language.

Frequently asked questions

What is the most common letter in English?

E, at around 12% of letters, followed by t, a, o, i and n. The sequence "etaoin shrdlu" is the traditional frequency order.

How is letter frequency used to break ciphers?

A substitution cipher preserves the frequency distribution and changes only the labels. The most frequent ciphertext letter is probably e, and the rest follows from pattern matching.

How much text do I need for reliable frequency analysis?

Several hundred characters at minimum, and ideally a few thousand. Short samples are dominated by noise.

Related tools

See all developer tools →