How to generate a strong random password
- Leave Password selected as the Generator type, or switch to Passphrase if you want words instead of characters.
- Set the Password length with the number field or the slider (4 to 256). The 12 characters, 24 characters and 32 characters presets set both at once.
- Tick the character sets you want. Lowercase, uppercase and digits are on by default and symbols are off. Turning on Symbols (!@#$...) adds 25 characters:
!@#$%^&*()-_=+[]{};:,.<>?. - If a target system rejects some characters, type them into Exclude characters. If people will read the password off a screen, tick Avoid ambiguous characters (I, l, 1, O, 0).
- Press Generate. The password is hidden at first. Click Show to read it, then Copy password.
With symbols enabled, every generated password contains at least one symbol. You don't need to regenerate until one turns up.
Entropy for common settings
The tool estimates entropy as length × log2(number of available characters). The estimate runs slightly high, because each selected set is guaranteed one character. It treats results under 28 bits as Weak, 28–35 as Fair, 36–59 as Strong and 60 or more as Very strong.
| Settings | Characters available | Entropy (bits) | Strength |
|---|---|---|---|
| 16 chars, a-z A-Z 0-9 (default) | 62 | 95 | Very strong |
| 16 chars, default + avoid ambiguous | 57 | 93 | Very strong |
| 12 chars, all four sets | 87 | 77 | Very strong |
20 chars, all four sets, exclude {}[]<> |
81 | 127 | Very strong |
| 8 chars, a-z A-Z 0-9 | 62 | 48 | Strong |
| 6 chars, digits only | 10 | 20 | Weak |
These labels don't account for offline cracking after a site's password database leaks, where attackers can try billions of guesses per second. Treat 8 characters as the bare minimum, not a target. For anything important, use 16 or more.
Avoiding ambiguous characters costs only about 2 bits on a 16-character password. That's a fair trade for a password someone has to type by hand.
In Passphrase mode, each word comes from a 64-word list and adds 6 bits. The Number of words slider goes from 3 to 10, so the maximum is 60 bits:
3 words → 18 bits (Weak)
4 words → 24 bits (Weak) e.g. amber-beacon-cherry-eagle
6 words → 36 bits (Strong) default
8 words → 48 bits (Strong)
10 words → 60 bits (Very strong)
Because the list is short, use 10 words for any passphrase you rely on. A password manager's master password should have more than 60 bits. For that, use a diceware-style generator with a 7,776-word list, where 6 words give about 77 bits.
Picking settings for a specific site or system
- Accounts stored in a password manager: use 20–32 characters with all four sets. You never type them, so length costs you nothing. 20 characters from 87 gives about 129 bits.
- Sites that reject some symbols: keep symbols on and put the rejected characters in Exclude characters, for example
<>;for a form that strips markup-like input. That keeps more of the pool than turning symbols off entirely. - Wi-Fi keys and passwords read aloud: turn on the ambiguous-character option and consider leaving symbols off. A 20-character password from 57 characters still gives about 117 bits.
- Numeric PINs: tick only Digits (0-9). A 6-digit PIN is 20 bits, which only works when the system limits how many attempts you get.
- Database or API credentials: a long alphanumeric password avoids quoting problems in connection strings and
.envfiles. If you need a unique identifier rather than a secret, the UUID Generator is the better fit.
Limits and error messages
- If you clear every character set, generation stops with "Select at least one character set."
- If your exclusions remove every character from a ticked set (for example, excluding
0123456789while digits are on), you get "The exclusions remove every character from a selected set." Untick that set instead. - The length must be at least the number of selected sets, otherwise you see "The password must be at least as long as the number of selected sets."
- Excluding characters that aren't in any selected set has no effect. The bit count only reflects the characters that remain.
- The entropy figure assumes the password is random. It no longer applies once you edit the password by hand.
- If you tick Clear the clipboard after 30 seconds if it still contains this value., the page clears the clipboard only when it can read it and the value hasn't changed. If the browser blocks clipboard reading, nothing is cleared. Your operating system's clipboard history may keep its own copy either way.
Randomness comes from the browser's crypto.getRandomValues().