PASSWORD ENTROPY

Password entropy is the standard way to say how hard a password is to guess, measured in bits. Use the calculator to try any character set or wordlist and any length, then read on for what the number means, where it comes from, and when it does not apply.

Zero retention: your passwords never leave this browser. Verify it yourself in DevTools.
Password entropy explained

Password Entropy Calculator: How Many Bits Is Your Setup?

-- bits of entropy

Turn on JavaScript to calculate.

AttackGuess rateTime to try every possibility

How Can You Verify That Your Passwords Never Leave This Browser?

You do not have to take our word for it. Browser developer tools list every request a page makes, so you can watch 2pass work and confirm that your passwords are never sent anywhere. The check takes about a minute.

  1. Open your browser developer tools with F12, or Cmd+Option+I on a Mac, and select the Network tab.
  2. Reload the page and let it finish. You will see the page's own files, its web fonts, the word lists it uses, and one anonymous page-view request. Nothing has been typed or generated yet, so none of them can contain a password.
  3. Click the clear icon in the Network tab so that the log is empty.
  4. Change the calculator settings.
  5. Look at the Network tab again. It is still empty. Generating, typing, checking, and copying happen in code that is already on the page, so there is nothing to send.

For extra proof, turn on offline mode after the page loads: the generators, the strength checker, and the calculator keep working, because they never needed the network. Only the breach check needs a connection, and only after you ask it to.

The production site also sends a Content-Security-Policy header that tells your browser to refuse connections to anywhere except this site, the anonymous analytics endpoint, and the Have I Been Pwned range API, so even a bug could not send a password somewhere else.

What Is Password Entropy?

Password entropy is the base-2 logarithm of the number of equally likely passwords a method could have produced. A password chosen uniformly from 1,024 possibilities has 10 bits of entropy, because 2 to the 10th power is 1,024. Every extra bit doubles the number of possibilities, and with it the work an attacker must do to try them all.

Entropy describes the method, not the string. The same 12 characters can be very strong when a cryptographic generator picked them and very weak when a person did, because the person's choices are far from equally likely.

How Do You Calculate Entropy in Bits?

For a secret built from independent, uniformly random choices, entropy in bits equals the number of choices times log2 of the number of options per choice. A password of L characters from a set of N characters has L x log2(N) bits. A passphrase of W words from a list of K words has W x log2(K) bits.

SecretSet sizeBits per symbolLengthTotal bits
PIN10 digits3.32619.9
Lowercase password264.701256.4
Letters and digits625.951271.5
All printable ASCII946.551278.7
All printable ASCII946.5516104.9
EFF large wordlist7,776 words12.926 words77.5
EFF short wordlist1,296 words10.346 words62.0

How Do Bits Turn Into Guessing Time?

A secret with B bits has 2 to the power of B possibilities. An attacker trying every one at a rate of R guesses per second needs 2^B / R seconds to finish, and on average finds the answer halfway through. The calculator shows four rates that 2pass uses everywhere, as order-of-magnitude assumptions:

  • 100 guesses an hour: an online login with rate limiting, as NIST requires.
  • 10 guesses a second: an online login with no rate limiting.
  • 10 thousand guesses a second: a stolen database hashed with a slow scheme such as bcrypt or Argon2.
  • 10 billion guesses a second: a stolen database hashed with a fast hash such as MD5 or SHA-1.

At 10 billion guesses a second, 40 bits fall in under two minutes, 60 bits take a few years, and 80 bits take millions of years.

How Many Bits of Entropy Are Enough?

2pass uses one scale on every tool: under 20 bits is very weak, 20 to 39 weak, 40 to 59 fair, 60 to 79 strong, and 80 or more very strong. A website login protected by rate limiting is safe well below 60 bits, but you cannot know how every site stores passwords, so plan for the fast-hash case.

For website accounts filled in by a password manager, aim for 80 bits or more: 13 random characters from all printable characters, or seven random words. For secrets that could be attacked offline forever, such as disk encryption or a password-manager master password, more is cheap insurance.

