Vowel & Consonant Counter
Paste any text and instantly see how many vowels, consonants, digits, spaces, and other characters it contains.
Hello World โ Vowels: 3, Consonants: 7, Spaces: 1
Paste any text and instantly see how many vowels, consonants, digits, spaces, and other characters it contains.
Hello World โ Vowels: 3, Consonants: 7, Spaces: 1
This counter breaks down any text by character type: vowels (a, e, i, o, u), consonants (the other 21 letters), digits, whitespace, and punctuation/symbols. Useful for linguistic analysis, poetry meter, language teaching, and tokenization-aware writing.
The vowel ratio at the bottom shows what percentage of your letters are vowels โ typical English prose runs 38โ42%; high-vowel languages (Italian, Hawaiian) exceed 50%; consonant-heavy languages can drop below 35%.
Comparing vowel/consonant ratios across languages or dialects? Paste samples and read the bottom-line percentage.
Sonnets, haiku, and rap verses live and die by their vowel rhythm. Count syllable nuclei to keep meter consistent across stanzas.
Show students that English is roughly 40% vowels โ a fact that explains why letter frequencies in Wordle aren't uniform.
Lipograms (writing without one letter) and pangrams (using every letter) both benefit from this counter for verification.
Substitution ciphers preserve vowel ratios. Crossword and Wordle solvers can use vowel counts to constrain candidate words.
The tool iterates over each character in the input string and classifies it by Unicode category and letter identity. Letters (L category) are checked against the set {a, e, i, o, u} (case-insensitive) to count vowels; all other letters are consonants. Digits are identified by the Nd (Number, Decimal Digit) category. Whitespace includes any character with the Zs (Separator, Space), Cc (Control, e.g., tab, newline) categories, plus the common space (U+0020). All remaining characters (punctuation, symbols, marks) are tallied as 'other'. The vowel ratio is computed as vowels / (vowels + consonants) * 100, providing a percentage. This per-character scan runs in O(n) time, where n is the total number of characters, and handles Unicode efficiently by using JavaScript's built-in regex and category-aware iteration.
Counting characters manually is tedious; hereโs how automated methods compare.
| This tool | Python script | Excel formulas | |
|---|---|---|---|
| Ease of use | No coding required, instant results | Requires programming knowledge | Requires complex formula construction |
| Accuracy | Handles Unicode perfectly | Accurate with proper Unicode handling | Limited to basic ASCII without VBA |
| Portability | Works in any browser | Python environment needed | Requires Microsoft Excel |
| Features | Includes vowel ratio and detailed breakdown | Can be customized for other counts | Basic counts only with extra effort |
Character-level analysis dates back to classical rhetoric, but automated vowel/consonant counters first appeared in early 20th-century cryptographic work and later in 1980s home computer programs (e.g., BASIC). The concept became widespread with online text analysis tools in the 2000s, enabling instant feedback for linguists, educators, and writers.
No โ Y is counted as a consonant. English Y is technically a semi-vowel that can act as either; this tool follows the standard 5-vowel (AEIOU) convention used by most reference grammars.
Each letter is counted independently โ CH is two consonants, OO is two vowels. The tool does not group letters into digraphs.
The tool counts only English AโZ. Accented letters (รฉ, รฑ) are counted as "punctuation/other" rather than vowels or consonants. For multi-script analysis, paste the Unicode-stripped version.