Character Frequency
Count how often every character appears, with live percentages and totals. Great for ciphers, puzzles, and data checks.
Count how often every character appears in your text, with live percentages, totals, and a ranked table. Unicode-safe counting treats emoji and Bengali conjuncts as single characters, and a case-fold toggle merges upper and lower into one row.
How to use Character Frequency
- Paste the text to analyse.
- Toggle case folding or space counting to match your question.
- Read the ranked table; click nothing — it updates live.
Who it is for
Cipher and puzzle solvers doing frequency analysis, linguists checking script distribution, teachers demonstrating letter statistics, and QA engineers spotting invisible characters in exports.
How it works
- Characters are counted code point by code point, with spaces and line breaks excluded unless you ask for them.
- The table ranks by count, shows each character’s share as a percentage, and draws a proportional bar.
- Case folding and space counting are separate toggles, so cipher work and readability checks both fit.
What it cannot do
- It counts characters, not words or phrases — that is word-frequency-counter’s job.
- Combining sequences render as separate rows where the text stores them as separate code points.
Sample input & output
"See the sea!" (with Case folding ON and Count spaces OFF)
Total counted characters: 10 — "e": 4 (40.0%), "s": 2 (20.0%), "t": 1 (10.0%), "h": 1 (10.0%), "a": 1 (10.0%), "!": 1 (10.0%).
Frequently asked questions
How is this different from a word frequency counter?
That tool counts words; this one counts individual characters. Frequency analysis of ciphers, alphabets, and encodings needs characters, not words.
Why count spaces at all?
Puzzle ciphers strip spaces, but readability checks and typography audits often need them — both are one toggle away.
Does it handle Bengali conjuncts?
Characters are counted as stored code points, so a conjunct typed as one character counts as one; typed with visible vowel signs it counts per sign.
How does frequency analysis help break substitution ciphers and puzzles?
In large samples of natural English prose, single-letter frequencies follow the classic ETAOIN SHRDLU distribution: 'E' accounts for roughly 12.7% of letters, 'T' around 9.1%, 'A' around 8.2%, while 'Z' and 'Q' sit below 0.1%. Because a monoalphabetic substitution cipher merely relabels symbols without flattening that curve, matching the top ciphertext character counts against expected language shares narrows candidate keys rapidly.
What is the difference between UTF-16 code units, Unicode code points, and grapheme clusters?
JavaScript's string.length counts 16-bit UTF-16 code units, splitting supplementary characters above U+FFFF (such as emoji 🚀, U+1F680) into two surrogate halves. Iterating by Unicode code points keeps astral emoji together as one entry, though multi-codepoint sequences — such as a Latin letter plus a combining accent (e + U+0301) or family ZWJ emoji — still store multiple distinct code points.
Why do cryptographic randomness and compression checks look at character uniformity?
Truly random hexadecimal digests (SHA-256) should show each hex digit 0–9 and a–f near 6.25% (1/16) over sufficient length, and Base64 ciphertext should distribute roughly evenly across its 64-character alphabet aside from trailing '=' padding. Sharp spikes in specific printable characters inside an unknown payload typically indicate plain text, unencrypted XML/JSON structure, repeating XOR keys, or uncompressed padding runs.
How can character frequency spot invisible formatting pollution in database imports?
Toggling space counting ON inspects every whitespace and control code point inside pasted CSV or CMS fields. When non-breaking spaces (U+00A0), tab characters, carriage returns, smart curly quotes (U+2018/U+2019), or stray replacement characters (, U+FFFD from broken Latin-1 to UTF-8 decoding) appear in the ranked table, you immediately know why string comparisons or search indexes are missing matches.