Entropy Calculator
Entropy here is a search-space size in bits: log2 of (charset to the power of length), optionally reduced when the string is not uniformly random. It is maths, not a UX score. Use it to compare policies (12 random symbols versus 5 diceware words) before you write them into a standard.
Checking one password? Check the settings your organisation enforces in Active Directory, Entra and Google against NIST and the ISM: audit your password settings.
What the entropy calculator is for
Entropy expresses password strength as a number of bits, where each extra bit doubles the work an attacker must do. It turns vague arguments about complexity into arithmetic you can check.
It is also the right way to compare unlike things — a four-word passphrase against a twelve-character random string — because it reduces both to the same measure.
Common uses
- Justifying a minimum length in a written password policy
- Comparing passphrase and random-string approaches objectively
- Estimating how long a given password resists offline cracking
- Teaching why length dominates character variety
What the output means in the real world
The bit count and the attack-speed table tell you how many guesses a perfect brute-force attacker needs. They assume independent random characters. Human-chosen strings have far less entropy than the formula prints; do not quote the number for a password someone invented. Copy the table into a design review, not into a user-facing error.
How this fits into real work
A 128-bit random value is the usual floor for cryptographic keys. User passwords almost never reach that if they are memorable. That is why we hash them with a slow KDF and why managers exist.
Policy writers still argue about '8 characters with complexity'. Run both options through this calculator. An 8-character mixed charset is about 52 bits if random; a 5-word EFF phrase is about 64 bits and easier to type.
Attack-speed rows (thousands per second online versus billions offline) explain why a password that survives a website lockout still dies against a stolen hash file. Protect the hash file; do not rely on bits alone.
How to use this tool
- Enter a password, or set the character-set size and length directly.
- Read the entropy in bits alongside the estimated crack time.
- Change one variable at a time — add characters, then add a character class — to see which moves the number more.
Tips
- The formula is length × log2(charset size), and it only holds if every character was chosen at random.
- Adding symbols raises the charset from 62 to about 94, worth roughly 0.6 bits per character; adding four characters is usually worth far more.
- Real-world strength is lower than calculated whenever a human chose the password.
Privacy & how it works
Everything happens inside your browser. The values you type are held in page memory only, are never sent to a server, and disappear when you close the tab. You can confirm this in your browser's network tab: the only request a tool makes is one that names the tool for a usage count, with nothing you typed in it. The tools also work with the internet disconnected.
Frequently asked questions
- How is entropy calculated?
- Length multiplied by the base-2 logarithm of the character set size. A 12-character password using all 94 printable ASCII characters yields about 79 bits.
- How many bits is enough?
- Sixty bits resists casual offline attack; eighty or more is appropriate for anything valuable. Below forty is trivially crackable with commodity hardware.
Browse other tools
All tools run entirely in your browser — nothing you type is sent to a server, except the optional HIBP 5-character hash prefix.