Password Entropy Calculator

See the bits, the formula behind them and what they mean against three kinds of attacker.
Client-side · verifiable
How this tool works

Entropy measures how many equally likely possibilities an attacker must consider. For a password chosen uniformly at random from an alphabet of N characters with length L, entropy is:

H = L × log₂(N) bits, and the number of possibilities is N^L = 2^H.

The calculator lets you either describe a shape (pool and length) or paste a password to infer its pool from the character types present. Either way it shows the formula with your numbers filled in, the total count of possibilities, and the time an attacker would need to search half of them at three speeds.

Two things the formula does not know:

  • It assumes every character was chosen at random. A human-chosen password with the same shape has far less real entropy; the strength checker estimates that.
  • Adding symbols raises N from 62 to 94, worth 0.6 bits per character. Adding one more character is worth 6.5 bits. Length wins.
Security note

What leaves your browser

All arithmetic happens in your browser. Nothing is transmitted or stored.

FAQ
How many bits of entropy is enough?

Around 40 bits resists online guessing. 60 to 70 bits resists offline attacks against slow hashes. 80+ bits resists offline attacks against fast hashes for the foreseeable future. 128 bits is cryptographic-key territory and more than any password needs.

Why is "measure a password" different from the strength checker?

This page computes the maximum entropy for the password's shape. The strength checker looks for patterns that make the real entropy lower. Both numbers are useful; the strength checker's is the honest one.

Does a longer alphabet or a longer password help more?

Longer password. Each character multiplies possibilities by the alphabet size; each alphabet expansion only multiplies by the ratio of the new size to the old.