Entropy Calculator
Shannon entropy, min-entropy, and pool-based theoretical maximum for any text, with a character-frequency histogram, class breakdown, and repeated-pattern detection.
What this tool does
Computes several real entropy measures for any pasted text -- not just a single bits-per-character figure, but the empirical Shannon entropy actually observed, the more conservative min-entropy (worst-case guessing difficulty), the theoretical maximum for whatever character pool the text actually draws from, and how far short of that maximum the real text falls.
Shannon entropy vs. min-entropy
Shannon entropy is the average information
content per character, based on how often each character actually
appears -- the textbook definition, and a reasonable average-case
measure. Min-entropy is more conservative: it's
based only on the single most frequent character
(-log2(max probability)), which better reflects the
worst case an attacker actually exploits -- guessing the most
likely value first. Security guidance (including NIST SP 800-90B)
generally prefers min-entropy for anything security-relevant,
since Shannon entropy can overstate real unpredictability when a
distribution is skewed.
Theoretical maximum and redundancy
The tool detects the smallest standard character pool that
covers every character actually used (digits only, lowercase
only, alphanumeric, printable ASCII, etc.) and computes what the
entropy would be if every character in that pool were
equally likely -- log2(pool size) per character. The
gap between that theoretical maximum and the real observed
entropy is the redundancy -- ordinary English
text typically runs 60-80% redundant against its own alphabet,
while a genuinely random string of the same pool approaches 0%.
Character-class breakdown and frequency histogram
Every character is classified as lowercase, uppercase, digit, symbol, whitespace, or other/Unicode, with counts and percentages -- plus a frequency histogram of the most common individual characters, useful for spotting an unexpectedly skewed distribution at a glance.
Repeated-pattern detection
Finds the longest substring that repeats anywhere in the text -- a password or key with an obviously repeating chunk has real entropy well below what a raw length × alphabet-size calculation would suggest, since the repeated portion carries no new information the second time.
What this is for
Useful for sanity-checking whether a generated key/token actually looks random, comparing the real information density of different texts, or just understanding why a password generator computes the entropy figure it does -- this tool shows the underlying math rather than a single opaque number.
Privacy
Every calculation happens entirely in your browser. Nothing is uploaded.