This password generator creates random passwords from 6 to 64 characters, or memorable passphrases of 3 to 12 words, and shows how strong each one is in bits of entropy. It uses your browser’s cryptographic random number generator, and every password is created on your device, so it is never sent over the internet or stored by us.
How to use the password generator
- Choose Password or Passphrase.
- For a password, set the length and pick the character sets: uppercase, lowercase, digits and symbols. Tick Avoid look-alikes to leave out characters such as O and 0, or l, I and 1.
- For a passphrase, choose the number of words. A digit is added for sites that require one.
- Check the strength label and entropy figure, then copy the result into your password manager.
- Generate a new one for every account. Never reuse passwords.
How it works
Randomness comes from crypto.getRandomValues, the browser’s cryptographically secure generator, not from Math.random, which is not designed for security. Each character or word is picked independently and evenly from the allowed set.
Strength is measured as entropy, in bits. For a password where every character is chosen at random from a pool of possible characters:
entropy = length × log2(pool size)
Each extra bit doubles the number of guesses an attacker would need in the worst case. For a passphrase, the pool is the word list, so each word adds log2(number of words) bits. The tool labels results as follows:
| Entropy | Label |
|---|---|
| Under 40 bits | Weak |
| 40 to under 60 bits | Fair |
| 60 to under 80 bits | Strong |
| 80 bits or more | Very strong |
Entropy only describes truly random passwords. A password you invent yourself, like a name plus a year, has far less real strength than its length suggests, because attackers try common patterns first.
Worked example
Password: 16 characters using uppercase (26), lowercase (26) and digits (10) gives a pool of 62. log2(62) is about 5.95, so entropy is 16 × 5.95 ≈ 95 bits: very strong. With lowercase only (pool 26, about 4.70 bits each), the same length gives about 75 bits: strong. Adding symbols raises the pool further, while avoiding look-alikes lowers it slightly; the tool recalculates for whatever you choose.
Passphrase: with a list of about 300 words, each word adds log2(300) ≈ 8.2 bits. Five words give about 41 bits, and the added digit gives about 3.3 more, around 44 bits in total: fair. Eight words reach roughly 69 bits: strong. Because the word list is small, passphrases need more words than you might expect.
How long should a password be?
- Accounts stored in a password manager: use 16 or more random characters with all character sets. You never need to remember them.
- Passwords you must type or remember, such as your password manager’s master password or a device login: a passphrase of at least 8 words from this tool, or a longer phrase from a larger word list.
- Sites with odd rules: if a site limits length or symbols, use the maximum length it allows and turn on two-factor authentication.
Length helps more than complexity. Adding characters increases entropy steadily, while adding a symbol set only enlarges the pool a little.
If you store passwords in a config or export file, our JSON formatter also works locally, but a dedicated password manager is the safer home for secrets.
Frequently asked questions
Is it safe to generate a password on a website?
Here, yes: the password is created by your browser on your device and is not transmitted or saved. As with any page, only use it on a device you trust.
What is a good entropy score?
Aim for at least 80 bits for important accounts. Anything under 40 bits is weak against offline guessing.
Are passphrases better than random passwords?
They are easier to remember and type, but each word adds fewer bits than you might think. Use passphrases where you must remember them and random passwords everywhere else.
Why avoid look-alike characters?
Characters like O and 0 are easy to confuse when reading or typing a password by hand. Removing them slightly lowers entropy, so add a character or two to compensate.
How often should I change my passwords?
Change a password when there is a reason, such as a data breach or a shared device. Unique, strong passwords plus two-factor authentication matter more than frequent changes.
