Strong Password Generator

Generate a random password or an easy-to-type passphrase, and see how many bits of entropy it has and how long it would take to crack.

Very strong 104 bits of entropy16 characters from a set of 89
Online attack on a login page10 guesses a second, a generous rate for a site that limits login attemptsabout 10^22 years
Offline, slow hash (bcrypt)100,000 guesses a second against a stolen database stored with bcryptabout 10^18 years
Offline, fast hash (MD5, SHA-1)A trillion guesses a second, roughly a multi-GPU cracking rig against an unsalted fast hash246 billion years

Average time to guess it, assuming the attacker knows exactly how it was generated.

Runs entirely in your browser. Nothing you type or upload is sent to a server.

What actually makes a password strong

A password is strong when an attacker who knows exactly how it was made still cannot guess it in a useful amount of time. That rules out anything a person chooses. People pick words, names and dates, then satisfy complexity rules in predictable ways, like a capital at the start and 1! at the end, and cracking tools try those patterns first. A generated password has no pattern to exploit, so the only attack left is trying every possibility.

How many possibilities there are is called entropy, measured in bits. Each bit doubles the work. A random password's entropy is its length times the bits each character contributes:

Characters drawn fromSet sizeBits per character16 characters
Digits only (a PIN)103.353 bits
Lowercase letters264.775 bits
Upper and lowercase, digits626.095 bits
All of the above plus symbols896.5104 bits
One word from the EFF list7,77612.9n/a

Notice how quickly length pays off: every extra character multiplies the work again. A 20-character lowercase password beats a 14-character one using every symbol on the keyboard. This is why NIST's digital identity guidelines (SP 800-63B) tell websites to stop forcing composition rules and periodic password changes, and to allow long passwords instead.

Passphrases

A passphrase strings together words picked at random from a list, like Stalling-Hydrated-Grievance-Untidy-Contend-Among. This generator uses the Electronic Frontier Foundation's long word list: 7,776 words, chosen to be easy to spell, distinct from one another and free of offensive terms. 7,776 is six to the fifth power, so the list also works with five ordinary dice, a method called Diceware.

The randomness is what matters. Six random words give about 77.5 bits, as strong as a 12-character password using every symbol, yet they are far easier to type on a phone and to remember. A phrase you make up yourself, such as a song lyric, is not a passphrase in this sense: attackers have lists of those too.

How passwords really get cracked

Nobody guesses passwords by typing them into a login page for long. Sites limit failed attempts, which is why the online estimate is so slow. The real threat is a breach: attackers steal a database of password hashes and test guesses offline on their own hardware, as fast as it will go.

How fast depends on how the site stored the passwords. A deliberately slow algorithm like bcrypt, scrypt or Argon2 holds an attacker to thousands of guesses per second per graphics card. A fast hash like unsalted MD5 or SHA-1 allows tens of billions per card. The estimates under the generator show all three cases, because you cannot know how every site you use stores your password. Aim for a password that survives the worst one: 80 bits or more for anything that matters.

The habits that matter more than strength

  • Never reuse a password. Attackers take credentials from one breach and try them everywhere else, a technique called credential stuffing. A unique password per site contains the damage of any breach to one account.
  • Use a password manager so unique random passwords cost you nothing to remember. The one password you do memorize, for the manager itself, is the ideal place for a six-word passphrase.
  • Turn on two-factor authentication for email, banking and the password manager. Email matters most, because it can reset everything else.
  • Check every download you install from outside an app store. The Checksum Calculator compares a file against the hash its publisher lists.

There is a deeper look at these numbers in How long would it take to crack your password?

Passphrase word list: EFF Large Wordlist for Passphrases, Electronic Frontier Foundation, licensed under CC BY 3.0 US.

Frequently Asked Questions

Is it safe to generate a password on a website?
It is safe here because nothing leaves your browser. Passwords are generated on your device with crypto.getRandomValues, the browser's cryptographic random number generator, and are never sent to a server, logged or stored. You can disconnect from the internet after the page loads and it keeps working.
What makes a password strong?
Length and randomness. A strong password is one an attacker cannot guess even when they know exactly how it was made, which means it must be generated randomly rather than chosen by a person. Every extra character or word multiplies the number of possibilities, so adding length is the easiest way to add strength.
How long should my password be?
For random passwords, 16 characters is a comfortable default and 12 is a sensible minimum. For passphrases, use at least five words, and six for anything important such as your email or password manager. At those lengths guessing is not a realistic attack; reuse and phishing are.
Are passphrases as secure as random passwords?
Yes, when the words are picked randomly. Each word from the 7,776-word list adds about 12.9 bits, so six words give about 77.5 bits, the same as a 12-character password drawn from every letter, digit and symbol. The passphrase is just far easier to type and remember.
What is entropy?
Entropy measures how many guesses it would take to be sure of finding a password, written as a power of two. 60 bits means 2 to the 60th possible passwords. It only applies to randomly generated passwords; a password a person made up has far less than any formula would suggest, because people choose predictably.
Do you store or track the passwords I generate?
No. Generation happens entirely in your browser. We never see, store or transmit the passwords you create, and no cookie records them.
Why avoid look-alike characters?
Characters like l, 1, I and |, or O, o and 0, are easy to confuse when a password has to be read aloud, typed from a printout or entered on a TV. Leaving them out costs a little entropy, which the strength meter accounts for, so add a character or two to make up for it.
Should I use a password manager?
Yes. The biggest risk to most people is not a weak password but the same password used on many sites, so that one breach unlocks the rest. A password manager lets every account have its own random password. Protect the manager itself with a long passphrase you can remember and two-factor authentication.
The Internet Omni-Tool