How to use
- Set the length (16 by default) and pick the character sets: uppercase, lowercase, digits and symbols. Every set you pick is guaranteed to appear at least once.
- If you’ll ever need to type the password by hand, turn on Exclude look-alikes (I l 1 O 0 o). If a site won’t accept certain symbols, list them under Also exclude.
- Choose how many you want (1 to 20) and the passwords appear right away. Press Regenerate for a fresh batch, and Copy next to the one you want to use.
Entropy and strength
Entropy is a measure, in bits, of how hard a random password is to guess. It is calculated as length × log₂(pool size). Each extra bit doubles the number of possible passwords.
| Character sets | Pool | 12 chars | 16 chars | 20 chars |
|---|---|---|---|---|
| Digits only | 10 | 39.9 bits | 53.2 bits | 66.4 bits |
| Lowercase only | 26 | 56.4 bits | 75.2 bits | 94.0 bits |
| Upper + lower + digits | 62 | 71.5 bits | 95.3 bits | 119.1 bits |
| All, with 28 symbols | 90 | 77.9 bits | 103.9 bits | 129.8 bits |
The strength label uses this tool’s own scale: under 40 bits is very weak, under 60 weak, under 80 fair, under 100 strong, and 100 or more very strong. These numbers only apply to randomly generated passwords, not ones a person made up.
Why length beats complexity
Adding symbols to a 16-character password (pool 62 to 90) raises entropy from 95.3 to 103.9 bits, a gain of 8.6 bits. Sticking with letters and digits and adding just two more characters does better (18 characters = 107.2 bits). Rules that force symbols mostly push people toward patterns like Password1!. That is why NIST’s Digital Identity Guidelines (SP 800-63B) favor enough length and checking against lists of breached passwords over character-mix rules.
Passphrases and password managers
- Passphrases: for the few passwords you have to memorize, such as your computer login or your password manager’s master password, string together several randomly chosen words. Picking from the 7,776-word Diceware list gives about 12.9 bits per word, so six words is roughly 77.5 bits. A sentence you make up yourself isn’t random and is much weaker.
- Password managers: the most important thing is a different password for every site, because passwords leaked from one site are routinely tried on others. Nobody can remember dozens of them, so let a password manager store them, and turn on two-factor authentication for important accounts.
- Need random identifiers instead? Try the UUID generator. To hash a string, use the hash generator.
FAQ
How long should my password be?
If you store it in a password manager, 16 or more characters with every set turned on (about 104 bits) is plenty. If you have to remember it, use a passphrase of six or more words.
How is this different from a password made with Math.random()?
Math.random() isn’t built for security, and its output can be predictable. This tool uses the browser’s cryptographic random number generator (crypto.getRandomValues). It also throws away out-of-range values and draws again instead of using a plain remainder, so no character comes up more often than the others (no modulo bias).
Are the passwords stored or sent anywhere?
No. They are generated in your browser on this device, never sent to a server, and gone when you close the page.