Skip to content
Random and password generators

Password Generator

Make a strong random password or an easy-to-type passphrase, choose the length and the characters, and see how many bits of entropy it has and how long a brute-force attack would take.

Last checked

Your password

 

Options

Any length from 4 to 128; the slider goes to 64.

Characters to use

Several at once

Set a number above 1 to get a list, one value per line.

Made on your device with crypto.getRandomValues. Nothing is sent or stored.

How to use it

  1. Pick Random characters for a password you will store in a password manager, or Passphrase for one you need to remember or type.
  2. Set the length or the number of words and the characters you want. If a site rejects some symbols, add them to Never use these characters.
  3. Check the bits and the strength line, press Generate new until you like it, then copy it. Set How many above 1 to get a list.

What it checks and why

The strength of a generated password is its entropy: the number of equally likely passwords the generator could have produced, written as a power of two. A 20-character password from 88 characters has about 129 bits; each extra bit doubles the work of a brute-force attack. The bits shown here come from the rules you chose, including the one-of-each-type rule, which slightly lowers the count.

Every character is chosen with crypto.getRandomValues, the browser's cryptographically secure generator. A plain remainder of a random number would make some characters a little more likely than others (modulo bias), so values that would cause it are thrown away and drawn again. The final order is shuffled, so the guaranteed character types are not always at the start.

A passphrase is a few random words. With the EFF short word list each word adds about 10.3 bits, so six words give about 62 bits and eight give about 83. Passphrases are longer to type than random characters but far easier to remember, which is why the EFF made its lists for dice-based passphrases.

NIST SP 800-63B, the US guideline for passwords, asks for at least 15 characters when a password is the only factor and 8 when it is used with a second factor, recommends allowing at least 64, and advises against forced composition rules such as one symbol and one digit. Length matters more than character variety.

Specs and sources

Limits

  • The brute-force time assumes 10 billion guesses a second against a leaked, fast hash. Real attacks can be slower (a slow hash or rate limits) or faster (more hardware); the bits are the number to compare.
  • Entropy describes how the password was made, not how it looks. A password you type yourself is not checked here, because its strength depends on how you chose it.
  • The tool does not store or sync passwords. Save the result in a password manager before you leave the page.
  • Some sites still reject certain symbols or cap the length. Use the exclude field or a shorter length for them.

Questions

How long should a password be?
NIST asks for at least 15 characters when a password is the only factor. A random 16 to 20 character password from all character types is a good default for a password manager.
Is this password generator safe to use?
Yes. The password is made in your browser with the cryptographic random source and is never sent, logged or stored. You can load the page and turn off the network before you press Generate.
Is a passphrase better than a random password?
For something you must remember, yes: six random words are about as strong as a 10-character random password and much easier to recall. For a password manager, random characters are shorter for the same strength.
What does bits of entropy mean?
It is log base 2 of the number of passwords the generator could produce with your settings. 60 bits means about one quintillion options; every extra bit doubles that number.
Why avoid look-alike characters?
Characters such as capital I, lowercase l, the digit 1, capital O and zero are easy to misread when a password is typed from paper or a screen. Removing them costs only a little entropy.
Does a password need symbols and numbers?
Not by itself. Length adds more strength than variety, and NIST advises against forcing a mix. Some sites still require one of each type, which is what the at least one of each option is for.