Skip to content

Password Generator: Make and Check Strong Passwords (2027)

Make a strong random password in your browser, see how long it would take to crack, and check the strength of one you already use.

…
Characters

By · Updated

How do you use the password generator?

Flow chart: set the length, choose the character sets (lowercase, uppercase, numbers and symbols), optionally avoid look-alike characters, read the password with its entropy in bits and time to guess, or paste a password you already use to see its strength.
Using the password generator, step by step

Follow these steps to make a random password, or to check one you already use.

  1. Set the length you want. Longer is stronger, so pick the longest length the site you are signing up to accepts.
  2. Choose the character sets you want: lowercase, uppercase, numbers and symbols.
  3. Optionally, turn on avoid look-alike characters to leave out characters that are easy to confuse.
  4. Read the random password, its entropy in bits and its estimated time to guess.
  5. To check a password you already use, paste it in. The tool shows its strength.

Each new generation gives a new password. Entropy is a measure of how many guesses a password could need, and time to guess turns that into an estimate. Each character you drop removes several bits, so keep the length high. The sections below explain both.

How does the password generator work?

Flow chart: characters picked with crypto.getRandomValues, rejection sampling so each is equally likely, at least one from each chosen set, then shuffled; entropy is length × log2(pool size).
How the generator builds a password

This tool picks each character with the browser's cryptographically secure generator, crypto.getRandomValues. It uses rejection sampling, so no character is more likely than another. Without that step, some characters would come up more often than others. It then takes at least one character from each set you chose and shuffles the result.

Entropy is length × log2(pool size), measured in bits. The pool is the number of different characters the tool can pick from. Time to guess assumes half the possible passwords are tried, at 10 billion guesses a second.

Worked example, in words: take a password and add another character drawn from the same pool. The number of possible passwords is multiplied by the pool size, so the number of guesses needed grows by that same factor. Because the factor repeats with every character, a longer password grows much harder to guess, not just a little harder. The table in the entropy section shows what this does across lengths and pools.

Nothing leaves the browser, so the password is never sent to us.

What makes a password strong: length or complexity?

Length matters most. NIST (US) calls password length a primary factor in password strength, in its SP 800-63B guidelines. A strong password generator is only as good as the length it makes, so set a long one.

Complexity rules add much less. NIST (US) says services must not impose composition rules, such as requiring a mix of character types. It also notes that users respond predictably to those rules, for example by choosing "Password1" or "Password1!" when told to add an uppercase letter, a number and a symbol.

The UK NCSC (GB) agrees. It says complexity requirements provide no defense against common attacks and should not be used. Swapping letters for numbers or symbols, such as the letter o for a zero, does not make a password much stronger, because criminals know these tricks as well.

What is password entropy and how many bits do you need?

Bar chart of entropy in bits for passwords from the 62 letters and digits pool: 8 characters 47.6 bits, 12 characters 71.5 bits, 16 characters 95.3 bits, 20 characters 119.1 bits.
Entropy by length, letters and digits

Entropy measures how hard a random password is to guess, in bits. This tool calculates it as length × log2(pool size). Each extra bit doubles the number of guesses needed.

The sources behind this guide do not set a bit target. Compare the rows below and choose a length and character set that suit how the password will be used.

LengthPoolEntropy (bits)Time to guess
826 lowercase37.610 seconds
852 lowercase and uppercase45.645 minutes
862 letters and digits47.63 hours
1226 lowercase56.455 days
1252 lowercase and uppercase68.4619 years
1262 letters and digits71.55,112 years
1626 lowercase75.269,100 years
1652 lowercase and uppercase91.24.5 billion years
1662 letters and digits95.375.5 billion years
2026 lowercase94.031.6 billion years
2052 lowercase and uppercase114.03.3 × 10^16 years
2062 letters and digits119.11.1 × 10^18 years

Time to guess is half the number of possible passwords, divided by 10 billion guesses a second. Entropy figures in the table are rounded. The table uses only letters and digits. Symbols would enlarge the pool and raise every figure, but they are left out so each figure follows the formula exactly.

The table shows what a few extra characters can do in the same letters-and-digits pool: a time measured in hours can become a time measured in thousands of years.

Within each length, the rows show what a bigger character set adds. Between lengths, the figures grow much faster, so length is usually the setting that matters most.

How strong is my password, and how long would it take to crack?

Paste the password into this password strength checker to see how strong it is. Its strength starts from its entropy, then drops for common passwords, for repeats and for passwords made only of digits. The checker can only judge the password you paste, so treat its result as an estimate, not a guarantee.

Use the checker on any password you are not sure about, including older ones you have used on several sites. The check runs in your browser, so the password you paste is not sent anywhere.

