Password Generator
Strong random passwords, generated in your browser. Nothing is stored or sent.
How to use
- Drag the Length slider. It runs from 8 to 128 characters, and a new password appears as you move it.
- Tick the character sets to include: upper case, lower case, digits and symbols. At least one must be ticked, or the tool asks you to choose one.
- Tick Leave out ambiguous characters if you will ever read the password aloud or type it from paper. It removes 0, O, 1, l and I.
- Press Generate for a fresh password with the same settings, then Copy. Paste it straight into a password manager.
- Read the strength label and entropy estimate under the password.
Worked example
With the default settings (length 20, all four sets) the pool has 26 + 26 + 10 + 25 = 87 characters. Each position adds log2(87), about 6.44 bits, so the estimate is 20 × 6.44 = 128.9 bits. The page shows "Very strong" and "129 bits". Other settings compare like this:
| Settings | Pool | Entropy | Label |
|---|---|---|---|
| 8, lower case only | 26 | 38 bits | Weak |
| 12, lower case and digits | 36 | 62 bits | Fair |
| 14, letters and digits | 62 | 83 bits | Strong |
| 16, all four sets | 87 | 103 bits | Very strong |
Length does more than variety. Adding one more character from an 87-symbol pool adds 6.4 bits, while switching from letters-only to all four sets at a fixed length adds under one bit per character.
How it works
Every character comes from crypto.getRandomValues, the browser's cryptographically secure random number source, described in the MDN reference. The plain Math.random function is not suitable for secrets. To pick a position without bias, the page uses rejection sampling: it throws away random values that would make some characters slightly more likely than others. It then draws one character from each chosen set, fills the remaining length from the combined pool, and shuffles with a Fisher-Yates shuffle that uses the same source.
Entropy here is the length times log2(pool size), which is the number of coin flips of guessing difficulty. Forcing one character from every set slightly lowers the true figure, so treat the number as a close upper estimate. The label bands are below 50 bits Weak, 50 to 69 Fair, 70 to 89 Strong and 90 or more Very strong.
Current guidance favours length over complexity rules. NIST SP 800-63B tells services not to demand mixtures of character types or forced periodic changes, and asks them to allow long passwords, including paste. A long random string, or a passphrase of random words, resists guessing far better than a short, complicated one.
Common mistakes and edge cases
- Reusing a password. One leak then unlocks every account that shares it. Generate a unique password for each site.
- Keeping the password in your head. A 20-character random string is not memorable. Store it in a password manager and protect that with a long passphrase and two-step sign-in.
- Site rules that reject symbols. Some sites cap length or refuse certain symbols. Untick Symbols and raise the length to compensate.
- Pasting it into a chat or note. The clipboard and notes apps may sync or log. Paste only into the sign-up field or a password manager.
- Trusting a look-alike pool. The symbol set is the 25 characters
!@#$%^&*()-_=+[]{};:,.<>?. That is enough for security, but not every printable symbol.
Frequently asked questions
How long should a password be?
For an important account, 16 or more random characters is a sound default, and the length matters more than the mix of types. If a site allows it, use more.
Is a generated password safer than one I make up?
Yes. People choose predictable patterns, such as a word with a number at the end. A random generator has no habits to guess.
Does this page see or store my passwords?
No. They are made in your browser and not sent, logged or stored. Closing the tab discards them.
Are passphrases an alternative?
Yes. Four or more words chosen at random from a large list make a strong, easier to type secret. This tool makes character strings only.
Do I still need two-step sign-in?
Yes. A strong password does not help if it is phished. Add a passkey or an authenticator app where the service offers one.
Related tools
- Password Strength Checker to see the entropy of a password you already have.
- Hash Generator for checksums, which are not a way to store passwords.
- UUID and ULID Generator for random identifiers, which are not secrets.
- Random Number, Dice and Coin Generator for non-secret random choices.