How entropy turns a password into bits
Entropy is the size of the choice, measured in bits. This page draws a password or a passphrase in your browser and shows that size. It can also read a password you type and lower the estimate when the password has a pattern.
A password or passphrase is drawn as soon as the setup is valid, including when the page opens. Generate draws another one. Nothing you generate or type is saved in history, put in the page address, or sent to analytics. The page does not check leaked-password lists and it is not a password manager.
How to use this page
- Choose Password, Passphrase, or Check.
- For a password, set a length from 8 to 64, the character sets, Hide look-alike characters, and Use every selected set. For a passphrase, set 3 to 12 words, the separator, capitals, and digits at the end. For a check, type up to 128 characters.
- A password or passphrase appears on its own and changes when the setup changes. Press Generate to draw another. A check updates after a short pause, and clears at once when the field is empty.
- Read the entropy, the strength, and the four crack times. Copy a secret if you want to keep it. Leaving the page or pressing Reset clears it from the page.
Formulas
A character password uses the length and the size of the character set. A passphrase uses the word count and the size of the word list, plus any digits at the end.
L is the length. R is the character-set size. W is the number of words. N is the number of words in the list. D is 0, the base-2 log of 10, or the base-2 log of 100. G is the guesses per second. The crack time uses half the keyspace, which is the average number of guesses. Requiring every selected set does not change E. Capitals and the separator do not change E. Strength is Very weak under 28 bits, Weak from 28 up to but not including 36, Fair from 36 up to but not including 60, Strong from 60 up to but not including 80, and Very strong at 80 or more.
What is in the character set
Lowercase is 26 letters, uppercase is 26, digits are 10, and symbols are 24, including the vertical bar. All four together are 86. Hide look-alike characters removes 0, O, o, I, l, 1, and the vertical bar from the sets that contain them. The passphrase list has 512 words, so each word is worth 9.0 bits. Words are drawn independently, and a repeat is allowed.
Why a typed password can score lower
The checker starts from the classes that actually appear. A run of the same character three or more times counts as one character. A forward or backward run of three or more in a to z, 0 to 9, or a keyboard row keeps the first and last character of that run. If the whole password, ignoring case, is on the common list, the adjusted entropy is capped at 10 bits. Otherwise a listed fragment shortens the effective length by the length of the longest fragment, and the length stays at least 1. A space adds 1 to the set. Any other character adds only the distinct characters you typed. The generator headline does not apply these penalties.
Where the guidance comes from
Memorized secrets and length are discussed in NIST SP 800-63B. A plain description of guessing difficulty is on the Wikipedia page on password strength.
Worked examples
Example: the starting password setup
Length 16 with lowercase, uppercase, digits, and symbols, and look-alike characters still allowed. The set has 86 characters. Entropy is 16 times the base-2 log of 86, about 102.8 bits, which is Very strong. 80 bits needs 13 characters from that set.
Example: 8 lowercase letters
Turn off uppercase, digits, and symbols, and set the length to 8. The set has 26 characters. Entropy is about 37.6 bits, which is Fair.
Example: a passphrase
The list has 512 words, so each word is 9.0 bits. Six words and no end digits are 54.0 bits, which is Fair. Six words and two end digits are about 60.6 bits, which is Strong. Nine words and no end digits are 81.0 bits, which is Very strong. A hyphen or a capital letter does not add bits.
Example: password123 in Check
The character-set figure is about 56.9 bits, because the password uses lowercase and digits, a set of 36, and it is 11 characters long. The whole password is on the common list, so the adjusted entropy is capped at 10.0 bits and the label is Very weak. The trailing 123 is also flagged as a sequence.
Things to keep in mind
These crack times are assumptions: 10 guesses a second, 1,000 a second, 10,000 a second, and 100 billion a second. They are not a promise about a real website. A longer password from a large set beats a short password with a few symbols. Use a different password on each account, and a password manager if you cannot remember the long ones. This page draws secrets only with the browser’s cryptographic random source. If that source is missing, no secret is created.
Password entropy FAQ
What does the entropy figure mean?
For a password it is the length times the base-2 log of the character-set size. For a passphrase it is the word count times the base-2 log of the list size, plus the bits from one or two end digits. The starting password setup is about 102.8 bits.
What do the crack times assume?
Each time is 2 to the power of the headline bits minus 1, divided by a guess rate. The rates are 10, 1,000, 10,000, and 100 billion guesses a second. They describe online limited, online unlimited, a slow offline hash, and a fast offline hash. They are not a measurement of a real service.
Why is a checked password lower than the character-set bits?
Repeats, sequences, and keyboard runs shorten the effective length. A password on the common list is capped at 10 bits. A known fragment also shortens the length. The generator headline does not apply those penalties. password123 shows about 56.9 character-set bits and 10.0 adjusted bits.
Which options change the result?
Length, the four character sets, and Hide look-alike characters change the character-set size. Use every selected set changes the draw, not the entropy, and it needs a length at least as large as the number of selected sets. For a passphrase, the word count and the end digits change the bits. The separator and capitals change the text only. How many draws 1 to 5 secrets and does not change the entropy of each one.
Why is there no result?
The length is outside 8 to 64, the count is outside 1 to 5, the word count is outside 3 to 12, no character set is selected, or Use every selected set is on and the length is shorter than the number of sets. A check longer than 128 characters has no result. An empty check field has no result. If the browser cannot supply cryptographic randomness, no secret is created.
Does this page store the password?
No. A generated password, a passphrase, and a password you type are not saved in history, not put in the page address, and not sent to analytics. Copy places the text on the clipboard only when you press Copy. Reset or leaving the page clears it from the page.