Vowel & Consonant Counter

Paste any text and instantly see how many vowels, consonants, digits, spaces, and other characters it contains.

Example: 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%.

Use cases

Linguistic research

Comparing vowel/consonant ratios across languages or dialects? Paste samples and read the bottom-line percentage.

Poetry and rhyme

Sonnets, haiku, and rap verses live and die by their vowel rhythm. Count syllable nuclei to keep meter consistent across stanzas.

Language teaching

Show students that English is roughly 40% vowels โ€” a fact that explains why letter frequencies in Wordle aren't uniform.

Constrained writing

Lipograms (writing without one letter) and pangrams (using every letter) both benefit from this counter for verification.

Cipher and puzzle design

Substitution ciphers preserve vowel ratios. Crossword and Wordle solvers can use vowel counts to constrain candidate words.

How it works

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.

How to use it

  1. Paste or type your text into the input box.
  2. Click the 'Count' button to process the text.
  3. View the breakdown: vowels, consonants, digits, spaces, and other characters.
  4. Check the vowel ratio percentage displayed below the counts.

Edge cases

Accented characters
Letters like รฉ, รผ are treated as consonants unless they match the exact ASCII vowel set (a, e, i, o, u).
Non-Latin scripts
Characters from Cyrillic, Arabic, or other scripts are classified as 'other' since they are not Latin letters.
Mixed case
Uppercase vowels (A, E, I, O, U) are counted as vowels; case does not affect classification.

Pro tips

  • Use the vowel ratio to analyze poetry meter โ€” typical English verse averages 38โ€“42% vowels.
  • Compare vowel ratios across different texts to study author style or genre differences.
  • For password strength, a high consonant count may make a password harder to guess.
  • In language teaching, show students the vowel/consonant distribution to highlight phonetic patterns.

How it compares

Counting characters manually is tedious; hereโ€™s how automated methods compare.

This toolPython scriptExcel formulas
Ease of useNo coding required, instant resultsRequires programming knowledgeRequires complex formula construction
AccuracyHandles Unicode perfectlyAccurate with proper Unicode handlingLimited to basic ASCII without VBA
PortabilityWorks in any browserPython environment neededRequires Microsoft Excel
FeaturesIncludes vowel ratio and detailed breakdownCan be customized for other countsBasic counts only with extra effort

A bit of history

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.

Frequently asked questions

Is Y counted as a vowel?

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.

How are digraphs (CH, SH, TH) handled?

Each letter is counted independently โ€” CH is two consonants, OO is two vowels. The tool does not group letters into digraphs.

What about non-English languages?

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.

Embed our tools on your website

Free for any site. No signup. Iframe loads from our servers and stays up-to-date automatically.

๐Ÿ“‹ Embed the Word Counter

Copy this snippet (auto-resizes, Copy button works):

Live preview:

๐Ÿ“‹ Embed this Vowel & Consonant Counter

Copy this snippet (auto-resizes, Copy button works):

Live preview:

Want more options? All embeddable tools โ†’