About This Tool
Create random passwords from 4 to 128 characters using your browser's cryptographically secure random number generator, with options for character sets, ambiguous characters, and bulk generation.
Generate strong, random passwords in your browser
Most account breaches that involve passwords come down to reuse or predictability: the same password on several sites, or something easy to guess like a name followed by a year. A randomly generated password solves both problems, especially when you store it in a password manager. This generator builds passwords from the character sets you choose and draws every character using crypto.getRandomValues, the cryptographically secure random number source built into modern browsers. Passwords are created on your device and are not sent to or stored on any server.
How to use it
- Set Password Length with the slider, anywhere from 4 to 128 characters. The default is 16.
- Tick the character sets to include: Uppercase (A-Z), Lowercase (a-z), Numbers (0-9), and Symbols.
- If symbols are on, edit the Custom Symbols field to match what a site allows. Some systems reject characters like quotes or angle brackets, so you can remove them here.
- Optionally tick Exclude Ambiguous to drop 0, O, l, 1, and I, which are easy to confuse when reading a password aloud or typing it from paper.
- Optionally tick No Duplicate Characters if a policy forbids repeats.
- Choose Number of Passwords (1 to 50) and click Generate. Copy one password at a time, or use Copy All to get them as a newline-separated list.
Understanding password strength and entropy
The strength of a random password is measured in bits of entropy: the base-2 logarithm of the number of possible passwords. For a password of length L drawn uniformly from N characters, entropy is L multiplied by log2(N). Each extra bit doubles the number of guesses an attacker needs.
| Character pool | Pool size | Bits per character | 16 characters |
|---|---|---|---|
| Lowercase only | 26 | about 4.7 | about 75 bits |
| Upper and lowercase | 52 | about 5.7 | about 91 bits |
| Letters and digits | 62 | about 5.95 | about 95 bits |
| All four sets (default symbols) | 88 | about 6.46 | about 103 bits |
Two practical takeaways: length adds strength faster than complexity, and anything above roughly 80 bits is far beyond what offline guessing can realistically reach today. The strength bar on the page is a simple guide based on the length of the first password and the sets you selected; the entropy figures above are the more precise way to reason about it. Note that excluding ambiguous characters or forbidding duplicates shrinks the choices slightly, so add a character or two to compensate.
Good habits
- Use a unique password for every account. A password manager makes this painless and removes the need to memorize anything.
- Prefer 16 characters or more for important accounts such as email, banking, and your password manager itself.
- Turn on two-factor authentication wherever it is offered. A strong password and a second factor together stop most account takeovers.
- Do not paste passwords into chat or email. Clear your clipboard after copying if you share the device.
Things to know about the options
Characters are picked independently, so a short password with all four sets enabled may occasionally lack, say, a digit. If a site insists on at least one of each type, simply regenerate. With No Duplicate Characters on, a password cannot be longer than the number of distinct characters available; if you request more, you get a shuffled password using each available character once, which will be shorter than requested.
Related tools: generate random identifiers with the UUID generator, or learn why plain hashes are not used for password storage on the hash generator page.
FAQ
Is it safe to generate passwords on a website?
This page generates passwords with your browser's secure random generator and makes no network request with them. As with any tool, make sure you are on the real site over HTTPS and that your device is free of malware.
How long should my password be?
For random passwords, 16 characters with mixed sets is a sensible default. Go longer for master passwords or encryption keys.
Why does a site reject my generated password?
Some sites cap length or ban certain symbols. Shorten the length or edit the Custom Symbols field to match their rules, then regenerate.