Home › Security Tools › Password Generator

Password Generator

Strong random passwords, generated in your browser. Nothing is stored or sent.

Characters
Strength-
Entropy (estimate)-
Passwords are made with the browser's secure random source (crypto.getRandomValues). Nothing is stored, logged or sent. Copy a password only to a password manager or a place you trust.

How to use

  1. Drag the Length slider. It runs from 8 to 128 characters, and a new password appears as you move it.
  2. 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.
  3. 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.
  4. Press Generate for a fresh password with the same settings, then Copy. Paste it straight into a password manager.
  5. 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:

SettingsPoolEntropyLabel
8, lower case only2638 bitsWeak
12, lower case and digits3662 bitsFair
14, letters and digits6283 bitsStrong
16, all four sets87103 bitsVery 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

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