A good password is long, random and used for only one account. People are bad at being random: we pick names, dates and keyboard patterns, and attackers try those first. This generator lets the computer do the random part. You choose the length and the kinds of characters, and it gives you a password along with an honest measure of how hard it is to guess.
What makes a password strong
The U.S. Cybersecurity and Infrastructure Security Agency sums it up in three rules: make every password long, random and unique, and keep them in a password manager. CISA suggests at least 16 characters, or a passphrase of four to seven unrelated words.
The NIST digital identity guidelines, SP 800-63B, set the rules websites should follow. Sites should require at least 15 characters when a password is the only factor, and at least 8 when it is combined with another factor such as a code on your phone. They should accept at least 64 characters, allow paste and password managers, and check new passwords against lists of breached and common ones. NIST also tells sites not to force a mix of character types or periodic changes. Those rules made people write predictable passwords like Summer2026! and change them to Summer2027!.
So why does this generator include uppercase, lowercase, numbers and symbols at all? Because many sites still demand them, and because a random mix packs more possibilities into each character. What matters most is that the password is random and long.
How the generator stays random
Every character comes from crypto.getRandomValues, the cryptographically secure random source built into modern browsers. The page never uses Math.random, which is fine for games but not designed to be unpredictable.
There is a subtle trap in turning random numbers into characters. A 32-bit random number has 4,294,967,296 possible values. If you divide by 86 characters and keep the remainder, a few characters come up slightly more often than others, because 4,294,967,296 does not split evenly by 86. The generator avoids this with rejection sampling: it throws away any number at or above the largest multiple of the set size and draws again. Every character is then exactly as likely as every other.
When you select several character types, the password must include at least one of each. Instead of swapping a character in, which would make some patterns more likely, the generator draws a new password until one meets the rule.
Reading the entropy and strength
Entropy is shown in bits and rounded down. Here is what the page shows for passwords with all four character types:
| Length | Entropy | Strength label |
|---|---|---|
| 8 characters | 50 bits | Fair |
| 12 characters | 76 bits | Strong |
| 16 characters | 102 bits | Very strong |
| 20 characters | 128 bits | Very strong |
The labels follow simple bands: under 50 bits is weak, 50 to 69 fair, 70 to 99 strong, and 100 or more very strong. A weak password can still be fine for a throwaway forum login, and a fair one is acceptable for an account that also asks for a code from your phone. For email, banking and your password manager, aim for strong or very strong.
The math is honest about the rules you pick. Requiring one of each character type removes some combinations, so the page counts only the passwords that meet the rule. Excluding look-alikes shrinks the pool from 86 to 81 characters, which turns 102 bits into 101.
Passphrases
Switch to Passphrase to get random words joined by a separator, such as hyphens or spaces. The English list has 1,467 short, common words, and each word is picked at random, so each adds about 10.5 bits:
- 5 words: 52 bits, fair.
- 6 words: 63 bits, fair.
- 7 words: 73 bits, strong.
- 8 words: 84 bits, strong.
Capitalizing each word does not add entropy, because it is always done the same way. Adding a number puts one random digit at the end of one random word, which adds a few bits: six words with a number give 69 bits. Words you choose yourself, or a famous quote, are much weaker than random words, because attackers try phrases people like.
Using your new password
Copy the password and store it in a password manager before you leave the page. Use a different password for every account, so a breach at one site does not open the others. Turn on two-step verification wherever it is offered. And never share a password or a one-time code with someone who contacts you out of the blue, even if they claim to be your bank or a tech support agent.