Password Generator

Generate strong random passwords with a strength meter.

The Password Generator creates random passwords from the character sets you choose, with a length from 4 to 128. It shows an entropy estimate and a strength label, and can leave out look-alike characters. Passwords are made with the browser cryptographic random generator.

What makes a password strong?

Password strength comes from unpredictability. A randomly generated password is strong because an attacker has to search a very large space of possibilities, and the size of that space can be measured in bits of entropy: length times the base-2 logarithm of the number of possible characters. Each extra bit doubles the guesses needed. Entropy only applies when characters are chosen at random, which is why people-made passwords with predictable patterns are weaker than the same length suggests. Length matters more than complexity rules, and a password should be unique to each account so a leak elsewhere does not expose it. A password manager makes long random passwords practical. This tool uses crypto.getRandomValues and an unbiased selection method, so no character is more likely than another.

How to use Password Generator

  1. Set the length Drag the Length slider between 4 and 128.
  2. Choose character sets Tick Lowercase (a-z), Uppercase (A-Z), Digits (0-9) and Symbols (!@#...) as needed, and Exclude ambiguous (Il1O0) if you want.
  3. Check the strength Read the Strength label and bits of entropy under the password.
  4. Copy it Use the copy button, or click Regenerate to try another one.

Frequently asked questions

How random are the passwords?

They use crypto.getRandomValues, the browser cryptographically secure random generator, with rejection sampling to avoid bias.

What length should I use?

Use 16 characters or more for accounts. Longer is better for anything that is not typed by hand, as long as the site accepts it.

Is a random password better than a passphrase?

Both can be strong. A random password is compact for a given entropy, a passphrase is easier to remember. For a password manager, random passwords are convenient.

What does the entropy figure mean?

It is length times log2 of the pool size. A 20-character password from an 89-character pool is about 129.5 bits. It assumes each character was chosen at random.

Is the password sent or saved?

No. It is created in the page and is not sent to a server or stored.