Guides › Text & developer
Longer or more complex? What actually makes a random password strong
Password rules have taught people that "P@ssw0rd!" is stronger than "correct horse battery staple" (a phrase popularised by the webcomic xkcd). For passwords people invent themselves, both are weak, because attackers guess common patterns first. For randomly generated passwords, though, strength can be calculated exactly, and the calculation gives a clear answer to the question of length versus complexity. We did the arithmetic for the settings our password generator offers.
Short answer: each extra character adds strength; each extra character type adds much less. A 16-character password of only lowercase letters and digits (83 bits) is stronger than a 12-character password using every symbol on the keyboard (79 bits). For accounts that matter, use a random password of at least 16 characters from a password manager, and turn on two-factor authentication.
How strength is measured
For a password chosen uniformly at random, strength is measured in bits of entropy: the number of yes/no questions an attacker would need to pin it down. It equals the length multiplied by log2 of the number of possible characters. Each extra bit doubles the number of possible passwords, so 80 bits is not "a bit more" than 70; it is about a thousand times more.
| Character set | Size | Bits per character | 8 chars | 12 chars | 16 chars | 20 chars |
|---|---|---|---|---|---|---|
| Digits only (PIN) | 10 | 3.32 | 27 | 40 | 53 | 66 |
| Lowercase letters | 26 | 4.70 | 38 | 56 | 75 | 94 |
| Lowercase + digits | 36 | 5.17 | 41 | 62 | 83 | 103 |
| Upper + lower + digits | 62 | 5.95 | 48 | 71 | 95 | 119 |
| Upper + lower + digits + the 23 symbols our generator offers | 85 | 6.41 | 51 | 77 | 103 | 128 |
| All printable ASCII (for comparison; more symbols than our generator uses) | 94 | 6.55 | 52 | 79 | 105 | 131 |
Read across a row and the number climbs quickly; read down a column and it climbs slowly. Going from 62 to 94 characters adds only 0.6 bits per character. Adding four characters to a 12-character password adds about 19 to 26 bits for any set that includes letters.
What the bits mean in time
How fast an attacker can guess depends on the situation. Online, a website can slow or block repeated attempts, so even modest passwords survive. The real danger is an offline attack after a database leak, where guesses are limited only by hardware and by how the site stored the password. To make the numbers concrete, we assumed an attacker who can test 10 billion guesses per second, which is realistic for a stolen database protected by a fast, outdated hash, and calculated how long it takes on average to find a random password (half of all possibilities).
| Entropy | Example | Average time to crack at 1010 guesses/s |
|---|---|---|
| 38 bits | 8 lowercase letters | about 10 seconds |
| 52 bits | 8 characters, any symbol | about 3.5 days |
| 62 bits | 12 lowercase + digits | about 7.5 years |
| 71 bits | 12 mixed-case + digits | about 5,100 years |
| 83 bits | 16 lowercase + digits | about 13 million years |
| 95+ bits | 16 mixed-case + digits | far longer than the age of the universe |
Sites that store passwords properly, with slow hashing functions such as Argon2, scrypt or bcrypt as OWASP recommends, cut the guessing rate by many orders of magnitude, but you cannot know how a site stores yours. A long random password protects you either way.
Why the rules on websites are changing
The US standards body NIST now tells organisations not to force mixtures of character types and not to require periodic changes without evidence of compromise. Its current guidelines set minimum lengths instead, require sites to accept long passwords (at least 64 characters), and ask them to block passwords found in breach lists. The reasoning matches the table: forced complexity mostly produces predictable substitutions like "@" for "a" and "1" at the end, while length genuinely adds strength.
Passphrases
A passphrase made of random words is easier to type and remember. The EFF's dice wordlist has 7,776 words, so each word adds 12.9 bits: four words give 51.7 bits, five give 64.6 and six give 77.5. That means a six-word passphrase is about as strong as a 12-character password from the full keyboard, and much easier to type on a phone. The words must be chosen randomly, with dice or a generator; a phrase you think of yourself, such as a song lyric, is far weaker than its length suggests.
Practical settings
| Use | Recommended setting |
|---|---|
| Accounts stored in a password manager | 20 characters, all character types (about 128 bits with our generator); you never type it |
| A password you must type on a TV or game console | 16 characters, lowercase + digits (83 bits); avoids awkward symbols |
| The master password of your password manager | A random passphrase of 6 words or more |
| Wi-Fi network password | 16+ characters without look-alike characters (0/O, 1/l), so guests can type it |
| Site rejects symbols or limits length | Use the maximum length it allows with the characters it accepts |
What strength cannot fix
- Reuse. A perfect password used on two sites is only as safe as the weaker site. Use a different one everywhere.
- Phishing. If you type your password into a fake login page, its length does not matter. Two-factor authentication, ideally a passkey or security key, is what protects you here.
- Leaks. Check whether an address or password has appeared in a breach with a service such as Have I Been Pwned, and change any password that has.
Our generator creates passwords in your browser with the cryptographic random generator and does not send or store them. Copy the result straight into your password manager.
Common questions
Do the entropy numbers apply to passwords I made up?
No. They apply only to passwords chosen randomly by a generator. Human-chosen passwords follow patterns that attackers try first, so their real strength is much lower than their length and character mix suggest.
Should I add a symbol if a site requires one?
Yes, meet the rule, but get your strength from length. A generated password that already includes symbols satisfies most rules automatically.
Is it safe to generate passwords in a web page?
It is if the page generates them locally with the browser's cryptographic generator and does not transmit them, as ours does. Avoid any generator that sends the password to a server or shows ads inside the result.
References
- NIST SP 800-63B-4: Digital Identity Guidelines, Authentication and Authenticator Management
- EFF Dice-Generated Passphrases and long wordlist (7,776 words)
- OWASP Password Storage Cheat Sheet
- Have I Been Pwned: Pwned Passwords
Written and checked by Ria Kim for GlowHalo; figures without a source link come from the steps shown on this page. Companion tool: Password Generator. Spotted an error? Write to help@glowhalo.org.