How to use the Password Generator
- Choose a Length (12 to 64 characters) and How many passwords to generate (1, 5 or 20).
- Pick the character sets: a–z, A–Z, 0–9 and Symbols. At least one must be on.
- Turn on No look-alikes to leave out characters that are easy to misread.
- Click Generate for a fresh set, then Copy or Download them.
The status bar shows the strength of each password in the set, for example:
5 passwords · 20 chars from 87 symbols · ≈128 bits of entropy (very strong)
How strength is rated
Entropy measures how many guesses an attacker needs: each extra bit doubles the work. The rating uses these thresholds:
| Entropy | Rating |
|---|---|
| 128 bits or more | very strong |
| 80–127 bits | strong |
| 60–79 bits | fair |
| under 60 bits | weak (with a warning) |
The pool size depends on the sets you choose:
| Sets | Pool | Bits per character |
|---|---|---|
| 0–9 | 10 | 3.3 |
| a–z | 26 | 4.7 |
| a–z, A–Z, 0–9 | 62 | 6.0 |
| All four sets | 87 | 6.4 |
| All four + No look-alikes | 81 | 6.3 |
A 12-digit PIN-style password has only about 39 bits, so length matters more than symbols. Twenty characters from all sets gives about 128 bits.
How the passwords are built
- One character is picked from each selected set, so every password contains at least one of each.
- The remaining characters are picked from all selected sets combined.
- The characters are shuffled with a Fisher–Yates shuffle, so the guaranteed characters can appear anywhere.
Every random choice uses rejection sampling: random values that would make some characters more likely than others are discarded and redrawn. This avoids the modulo bias that simple random % n code introduces.
The symbol set is !@#$%^&*()-_=+[]{};:,.?/~. If a website rejects some symbols, turn Symbols off and add a few characters of length to make up for it.
Recommendations
- Use a password manager and give every account its own password.
- Prefer 16 characters or more. 20 is a good default for accounts you never type.
- Don’t reuse a generated password for API keys or secrets meant for machines. Use a random token, such as a v4 UUID from the UUID Generator or 32 random bytes encoded with Base64.
- Websites should store passwords with a slow hash such as Argon2 or bcrypt, never plain SHA-256. The Hash Generator is for checksums, not password storage.
In code
const bytes = crypto.getRandomValues(new Uint8Array(24));
const token = btoa(String.fromCharCode(...bytes)); // 32-character random token
openssl rand -base64 24
Frequently asked questions
Are these passwords really random?
Yes. Every character comes from crypto.getRandomValues, the browser's cryptographically secure random number generator, with rejection sampling so each character in the pool is equally likely. Math.random is never used.
Are generated passwords stored or sent anywhere?
No. They are created in your browser, shown once and never stored or uploaded. Click Generate for a new set; nothing is remembered between clicks.
How is the entropy calculated?
Entropy is length times log2 of the pool size. A 20-character password drawn from 87 possible characters has 20 × log2(87), about 128 bits. Under 60 bits, the tool shows a warning.
What does No look-alikes remove?
Characters that are easy to confuse when reading or typing: I, l, 1, O, 0 and o. The pool shrinks from 87 to 81 characters, which costs very little entropy. Use it for passwords you'll read aloud or type from paper.
Does it generate passphrases?
No, it generates random-character passwords only. For a memorable master password, a password manager's passphrase generator or diceware is a better fit.
Last updated