How to use the password generator
- Choose Password for a random string, or Passphrase for random words that are easier to type and remember.
- Set the length or number of words, and the character types the site you are using accepts.
- Select Generate new until you have one you like, then Copy it straight into your password manager.
How the passwords are generated
This page uses your browser's Web Crypto API, crypto.getRandomValues(), which provides cryptographically strong random numbers. Each character or word is picked with rejection sampling, so every option is exactly equally likely; the common shortcut of taking a random number modulo the alphabet size would favour some characters slightly.
Everything happens in your browser. The password is not sent to NexusSec, not stored, and never included in analytics. You can disconnect from the internet after the page loads and it still works.
What the entropy number means
Entropy measures how many guesses an attacker would need if they knew exactly how the password was made. A random password has length × log2(alphabet size) bits: the default 20 characters from 90 possible characters gives about 130 bits. Each word from the 7,776-word EFF list adds about 12.9 bits, so the default seven-word passphrase has about 90 bits.
As a rule of thumb, aim for at least 80 bits for important accounts. The estimate only applies to passwords generated randomly like this; a password you invent yourself has far less entropy than its length suggests.
Password or passphrase?
- Passwords pack the most strength into the fewest characters. Use them when a password manager fills them in for you.
- Passphrases are easier to type and remember, which suits the few passwords you must type yourself, such as your password manager's master password or a laptop login.
Troubleshooting
- A site rejects some symbols. Untick Symbols and increase the length to keep the strength up.
- Hard to read aloud or type. Tick "Avoid look-alikes", or use a passphrase.
- A site limits the length. Use the longest it allows; length adds strength faster than character variety.
Frequently asked questions
Is it safe to generate a password on a website?
It is when the password never leaves your device. This generator runs entirely in your browser using Web Crypto, and nothing is sent, stored or logged. For your most sensitive accounts, you can also use your password manager's built-in generator.
How long should a password be?
For random passwords stored in a password manager, 16 to 20 characters or more is a sensible default. Length matters more than adding unusual characters.
Do I still need multi-factor authentication?
Yes. A strong password stops guessing, but not phishing or malware that captures it. Multi-factor authentication protects you when a password is stolen.