What makes a password strong?
A strong password is one that an attacker cannot guess, and that no one else uses. Three things decide that: it is long, it is random, and it is unique to one account.
Length matters most. Every extra character multiplies the number of possible passwords, so a 16-character password is not twice as strong as an 8-character one; it is astronomically stronger. Randomness matters because people are predictable. Names, dates, keyboard patterns like “qwerty” and tricks like “P@ssw0rd” are the first things attackers try. A generator has no habits to exploit.
Uniqueness matters because of data breaches. If you reuse one password and any one site leaks it, attackers will try it on your email, bank and social accounts. One password per account keeps a single leak from becoming many.
How long should a password be?
The table below shows how the number of possible passwords grows with length and with the characters you allow. “Bits” measures the size of that search space, and each extra bit doubles it. Crack times assume a very fast offline attack of 100 billion guesses per second against a weak, unsalted hash. Well-built websites use slow hashing and rate limits, so real-world attacks are much slower, but the comparison shows why length wins.
| Password type | Length | Strength | Time to crack |
|---|---|---|---|
| Lowercase letters only | 8 | 38 bits | about 1 second |
| Lowercase letters only | 12 | 56 bits | about 6 days |
| Letters and numbers | 8 | 48 bits | about 18 minutes |
| Letters and numbers | 12 | 72 bits | about 500 years |
| Letters, numbers, symbols | 8 | 52 bits | about 8 hours |
| Letters, numbers, symbols | 12 | 79 bits | about 75,000 years |
| Letters, numbers, symbols | 16 | 105 bits | longer than the age of the universe |
| Letters, numbers, symbols | 20 | 131 bits | longer than the age of the universe |
For important accounts such as email, banking and your password manager, use at least 16 random characters. For everything else, 12 is a sensible minimum.
Password, passphrase or PIN: which should you use?
- Random password – the best choice for accounts where a password manager fills it in for you. Long and random, with nothing to remember.
- Passphrase – several random words joined together, such as “Brim-Coal-Dune”. Easier to type and remember, which makes it a good fit for the master password of a password manager or a device you unlock often. Use nine or more words from this generator for a strong result.
- PIN – only suitable where the system limits wrong guesses, such as a phone or a bank card. A PIN is short, so never use one to protect an online account.
How this password generator works
Every password is built in your browser using the Web Crypto API (crypto.getRandomValues), the same source of secure randomness that browsers use for encryption. We avoid the common mistake of using a basic random function, which is not designed to be unpredictable. Characters are chosen with rejection sampling, so every character is equally likely and the results are not biased.
When you select several character types, the generator makes sure the password contains at least one of each. It does this by discarding any password that does not, rather than forcing characters into fixed positions, so the result stays random.
Nothing you generate leaves your device. We do not receive, log or store passwords, and the page works the same with your connection switched off once it has loaded.
Password mistakes to avoid
- Reusing the same password on more than one site.
- Using personal details such as names, birthdays, phone numbers or pet names.
- Making small changes to an old password, such as adding a number at the end.
- Using common words, keyboard patterns or well-known substitutions like “@” for “a”.
- Saving passwords in a notes app, a spreadsheet or a browser without a master password.
- Sending a password in an email or chat message.
How to keep your passwords safe
You cannot remember dozens of long random passwords, and you should not try. Use a reputable password manager to store them, and protect it with one strong passphrase. Turn on two-factor authentication or passkeys wherever they are offered, so a stolen password alone is not enough to get in. If a service tells you it has been breached, change that password straight away and anywhere else you may have used it.