How to use it
- Drag the slider or type a length. For important accounts we suggest 16 characters or more; a password manager can remember it for you.
- Tick the character types you want. If a website rejects certain symbols, edit the symbol list or turn symbols off.
- Press Generate new password until you have one you like, then use the copy button.
- Save it in a password manager and use it for one account only.
When to use it
- Setting up a new account when you want a long, random password that a password manager will remember for you.
- Replacing a password that is short, reused or known to have leaked.
- Meeting a site’s length and character rules, such as “at least 12 characters with a number and a symbol”.
- Making several candidates at once (up to 20) and picking the one that suits the site.
How this generator creates a password
Each character is chosen by asking your browser for cryptographically secure random numbers through crypto.getRandomValues. That is the same source browsers use for encryption keys. The page never uses Math.random, which is not designed to be unpredictable.
Picking a random position in a list sounds simple, but a naive “random number modulo list length” slightly favours the first characters of the list. The generator avoids that by throwing away random numbers that would cause the bias and drawing again (rejection sampling). When “use every selected type” is on, a finished password that is missing a type is discarded and replaced, so the outcome stays uniform.
The strength figure is entropy: the length multiplied by the base-2 logarithm of the number of possible characters. Each extra bit doubles the number of guesses an attacker needs on average.
Worked example. The default settings draw from lowercase, uppercase, digits and the 13 default symbols, which is 26 + 26 + 10 + 13 = 75 characters. A 16-character password has 7516 possible values, roughly 1030. In bits that is 16 × log2(75) ≈ 16 × 6.23 ≈ 99.7 bits.
A 12-character password of lowercase letters only has 2612 ≈ 9.5 × 1016 possibilities, or about 56 bits. That is billions of times fewer combinations.
Length matters more than complexity
Adding a character type grows the pool a little, but adding length multiplies the possibilities every time. NIST’s digital identity guidance for memorized secrets favours longer passwords, allows long ones, and advises against forcing composition rules or regular changes. The table shows approximate entropy for random passwords.
| Character set (pool size) | 8 chars | 12 chars | 16 chars | 20 chars |
|---|---|---|---|---|
| Lowercase only (26) | 37.6 | 56.4 | 75.2 | 94.0 |
| Lowercase + digits (36) | 41.4 | 62.0 | 82.7 | 103.4 |
| Upper + lower + digits (62) | 47.6 | 71.5 | 95.3 | 119.1 |
| All printable ASCII characters (94) | 52.4 | 78.7 | 104.9 | 131.1 |
Habits that matter as much as the password
- One password per account. Reuse is how a breach at one site becomes a break-in at another.
- Use a password manager so you never need to remember or retype these.
- Turn on two-factor authentication for email, banking and your password manager.
- Do not trust a generator you cannot inspect. This page makes no network request when you generate a password, and you can confirm that in your browser’s developer tools.
Frequently asked questions
Is this password generator safe to use?
The password is created in your browser from secure random numbers and is not sent anywhere. You can open your browser’s network panel, press generate, and see that nothing is transmitted. As with any password, store it somewhere safe and do not paste it into chats or emails.
How long should a random password be?
For accounts that matter, such as email and your password manager, we suggest at least 16 characters. Shorter random passwords are fine for low-value accounts, though the only cost of going longer is that some sites cap the length.
Should I include symbols?
Symbols enlarge the pool, but a few more characters of length do the same job. If a site rejects certain symbols, edit the symbol list or switch symbols off and add length instead.
Why would I skip look-alike characters?
Characters such as 1, l, I, 0 and O are easy to confuse when you read a password from a screen or paper and type it by hand. Removing them shrinks the pool slightly, which a longer password easily makes up for.
Do you store or log the passwords I generate?
No. The passwords never leave your device. The site only counts page visits for analytics, and that count does not include anything you generate or type.
Is a random password really better than one I make up?
Usually yes. People tend to pick words, names and dates with predictable substitutions, and attackers try those patterns first. A random string has no pattern to exploit.
Sources and further reading
- NIST SP 800-63B, Digital Identity Guidelines: Authentication (opens in a new tab) – guidance on memorized secrets, length and composition rules
- OWASP Authentication Cheat Sheet (opens in a new tab) – password strength and storage recommendations
- MDN: Crypto.getRandomValues() (opens in a new tab) – the browser API used for randomness