EN

Entropy Calculator

Calculate Shannon entropy and password strength estimates from any text input.

Results update automatically as you type.

Enter text above to see entropy calculations, strength estimates, and character frequency analysis.
Opens your print window: choose "Save as PDF". The file is named "Entropy Calculator - MondayTool".
About this tool

Last updated:

Measure the entropy of any text

This Shannon entropy calculator measures how evenly the characters in a piece of text are spread out. It shows entropy in bits per character, total bits, the number of unique characters, the length, a strength label, a rough crack-time estimate, which character types are present, and a chart of the 10 most frequent characters.

How to use it

  1. Type or paste text, a password or a token into the input box.
  2. Results update automatically as you type.
  3. Read the stats, the strength badge and the frequency chart.

Shannon entropy formula

H = −Σ p × log₂(p), where p is how often each character appears divided by the text length. Total entropy = H × length.

Example: password has 8 characters. “s” appears twice (p = 0.25) and six letters appear once (p = 0.125). H = 6 × 0.125 × 3 + 0.25 × 2 = 2.75 bits per character, so total entropy = 2.75 × 8 = 22 bits, which the tool labels Very Weak.

Strength labels and crack time

Total bitsLabel
Below 28Very Weak
28 to under 36Weak
36 to under 60Fair
60 to under 128Strong
128 or moreVery Strong

The crack time assumes 10¹² guesses per second and that an attacker searches half of 2^bits possibilities on average.

Know the limits

Shannon entropy here is calculated only from the characters inside your text. It does not know how the text was created, so a common word or a keyboard pattern can still score well. aaaa scores 0 bits because it uses only one character. Treat the strength label as a rough guide, not a security guarantee.

Frequently asked questions

What is a good entropy per character?

The maximum is log₂ of the number of different characters used. Random text that uses 64 different characters evenly approaches 6 bits per character.

Is my password sent anywhere?

No. All calculations run in your browser.

More to explore

Related Security

Browse all tools from the same category.

Showing 1-2 of 7