🔐

Password Generator

Generate strong random passwords using the Web Crypto API. Custom length and character sets, bulk generation, nothing transmitted or stored.

✓ Free forever✓ No signup✓ 100% private — runs in your browser
Generated Password
Click Generate to create a password
Enter or generate a password

Human-chosen passwords are predictable in ways that are easy to exploit — names, dates, keyboard patterns, a word with a digit on the end. Attackers model these patterns directly. A genuinely random password has no pattern to model, which is the entire point.

How to use the Password Generator

  1. Set the length — 16 characters or more for anything that matters
  2. Choose which character types to include
  3. Generate, then copy the password straight into your password manager
  4. Use a different password for every account

Length matters more than complexity

Each additional character multiplies the search space. Each additional character type only widens the base. Length wins decisively.

Using all four character types (95 possible characters):

  • 8 characters — about 52 bits of entropy. Crackable by a well-resourced attacker.
  • 12 characters — about 79 bits. Reasonable for most accounts.
  • 16 characters — about 105 bits. The current sensible minimum for anything important.
  • 24 characters — about 158 bits. Beyond any foreseeable brute-force capability.

This is why the old advice — eight characters with a capital, a number and a symbol — is obsolete. It produces passwords that are both hard to remember and inadequate. NIST dropped mandatory complexity rules and composition requirements in 2017 precisely because they pushed people toward predictable substitutions like P@ssw0rd1.

Randomness has to be real

This generator uses crypto.getRandomValues(), the browser's cryptographically secure random number generator — the same primitive used for TLS key material.

The alternative, Math.random(), is not cryptographically secure. It is fast and statistically fine for shuffling a list; it is predictable enough that an attacker who observes some output can infer the rest. Password generators built on it have been broken in practice. If you use a different generator, check which source it uses.

Nothing generated here is transmitted or stored — generation is entirely local, which you can verify by disconnecting from the network and watching it still work.

Storing passwords you cannot possibly remember

Generating strong passwords only helps if you can use them, and a 20-character random string is not memorable. A password manager is the component that makes the whole approach workable.

It also solves the more important problem, which is reuse. Credential stuffing — taking usernames and passwords from one breach and trying them everywhere else — is among the most common ways accounts are compromised, and it works entirely because people reuse passwords. A unique password per site means one breach stays one breach.

You need to remember exactly two things: the master password for the manager, and the recovery method. The master password is the one case where a long passphrase is clearly right — six random words, memorable, and strong enough that offline attacks are impractical.

Enable two-factor authentication on the manager itself, and on anything that can reset it — particularly your email account, which is the recovery route for almost everything else. An email account protected by a weak password undermines every strong password below it.

Write the master password down and store it somewhere physically secure if you are the only person who has it. A password nobody can recover is a failure mode too.

When a generated password will not be accepted

Composition rules, which were meant to improve passwords, routinely reject strong ones. A few workarounds cover most cases.

Low maximum length. A site capping passwords at 12 or 16 characters is a bad sign — it often means the password is being stored in a fixed-width column rather than hashed, since a hash is a fixed length regardless of input. Use the maximum allowed and enable two-factor authentication.

Restricted symbols. Many systems reject characters they cannot escape safely, which is itself a hint about how they handle input. Generating with only letters and digits at a greater length gives equivalent or better strength.

Mandatory character classes. Requiring at least one of each type can reject a random string that happens to contain no symbol. Regenerate, or enable the character sets explicitly.

Spaces disallowed, which rules out passphrases on some sites. Hyphens or periods between words work as substitutes.

Where ambiguity matters — a password that will be read aloud, typed from a screen, or dictated over the phone — exclude look-alikes such as l, I, 1, O and 0, and add two characters of length to compensate for the smaller alphabet.

Frequently asked questions

Are these passwords truly random?

Yes. They use crypto.getRandomValues(), the browser's CSPRNG — the same source used for cryptographic keys, not the predictable Math.random().

Are generated passwords stored or sent anywhere?

No. Generation happens entirely in your browser and nothing is transmitted or logged. The page works with the network disconnected, which you can test.

How long should a password be?

At least 16 characters for important accounts, 20 or more for anything critical such as your email or password manager master password. Length contributes far more than character variety.

Should I use a passphrase instead?

For passwords you must memorise — your device login and your password manager's master password — yes. Four or five random words give strong entropy and are far easier to recall. For everything else, use a generated random string stored in a manager.

Do I really need a different password everywhere?

Yes. Credential stuffing — replaying credentials leaked from one breach against other services — is among the most common attack methods. Reuse means one breach compromises every account sharing that password.