Consonant Counter
Count consonants and vowels in any text, inspect per-letter frequency tables and percentage ratios, and break down whitespace, digits, and punctuation.
How to Use
- Paste or type text into the input box (or click Sample to test with a pangram).
- Toggle Treat Y as vowel or Show unused letters (0) to customize the classification and tables.
- Inspect total consonants, vowels, percentage ratio bar, and sorted per-letter frequency tables.
- Click Copy Report to copy the full summary or Reset to clear the analyzer.
What is Consonant Counter?
A consonant counter analyzes written text to measure how many consonant and vowel letters appear, what percentage of alphabetic letters each group represents, and which individual letters occur most frequently. Linguists, cryptography enthusiasts, teachers, and word-game players use consonant and vowel distributions to study readability, phonetics, and cipher patterns.
How It Works
As you type or paste text, `analyzeConsonants` iterates over Unicode code points, separates whitespace, digits, and punctuation into their own breakdown counters, and strips combining marks via NFD normalization to classify every Latin letter as a vowel (A, E, I, O, U, plus Y when toggled) or consonant. Counts, group shares, letter percentages, and sorted frequency tables update synchronously in browser memory.
Common Use Cases
- Phonetics and linguistics study — measure consonant-to-vowel ratios across poems, prose passages, or student writing samples
- Cryptanalysis and puzzle solving — inspect individual consonant frequencies (such as T, N, S, R, L) for substitution ciphers or word games
- Readability and brand-naming checks — evaluate whether product names or headlines balance consonants and vowels cleanly
- Text hygiene inspection — separate alphabetic letters from whitespace, digits, and punctuation marks in pasted strings
Technical Details
Client-side analyzer (`analyzeConsonants`) using code-point iteration, Unicode NFD diacritic stripping for A–Z classification, configurable Y-as-vowel mode, separate whitespace/digit/punctuation counters, proportional ratio bar using CSS design tokens, and ranked consonant/vowel frequency tables.
FAQ
Which letters are counted as consonants vs. vowels?
By default, A, E, I, O, and U are counted as vowels while the remaining 21 English letters (including Y) are counted as consonants. You can enable the Treat Y as vowel toggle to reclassify Y dynamically.
How are spaces, numbers, and punctuation handled?
Spaces, tabs, newlines, digits, and punctuation marks are excluded from consonant and vowel totals and reported separately in the non-letter breakdown cards.
Does the Consonant Counter handle accented Latin characters?
Yes. Characters are Unicode-normalized using NFD decomposition so accented Latin letters such as é or ñ are classified accurately under their base letter.
Does this tool upload my text?
No. Letter classification and frequency sorting execute locally in your browser memory.