Why Does the Formula Fail for Human-Chosen Passwords?

The length times log2 formula assumes every character was chosen at random and independently. People do not choose that way. Password1! is 10 characters from all four sets, so the formula says about 65 bits, yet it is one of the first few thousand guesses in any attack, because attackers model exactly how people build passwords: a word, a capital first letter, a digit, a symbol at the end.

For a password someone invented, the honest question is how early it appears in an attacker's guessing order, not how large its character set is. That is what the strength checker estimates. The entropy calculator on this page is exact only for randomly generated secrets, like those from the password generator.

Does Length or Character Variety Matter More?

Length usually wins. Going from lowercase to all printable characters raises bits per character from 4.70 to 6.55, a fixed gain of about 1.85 bits per character. Adding one more character adds a full 4.7 to 6.55 bits. A 20-character lowercase password has 94 bits; a 12-character password using every character set has 78.7.

In practice use both when a site allows them, and add length when it does not. For passphrases the same logic applies: one extra word adds 12.9 bits, while capitalizing every word adds nothing, because it is a fixed rule rather than a random choice.

Why Does an Attacker Need Only Half the Guesses?

An attacker searching a space of 2^B possibilities in some order finds any particular secret, on average, after trying half of them, which is 2^(B-1) guesses. Half the work is exactly one bit less, so a 60-bit password behaves like 59 bits on average. The calculator shows the time to try every possibility, the worst case for the attacker.

Luck cuts both ways: a lucky attacker may hit the password early, an unlucky one late. Entropy cannot promise any single outcome; it describes how the odds scale. That is why the margins on the 2pass scale are generous, and why 80 bits is labelled very strong rather than merely enough.

How Do You Use the Entropy Calculator?

  1. Pick a preset, such as all printable ASCII (94) or the EFF large wordlist (7,776), or enter any custom set size.
  2. Enter the length in characters, or in words for a wordlist.
  3. Read the bits, the number of possibilities, the verdict, and the time to try every possibility at each attack rate.

The calculator only does arithmetic in your browser; there is nothing to type that is secret. To generate a secret with the entropy you picked, use the password or passphrase generator with the same settings.

What Else Is on 2pass?

  • Password generator: Random passwords from the browser's cryptographic generator, with character set toggles and exact entropy in bits.
  • Passphrase generator: Passphrases of 3 to 12 words from the EFF large wordlist, with separator options and entropy shown.
  • Password strength checker: See how fast a password could be guessed, which patterns weaken it, and whether it contains personal information.
  • Breached password check: Check a password against Have I Been Pwned with k-anonymity: only a 5-character hash prefix leaves the browser.
  • NIST password guidelines: What NIST SP 800-63B Revision 4 says about length, composition rules, expiry, blocklists, and storage.
  • Privacy and zero retention: Tool by tool, exactly what leaves your browser (almost nothing) and how to check it yourself.

Everything is on the 2pass home page. Part of the 2suite.io privacy-first ecosystem.

Frequently Asked Questions

What is password entropy in simple terms?

It is the number of equally likely possibilities a password could have been, written as a power of two. A password with 40 bits of entropy is one of about 1.1 trillion possibilities.

What is the formula for password entropy?

For randomly chosen characters or words: length x log2(set size). For example, 16 characters from 94 printable characters is 16 x 6.55 = about 104.9 bits.

How many bits of entropy should a password have?

At least 60 bits for strong and 80 bits or more for very strong on the 2pass scale. For a password-manager master password or disk encryption, aim higher.

Why is Password1! weak if it has high entropy?

Its formula entropy assumes random characters, but a person chose it with a common pattern, so attackers guess it almost immediately. The formula only applies to randomly generated secrets.

How much entropy does one diceware word add?

A word picked at random from the EFF large wordlist of 7,776 words adds log2(7776), about 12.925 bits.

Does adding a symbol make a password much stronger?

Less than adding length. Switching a random password from 62 to 94 characters adds about 0.6 bits per character; one extra character adds about 6.5 bits.

Was this helpful?