Character Frequency Analyzer
Count character, letter and word frequencies for text analysis
Text
About
Analyze the character, letter, and word composition of a text. Shows summary counts (characters, words, lines, letters, digits, whitespace), the most frequent characters, and an a–z letter frequency breakdown useful for cryptography and linguistics. Everything runs in your browser; nothing is uploaded.
Examples
Count characters in a paragraph
The quick brown fox jumps over the lazy dog.Total: 45 chars | Letters: 35 | Words: 9 | Lines: 1
Top chars: ' ' (8), 'e' (4), 'o' (4), 't' (4)
Letter frequency (a-z): [a:1 b:1 c:1 d:1 e:4 f:2 g:1 ...]Whitespace is the most frequent character (8 spaces), followed by 'e', 'o', and 't' — matching the pangram's well-known letter distribution.
Frequency analysis on a cipher text
ciphertext:
PHHW PH DMH SHDFKWH — a Caesar-cipher ciphertextTop chars: 'H' (5), 'D' (3), 'P' (2), 'S' (2)
Expected English top: E, T, A, O, N
H appears most — likely E in plaintext → shift 3The bar chart suggests H maps to E (shift 3), a strong clue for breaking the cipher.
About this tool
Character Frequency Analysis counts every character in a text — letters, digits, whitespace, punctuation, and special characters — and reports the total, plus the top N most frequent characters and an a–z letter-frequency bar chart. It is useful for developers inspecting text quality, linguists doing corpus analysis, and cryptographers performing frequency-analysis attacks on classical ciphers.
The chart is case-insensitive (A and a are merged), which is the standard approach in cryptanalysis: English 'E' is the most frequent letter regardless of case. The chart renders as a CSS bar chart directly in the browser, with no server calls.
How to use this tool
Paste your text
Drop any text — a paragraph, a source file, a log, or a cipher text — into the input area.
Read the statistics
The tool shows counts for total characters, words, lines, letters, digits, whitespace, and unique characters. The top-10 characters and the a–z frequency bar chart appear below.
Use the chart for cryptanalysis
If the text is a monoalphabetic substitution cipher, compare the frequency bars against the known English letter distribution to guess which letters map to which.
Use cases
Cryptanalysis of classical ciphers
Run frequency analysis on a monoalphabetic substitution cipher to guess the most likely plaintext letter for each cipher character.
Checking text quality in a data pipeline
Confirm that an extracted text contains expected letters and digits, or spot unexpected characters like control codes or zero-width spaces.
Language detection from character distribution
German, French, Spanish and English each have distinct letter frequencies. A quick frequency chart helps guess the language of an unknown text.
Common mistakes
Mistake:Using case-sensitive mode for cryptanalysis.
Fix:Frequency analysis for classical ciphers must be case-insensitive. In English, 'E' and 'e' are the same character for frequency purposes. The tool defaults to case-insensitive.
Mistake:Treating whitespace as ignorable.
Fix:Whitespace is a character. In many ciphers and encoded messages, spaces are preserved and their frequency (roughly one per word) is a useful signal.
Mistake:Expecting frequency analysis to solve polyalphabetic ciphers.
Fix:Frequency analysis breaks monoalphabetic substitution (Caesar, simple substitution) but not Vigenère or modern ciphers, which use multiple alphabets. For Vigenère, determine the key length first.
Frequently asked questions
Is the frequency analysis case-sensitive?
No. The a–z bar chart and the top characters list are case-insensitive — 'A' and 'a' are counted together. This matches the standard approach in cryptanalysis.
Does it count characters inside code blocks?
Yes. The tool counts every character in the input text, including letters inside code blocks. To analyse only specific parts, paste only the text you want to analyse.
Can I use this for languages other than English?
The a–z bar chart is English-specific. For other languages, use the top characters list and the total counts — these work for any Unicode text.
Is my text uploaded anywhere?
No. All counting and analysis run entirely in your browser; the input is never transmitted or stored.
Related guides
Caesar Ciphers, ROT13, and Why Neither Is Encryption
What a shift cipher is, why ROT13 is self-inverse and useful for light obfuscation, and how frequency analysis breaks even large keys efficiently.
Letter Frequency Analysis: How Frequency Stats Crack Substitution Ciphers
What the letter distribution in English looks like, how to use it to break a Caesar cipher, and what word and line stats reveal that individual letters miss.
References & standards
Related tools
Anagram Solver & Palindrome
Normalize text for palindrome checks and privacy-preserving anagram analysis.
Binary Text Translator
Convert text to binary or hex bytes and decode it back
Case Converter & Text Formatter
Convert text between 14 different case formats including camelCase, snake_case, kebab-case with batch processing and advanced options
Find and Replace Text
Find and replace text with optional regex, case, and multiline matching
HTML to Markdown Converter
Paste HTML and get clean Markdown. Configurable heading style, bullet marker, and code block style — all processed locally in your browser.
Keyword Extractor
TF-IDF keyword extraction from any document — ranked terms with scores