Password Strength Test and Generator
Everything runs in your browser. The password you type or generate is never sent anywhere, stored or logged.
How strong is your password?
Type a password to see how many guesses an attacker would need and which parts of it are easy to guess. It is checked on this device only.
To see whether this exact password has already leaked, use the leaked-password check on the Data Breach Check page.
Generate a strong password
Made in your browser with its cryptographic random number generator. Nothing is sent or stored. Save it in a password manager right away.
Learn more
Guide and answers to common questions about Password Strength Test
How passwords get cracked
There are two very different attacks, and the strength of a password means something different in each. In an online attack the attacker types guesses into a real login form. The website can slow the attacker down, lock the account after a few wrong tries or ask for a second factor, so even a modest password survives for a long time. This page assumes 100 guesses per hour for a login that throttles, and 10 per second for one that does not.
The dangerous case is the offline attack. When a service is breached, the attacker gets a copy of its database, which holds a hash of every password rather than the password itself. A hash is a one-way scramble: the attacker cannot reverse it, but can hash guesses and compare, at the speed of their own hardware and with nobody to lock them out. How fast depends on the hash. Unsalted MD5 or SHA-1 hashes can be tested at billions of guesses per second on graphics cards; this page uses 10 billion per second for that case. A deliberately slow hash such as bcrypt, scrypt or Argon2 cuts the rate by many orders of magnitude; this page uses 10,000 per second for it. You usually cannot know which one a service uses, which is why the page shows both.
Attackers do not guess in alphabetical order. They start with lists of passwords that real people have used, taken from earlier breaches. Then they try dictionary words, names and common phrases, and apply the rules people follow: a capital first letter, a number or a year at the end, a ! last, @ for a and 0 for o. Only after that do they brute-force every combination. A password is as strong as the number of guesses it takes to reach it in that order, which is not the same as how complicated it looks.
Why length beats complexity
Every extra character multiplies the number of possible passwords by the size of the alphabet. A random lowercase letter gives about 4.7 bits per character; a random character from upper and lower case letters, digits and symbols gives about 6.6 bits. Eight characters of the second kind is roughly 53 bits. Twelve lowercase letters is about 56 bits, and sixteen is 75 bits. Adding length helps more than adding a symbol, and unlike a symbol it does not make the password harder to remember.
Complexity rules often backfire because people satisfy them in the most predictable way. A password such as Summer2019! has a capital, a digit and a symbol, but it is a common word, a year and an exclamation mark, three things an attacker tries first. This page therefore does not count character types as strength. It looks for the patterns attackers use and prices what is left as random characters.
What the estimate counts
The estimate looks for the following patterns in your password and gives each a price in guesses. It then picks the cheapest way to build the whole password from such pieces, and counts anything left over as random characters from the kinds of characters your password actually uses (lowercase, uppercase, digits, symbols).
- Common passwords and common words: a built-in list of several hundred of the most used passwords and a few hundred common English words and names, matched without regard to capitals, with look-alike swaps (@ for a, 3 for e, 1 for i, 0 for o, $ for s) and written backwards.
- Repeats: aaaa, abcabcabc.
- Sequences: abcd, 1234, 9876, and steps of two such as 2468.
- Keyboard walks on a QWERTY keyboard: qwerty, asdf, 1qaz2wsx, including shifted keys.
- Dates and years: 1900 to 2029, and forms such as 25/12/1990, 311299 or 1999-12-31.
- Words that are not in the lists but read like a word, which are priced as a pick from a large dictionary instead of as random letters, and which stop the score at Strong because the estimate cannot be sure about them.
- Random characters: whatever is left, priced as one pick from the characters that the password uses.
What it cannot know
The estimate is a guess about an attacker, not a measurement, and it can be wrong in both directions. The built-in lists are small, while real attackers use lists with hundreds of millions of leaked passwords. A password that is not in our list may be in theirs. A word from another language, a regional name, a footballer, a song title, a line from a film or a phrase typed in a different keyboard layout all look like random letters here, unless they happen to look like a word to the rough test it uses.
It also knows nothing about you. If your password contains your pet's name, your street, your phone number or your date of birth, an attacker who has researched you will guess it much faster than shown. And it cannot tell whether your password has already been leaked: a password that has appeared in a breach is in the attackers' lists however random it looks. For that, use the leaked-password check on the Data Breach Check page, which asks the Pwned Passwords service without sending the password itself.
The crack times assume a single attacker working at the stated speed. Faster hardware, many machines at once or a hash that is weaker than assumed make them shorter; a slower hash makes them longer. That is why they are shown as rough ranges such as "about 3 hours" or "centuries" and not as exact figures.
Passphrases, password managers and two-factor authentication
A passphrase is several words chosen at random, such as cabin river amber ocean tulip. If the words are picked by chance from a list, the strength is easy to count: the generator above uses a list of about 1,600 words, which is a little under 10.7 bits a word, so five words are about 53 bits and seven are about 75. A passphrase is easier to remember and to type than a random string of symbols, which makes it a good choice for the few passwords you must remember: your password manager's master password, your device login and your email. The words must be random. A line from a song, a sentence you made up or four words that mean something to you are far weaker than the same number of words picked by dice or a generator.
For everything else, use a password manager. It generates a long random password for each account, fills it in on the right site only and remembers it, so nothing needs to be memorised. Because no two accounts share a password, one breach cannot open the others. Reusing a password is the most common reason an account is taken over: attackers take the email and password from one breach and try them on hundreds of other sites, which is called credential stuffing, and a strong password that you reuse is only as safe as the weakest site that has it.
Turn on two-factor authentication wherever it is offered, starting with email, your password manager and banking. With it, a stolen password alone is not enough to log in. An authenticator app or a hardware security key is safer than codes sent by text message, which can be intercepted by taking over a phone number.
Is it safe to type a password here?
The estimate and the generator run entirely in your browser. The password you type is not sent to Exposy or to anyone else, is not stored in a cookie, in local storage or anywhere else, and is gone when you close or reload the page. The page makes no network request while you type; you can confirm that in your browser's developer tools, or load the page and then turn off your connection. Even so, the safest habit is to test a password of the same kind and length as yours, not the one you use for your bank, and to avoid typing real passwords on a computer you do not trust.
Frequently asked questions
How long should a password be?
At least 12 characters for a random password, and 16 or more for important accounts, if a password manager is typing it for you. For a password you must remember, use a passphrase of five or more random words. Length matters more than symbols: every added character multiplies the work of an attacker, and a short password cannot be rescued by a clever mix of characters.
Is a passphrase safer than a password?
Per character, a random string is stronger. Per effort to remember, a passphrase of random words is better: five words picked at random from a list of about 1,600 are roughly as strong as eight random letters, digits and symbols, and far easier to type and remember. It is only safe when the words are really chosen at random and the attacker does not know which words you like.
Does changing letters to symbols help?
Hardly. Writing p@ssw0rd for password, or adding a ! at the end, is one of the first rules attackers apply to their word lists, so it adds almost nothing. A swap helps only when the underlying word is not guessable, in which case length would have helped more.
Is this password check safe to use?
Yes. The estimate is computed by a script in your browser and nothing you type is sent anywhere or stored. The page does not even ask a server whether the password has leaked; that is a separate check on the Data Breach Check page, which sends only a short fragment of a hash. Still, avoid typing a password you use for your most important accounts into any website; test one that is similar in length and style.
What is entropy, and what does "about 50 bits" mean?
Entropy measures unpredictability. A password with 50 bits is one of 2 to the power of 50, about a quadrillion, equally likely choices. This page turns its estimate of the guesses needed into bits with log2, so 50 bits means about a quadrillion guesses. Every additional bit doubles the work. As a rough guide, under 30 bits is weak, 40 to 50 is fair, 60 and more resists a determined offline attack with a fast hash for a long time, and 80 and more is beyond any practical attack today.
Why does a long password still show a low score?
Because length is not the same as unpredictability. A long password made of a repeated group, a keyboard row, a sequence, a date or a common phrase is easy to guess, and the estimate prices it by the pattern, not by the number of characters. Aaaaaaaaaaaaaaaa is 16 characters and a handful of guesses.
Why does a strange password show as weak?
It probably contains something the estimate recognises: a word, a name, a year, a sequence or a keyboard run, even inside a longer string. The list under the verdict shows exactly which parts it matched and what it made of them. Remove those parts, or lengthen the password with random characters or unrelated words.
Can the estimate be wrong?
Yes. It only knows a few hundred common passwords, a few hundred common words and about 1,600 passphrase words, so a leaked password or an everyday word it has never seen can look stronger than it is. It knows nothing about you, either. Treat a low result as reliable and a high result as the best case: a high result means no pattern was found, not that none exists.
How does the generator pick characters and words?
It uses your browser's cryptographic random number generator (crypto.getRandomValues), the same source that is used for encryption keys. To choose one of N items it discards any random number that would make some items likelier than others (rejection sampling), so every character and every word has exactly the same chance. The result is created on your device, shown only on this page and not sent anywhere.
Should I change my passwords regularly?
Not on a schedule, if each password is long, random and unique and you have two-factor authentication on. Forced periodic changes lead people to make small, predictable edits. Change a password when you have a reason: it appeared in a breach, you shared it, you typed it on a computer you do not trust, or the service tells you it was compromised.