To estimate how long a random password would take to crack, use the time to guess from the table above.

Is a passphrase better than a random password?

Often, yes, for a password you have to remember. The UK NCSC (GB) suggests combining three random words, for example applenemobiro. It says this is strong enough to keep criminals out but easy to remember.

Pick the words at random rather than choosing words you like. The same idea works for any password you must type from memory, such as the one that unlocks your password manager.

A password stored in a password manager does not need to be memorized. A long random password from this tool suits that case.

Which settings should you choose for different uses?

Choose settings by how the password will be stored and typed, not by a single rule for every case. The settings that suit one use may not suit another.

For a password kept in a password manager, memory is not the limit, so a long random password with every character set chosen suits this case. NIST (US) says services should permit a maximum password length of at least 64 characters, so the tool's top setting of 64 characters is one that NIST's advice allows.

A password you must type from memory, such as the one that unlocks your password manager, should be easy to remember. For that case, the UK NCSC (GB) suggests three random words, as explained in the passphrase section above.

The sources behind this guide do not cover passwords shared with a team, so this guide gives no rule for them. The separate-password rule still applies to your own accounts: email needs a password of its own, as the reuse section explains.

Turn on avoid look-alike characters when a password will be read aloud or typed from paper. Characters such as the letter o and zero are easy to mix up in those cases. The trade-off is that leaving characters out shrinks the pool, so entropy drops a little.

Why is password reuse the real risk?

The UK NCSC (GB) says that reusing one password means cyber criminals only need that one password to get into all your accounts. One stolen password opens every account that shares it, however strong it is.

Email needs its own password. The NCSC (GB) warns that someone in your email account could reset all your other account passwords and get access to your other online accounts. The generator above can make a separate password for each account.

Do you need a password manager and two-step verification?

Both NIST (US) and the UK NCSC (GB) support password managers. NIST says the systems that check passwords must allow password managers and autofill. The NCSC recommends them for secure storage wherever appropriate, while noting they are not impregnable and are an attractive target for attackers.

The NCSC also says writing a password down is fine, provided you keep it somewhere safe.

Two-step verification adds a second check when you sign in. The NCSC calls turning it on one of the most effective ways to protect online accounts. In its words, "Even if your passwords are hard to guess, that doesn't make them any harder to steal."

What do NIST and the UK NCSC advise?

NIST (US) and the UK NCSC (GB) agree on several points but differ on length. NIST requires at least 15 characters for a password used alone, while the NCSC suggests three random words.

TopicNIST SP 800-63B (US)UK NCSC (GB)
Password used aloneAt least 15 charactersThree random words
Shorter passwordsOnly with multi-factor, and at least 8 charactersNot covered in our sources
Composition rulesMust not impose themShould not be used
Periodic changesMust not require themRegular changes harm security
When to changeWhen there is evidence of compromiseOnly on suspicion of compromise
Password managersMust allow them and autofillRecommended for secure storage
BlocklistCheck new passwords against known compromised onesNot covered in our sources
Maximum lengthShould allow at least 64 charactersNot covered in our sources

Where our sources say nothing about a point, this guide gives no answer for that country.

More guides in Password Managers.

Frequently asked questions

How long should a password be?
NIST (US) requires at least 15 characters when a password is the only sign-in factor, and allows shorter ones only alongside multi-factor authentication. The UK NCSC (GB) suggests three random words. This tool's length setting runs from 8 to 64 characters.
Is a passphrase better than a random password?
For a password you must remember, often yes. The UK NCSC (GB) suggests three random words, which it says are strong enough to keep criminals out but easy to remember. For passwords kept in a password manager, a long random password works well.
Is it safe to use an online password generator?
Check where the password is made. This tool makes it in your browser with the browser's cryptographically secure generator, and nothing leaves the browser. Many generators do not say whether they work this way, so look for that information before you trust one.
How often should I change my passwords?
Not on a fixed schedule. NIST (US) says services must not require periodic changes, and the UK NCSC (GB) says regular changes harm security. Change a password when you suspect it has been compromised.

Sources

  1. NIST SP 800-63B (US) requires passwords used as a single-factor authentication mechanism t (pages.nist.gov)
  2. The UK NCSC does not recommend complexity requirements for user-chosen passwords. (www.ncsc.gov.uk)
  3. The UK NCSC says a password made of three random words is strong enough to keep criminals (www.ncsc.gov.uk)
  4. The UK NCSC says reusing one password across accounts means criminals only need that one p (www.ncsc.gov.uk)
  5. The UK NCSC calls turning on 2-step verification one of the most effective ways to protect (www.ncsc.gov.uk)

More on this topic: Password Managers · All free tools