Password Generator
Set a length and the character types, or switch to a word-based passphrase, then copy the result. Passwords come from your browser's cryptographic random number generator and are never sent or stored. Aim for at least 16 characters: a 16-character password from the full character set has about 105 bits of entropy, far beyond brute force.
Updated
How to use the Password Generator
- 1Choose between a random password and a word-based passphrase.
- 2Set the length and which character types to include.
- 3Turn on the ambiguous-character filter if you will be typing the password by hand.
- 4Copy the result, or generate a batch if you need several.
How it works
Randomness comes from crypto.getRandomValues(), the browser's cryptographically secure generator, which is seeded by the operating system's entropy pool. This matters: Math.random() is fast but predictable enough that an attacker who sees a few outputs can work out the rest, which makes it unsuitable for anything secret.
Characters are selected using rejection sampling rather than a simple modulo, because modulo introduces a slight bias toward the start of the character set. Rejection sampling discards values that would skew the distribution, so every character is genuinely equally likely.
The strength figure shown is entropy in bits — log₂ of the number of possible passwords of that length and character set. It measures how many guesses an attacker needs on average, and it is the honest way to compare two passwords. A 16-character password from the full set is about 105 bits, which is beyond brute force by any realistic margin.
Passphrases trade length for memorability. Four random words from a large list give roughly 52 bits — weaker than a long random string but far stronger than anything a person invents, and much easier to type on a phone.
Nothing generated here is transmitted, logged or stored. Closing the tab is the end of it.
Tips and common mistakes
- Use a different password for every site; one leak then only affects one account.
- Paste the password straight into a password manager rather than writing it somewhere temporary.
- Choose 16 characters or more for anything important.
- Turn on two-factor authentication as well, starting with your email account.
Frequently asked questions
How long should my password be?
Is this password generator safe to use?
What does entropy mean?
Should I use a passphrase instead?
What are ambiguous characters?
How long would a password take to crack?
Can I generate several passwords at once?
Should I change my passwords regularly?
Guides
- How to create a strong password you can actually use
- How to make a Wi-Fi QR code so guests can connect in one scan
- How long would it take to crack my password?
- A strong Wi-Fi password that is still easy to type
- Why a website rejects your strong password
- Why a random number generator keeps repeating numbers