← All blog posts

Password Generator explained with worked examples

WhiteUI · A plain-English guide to the Password Generator

The Password Generator takes two choices from you — how long the password should be, and which character sets it may use — and turns them into a random password plus a strength figure in bits. The strength figure is the part worth understanding, because it tells you how hard the password is to guess. Three examples, at 8, 16 and 20 characters, show how length and pool size work together.

At a glance

Default password: 104 of 128 bits104 bits at 16 characters24 bits short of 12889 symbols × 16 characters ≈ 104 bits
A 16-character password from the 89-symbol pool has about 104 bits of entropy, which is 81 percent of the way to 128 bits.

Example 1: the default, 16 characters from 89 symbols

With all four sets ticked, the pool is 26 uppercase letters plus 26 lowercase letters plus 10 digits plus 27 symbols, which is 89 characters. Each character carries about 6.48 bits of entropy, because 2 to the power of 6.48 is about 89. A 16-character password therefore has 16 × 6.48, which is about 104 bits. The number of possible passwords is 89 to the power of 16, which is 15,496,731,425,178,936,435,099,327,730,561 — about 1.5 followed by 31 zeroes. An illustrative example of that shape is “Tq4!wZ8#eR1@pL6s”: 16 characters, mixed case, digits and symbols. It is only an illustration of the shape, so generate your own rather than using it.

Example 2: a short password, 8 characters from 89 symbols

At 8 characters the maths is the same but the answer is much smaller: 8 × 6.48 is about 52 bits, and 89 to the power of 8 is 3,936,588,805,702,081, about 3.9 quadrillion. That sounds huge, but a computer trying a billion guesses a second would run through it in about 46 days. An 8-character password is exactly half the strength of a 16-character one, because halving the length halves the bits. The tool allows 8 characters because some old websites still limit length, not because 8 is a good choice.

Example 3: a long password, 20 characters from 89 symbols

At 20 characters the entropy is 20 × 6.48, which is about 130 bits, and the number of possible passwords is 89 to the power of 20, about 9.7 followed by 38 zeroes. A computer trying a billion guesses a second would need about 3 followed by 22 years to try them all. Four extra characters beyond the default buy 26 more bits, which is why length is the cheapest strength there is: it costs nothing and adds up fast.

Why the pool matters too

Length is the bigger lever, but the pool matters as well. A 16-character password from letters only, a pool of 52, has about 91 bits. Add digits, a pool of 62, and it rises to about 95 bits. Add the 27 symbols, a pool of 89, and it reaches about 104 bits. Each set you untick hands the attacker a smaller haystack, so keep all four ticked whenever the website allows symbols.

The common mistake

People judge a password by how complicated it looks, and a short password full of symbols can look stronger than a long plain one. It is not: a 16-character password of mixed letters has about 91 bits, while an 8-character password with symbols has only about 52 bits. Length beats cleverness every time, so check the bits figure on the tool rather than trusting how the password looks.

Frequently asked questions

How strong is a 16-character password from the Password Generator?

About 104 bits. The pool is 89 characters and each character carries about 6.48 bits, so 16 × 6.48 is about 104 bits.

How strong is an 8-character password from the same pool?

About 52 bits. 89 to the power of 8 is about 3.9 quadrillion, which a computer trying a billion guesses a second could run through in about 46 days.

How strong is a 20-character password from the same pool?

About 130 bits. 89 to the power of 20 is about 9.7 followed by 38 zeroes, far beyond any guessing attack.

Does adding symbols really help?

Yes. A 16-character password from letters only has about 91 bits, from letters and digits about 95 bits, and from all four sets about 104 bits.

More guides on the Password Generator

Try it yourself

Try the Password Generator — free, in your browser.

Open the Password Generator