Password Generator
Generate random passwords that are hard to guess. Set the length and character types, then copy.
How to use it
- Drag the slider to set the length. Use at least 15 characters for important accounts.
- Tick the character types you want. Turn off symbols if the site won't accept them.
- Press the copy button next to a password, then save it in your password manager.
How the passwords are made
Every character is picked with crypto.getRandomValues, the cryptographic random number generator built into your browser. To keep every character equally likely, a 32-bit random value that falls outside the largest multiple of the character count is thrown away and drawn again. Each character type you tick is guaranteed to appear at least once, and then the whole sequence is shuffled.
The character pool is 26 uppercase letters, 26 lowercase letters, 10 digits and 25 symbols !@#$%^&*()-_=+[]{};:,.?/~, 87 characters in all. Avoid similar characters removes I, O, l, o, 1 and 0, which leaves 81.
Measuring strength
Strength is measured in bits of entropy: E = L × log₂(N), where L is the length and N the number of possible characters. The default, 16 characters from a pool of 87, gives 16 × 6.44 = 103 bits. Each extra bit doubles the number of guesses an attacker has to try.
| Characters used | N | 8 | 12 | 16 | 20 characters |
|---|---|---|---|---|---|
| Digits only | 10 | 27 | 40 | 53 | 66 |
| Lowercase | 26 | 38 | 56 | 75 | 94 |
| Upper + lowercase | 52 | 46 | 68 | 91 | 114 |
| Letters + digits | 62 | 48 | 71 | 95 | 119 |
| All, with symbols | 87 | 52 | 77 | 103 | 129 |
The label under the meter reads Weak below 40 bits, Fair from 40 to 59, Strong from 60 to 79 and Very strong from 80 bits up. To put that in perspective, an attacker who can test 10 billion guesses per second needs on average 2E−1 ÷ 1010 seconds. For 8 mixed characters (52 bits) that is about 1.8 days; for 12 characters (77 bits) it is about 295,000 years.
The formula only holds for truly random passwords. Chicago2024! is also 12 characters long, but it is far weaker, because cracking tools try common words, place names and years first.
How long should it be?
The US guideline NIST SP 800-63B-4 (July 2025) requires at least 15 characters when a password is the only thing protecting an account, and at least 8 when it is combined with a second factor such as a code from an app. Sites should also accept passwords of at least 64 characters, the upper limit of this tool.
Common mistakes
- One password for several accounts. When one site is breached, the others are exposed too. Make a new password for every account.
- Turning symbols off without adding length. Without symbols each character is worth 5.95 bits instead of 6.44. Add 2 characters to make up for it: 18 letters and digits give 107 bits.
- Keeping passwords in notes or screenshots. Store them in a password manager. The passwords shown on this page are gone as soon as you close it or generate new ones.