Which letters count as consonants
A consonant is any letter that is not one of the five vowels a, e, i, o and u β that is, b, c, d, f, g, h, j, k, l, m, n, p, q, r, s, t, v, w, x, y and z. This tool counts the letter y as a consonant, which is the most common convention, so your totals are consistent and predictable.
The analysis is case-insensitive, so uppercase and lowercase consonants are counted together, and numbers, spaces and punctuation are ignored to give you a clean letter count.