Password generator

Make a strong random password or an easy-to-type passphrase. It is created on your device and shows how strong it really is, in bits.

FreeNo sign-upRuns on your device

Loading the tool…

How to use it

  1. Choose Random password or Passphrase.
  2. For a password, set the length and the kinds of characters. For a passphrase, set the number of words.
  3. Read the strength in bits and the rough time to guess it.
  4. Press Copy, then save it in your password manager.

How strength is measured

Strength here is entropy, measured in bits. Each bit doubles the number of guesses an attacker needs. A random password's entropy is its length times log2 of the number of characters it is picked from. With lower case, upper case, numbers and 25 symbols, that is 87 characters, or about 6.4 bits each, so 20 characters give about 129 bits.

A passphrase works the same way with words. Each word is picked at random from a built-in list of over 1,400 common words, which adds about 10.5 bits per word. Five words give about 52 bits, and seven give about 73. Capital letters on each word add almost nothing, because they follow a pattern an attacker would try.

These numbers are only true because the choice is truly random. A password you make up yourself, or one that has appeared in a data breach, is much weaker than its length suggests.

How long is long enough

For most accounts, 60 to 80 bits is plenty when the site limits login attempts. For your email, bank and password manager, aim for 80 bits or more. The time to guess assumes an attacker with a stolen password file trying 10 billion guesses a second, which is possible against fast, poorly stored hashes. Well-run sites use slow hashes that cut that rate by thousands of times.

"Leave out look-alikes" removes I, l, 1, O, 0 and o, which helps when you have to read a password aloud or type it on a TV. It lowers the strength slightly, and the bits shown take that into account.

Privacy

Passwords are made in your browser with crypto.getRandomValues, the same secure random source password managers use, with rejection sampling so every character is equally likely. Nothing is sent, logged or stored, and the page works offline once loaded.

Questions

Is it safe to use an online password generator?

This one makes the password on your device and never sends it anywhere, which you can check in your browser's network tab. The safest habit is to save it straight into a password manager.

Is a passphrase better than a password?

A passphrase is easier to remember and type. It needs more characters to reach the same strength. Six or seven random words are a good choice for a password you have to type by hand.

How many characters should a password be?

16 or more random characters is strong for almost anything. If a site limits you to fewer, use every character type it allows.

What does 80 bits of entropy mean?

It means about 2 to the power of 80 possible passwords, roughly a trillion trillion. On average an attacker has to try half of them to find yours.

Why does the strength not change when I tick Capitalise?

Capitalising the first letter of each word is predictable, so attackers try it automatically. It adds almost no real strength, so we don't count it.