How to use the character frequency counter
- Paste or type your text into the input area.
- Toggle Case sensitive if you need uppercase and lowercase counted separately.
- Uncheck Letters only to include spaces, digits, and punctuation in the count.
- Choose to sort by Frequency or Alphabetical order.
- Read the table below to see each character's count and percentage.
How the character frequency counter works
The tool iterates over your text using Unicode code points rather than raw UTF-16 code units. This means a simple emoji like 👋 counts as a single character instead of two. Sequences made of several code points, such as a family emoji joined by zero width joiners, are counted per code point. Each code point is classified as a letter or non-letter. When Letters only is enabled, non-letters are discarded before counting.
If case sensitivity is off, every letter is converted to lowercase before tallying. The final count for each unique character is divided by the total number of included characters and multiplied by 100 to produce the percentage. For example, in the word "hello" there are five letters. The letter "l" appears twice, giving it a frequency of 2 / 5 * 100 = 40.00%.
English letter frequency reference
Letter frequency analysis compares your text against known distributions. In standard English prose, certain letters appear far more often than others. Here is a reference table of approximate frequencies:
| Letter | Approximate % |
|---|---|
| e | 12.70 |
| t | 9.06 |
| a | 8.17 |
| o | 7.51 |
| i | 6.97 |
| n | 6.75 |
| s | 6.33 |
| h | 6.09 |
| r | 5.99 |
| d | 4.25 |
Short texts will deviate significantly from these averages. A reliable letter frequency counter needs several hundred words to approach the expected distribution.
Practical uses for counting characters in text
Writers and editors use this tool to check readability. Texts heavy in rare letters like "z", "q", or "x" can feel dense. Cryptography enthusiasts rely on letter frequency analysis to break simple substitution ciphers, since the most common symbol likely represents "e" or "t".
Developers also use it to count characters in text when validating input lengths or debugging encoding issues. If you need to prepare text for web publishing, you might first run it through a text cleaner to normalize whitespace, or use a url slug generator to create SEO-friendly links based on your content.
Handling ties and sorting
When sorting by frequency, characters with identical counts are ordered alphabetically as a tiebreaker. This ensures deterministic output every time you use the character frequency counter. Switching to alphabetical sort ignores counts entirely and arranges characters by their Unicode code point value, which places uppercase before lowercase and symbols before letters.
Edge cases: emoji, spaces, and punctuation
By default, the tool filters out everything except letters. Unchecking Letters only includes spaces, digits, punctuation marks, and emoji. Because the iteration uses code points, surrogate pairs are handled correctly. An emoji such as a waving hand is treated as one entry in the table, not two separate unprintable characters. Whitespace and invisible characters are labelled, for example (space), (tab), (newline) or (zero width joiner), so you can see exactly what was counted. Joined emoji such as a family or a hand with a skin tone break into their component code points, one row each.
When you only need totals rather than a breakdown, the word counter reports characters, words and sentences in one step. If you have a list of items with repeated entries, you may want to remove duplicate lines before running a frequency analysis to avoid skewed counts from copy-paste errors.
Worked examples
| Example | Input | Result |
|---|---|---|
| Simple word | Text: hello; Case sensitive: no; Letters only: yes; Sort by: frequency | Total letters: 5 |
| Mixed case sentence | Text: Hello World; Case sensitive: no; Letters only: yes; Sort by: frequency | Total letters: 10 |
| Include spaces and punctuation | Text: a b!; Case sensitive: no; Letters only: no; Sort by: alphabetical | Total characters: 4 |
| Emoji support | Text: Hi 👋🌍; Case sensitive: no; Letters only: no; Sort by: frequency | Total characters: 5 |
FAQ
Does this character frequency counter work offline?
Yes. The tool runs entirely in your browser using JavaScript. No text is sent to any server, so it works offline once the page has loaded.
What is the difference between a character frequency counter and a letter frequency counter?
A letter frequency counter only tallies alphabetic characters. A character frequency counter can include spaces, numbers, punctuation, and emoji when the letters-only filter is disabled.
How are emoji counted?
The tool counts Unicode code points, not UTF-16 code units, so a simple emoji such as a waving hand is one entry instead of two broken halves. Emoji built from several code points, such as a family emoji joined with zero width joiners or a hand with a skin tone, are counted code point by code point, so their parts appear as separate rows.
Can I count uppercase and lowercase separately?
Yes. Enable the Case sensitive option. Uppercase "A" and lowercase "a" will then appear as distinct rows in the results table.
Why do my percentages not match standard English letter frequencies?
Standard frequencies are derived from large corpora of text. Short samples naturally deviate. You need several paragraphs of typical prose for your letter frequency analysis to closely match published distributions.
How do I count spaces and punctuation?
Uncheck the Letters only option. The tool will then count every character in your input, including spaces, tabs, line breaks, commas, periods and other symbols. Invisible characters are shown with a name such as (space), (tab) or (newline) so the rows stay readable.
What does this tool count as a character?
One Unicode code point. That matches what most people see for letters, digits and simple emoji. It differs for accented letters typed as a base letter plus a combining mark, and for emoji sequences, where each code point gets its own row. With Letters only enabled, combining marks are not letters and are skipped.