Strong Password Generator

Generate random passwords from 8 to 64 characters, choose which character sets to use, and see an entropy estimate for each. It uses your browser's secure random source, so it is free, instant and the password stays on your device.

Strong Password GeneratorPrivate · runs on your device
Your password will appear here

How to use the strong password generator

Nothing is generated until you press the button, so you can set everything up first.

  1. Drag the Length slider, which runs from 8 to 64 and starts at 16.
  2. Choose the character sets: Uppercase A-Z, Lowercase a-z, Numbers 0-9 and Symbols !@#$. All four are on by default, and at least one must stay on.
  3. Tick Exclude look-alikes (0 O l 1 I) if you will read the password aloud or copy it from paper.
  4. Set How many, from 1 to 20. Several passwords are listed one per line.
  5. Click Generate password, then use Copy or Download.

A meter and a note under the result show the estimated entropy and a one-word rating.

How the passwords are made and what the number means

Randomness comes from crypto.getRandomValues, the secure generator built into modern browsers, rather than the predictable Math.random. Values are drawn with rejection sampling so no character is favoured. The tool takes one character from every set you ticked, fills the remaining places from all ticked sets combined, then shuffles the order with a Fisher-Yates shuffle.

The pools hold 26 uppercase letters, 26 lowercase letters, 10 digits and 27 symbols (! @ # $ % ^ & * ( ) - _ = + [ ] { } ; : , . < > ? / ~), 89 characters in all. The look-alike option removes O and I, l, and 0 and 1, leaving 84. The entropy figure is the length times log2 of the pool size:

SettingCalculationShown as
16 characters, all four sets16 x log2(89)About 104 bits, very strong
20 lowercase letters only20 x log2(26)About 94 bits, very strong
12 digits only12 x log2(10)About 40 bits, fair

The labels are: under 40 weak, 40 to 59 fair, 60 to 89 strong, 90 and above very strong. Because one character per set is placed deliberately, the true figure is marginally below the formula, which does not change the rating in practice.

To put the numbers in context, each extra character in the all-sets setting multiplies the number of possible passwords by 89, so going from 16 to 17 characters makes guessing 89 times harder. The figure only describes a password that came straight from the generator. If you alter it by hand, or reuse it, the number no longer applies, and a strong password typed into a fake login page is still lost. Generating several at once is fine: each one is an independent draw, so you may pick whichever you like.

The ticked sets matter more than they seem. With only Numbers ticked, a 16 character result is about 53 bits, far weaker than 16 characters from all four sets at 104 bits, even though both have the same length. If the note under the result says weak or fair for an account that matters, add length or tick more sets.

Using generated passwords sensibly

A long random password is only as safe as how you store and reuse it.

  • Use a different password for every account, so one leaked database does not open the others.
  • Prefer length over complexity. A site that rejects symbols can still accept a long password: untick Symbols and raise the length instead. You cannot edit the symbol list itself.
  • Keep passwords in a password manager rather than a note or email, and add two-factor authentication where it is offered.
  • Do not edit a generated password to make it memorable. Random strings are meant to be stored, not recalled.
  • Nothing is saved: closing the page discards the result, so copy it into your manager first.
  • Some sites cap the length or quietly cut a long password. After changing one, sign out and sign in once to confirm the whole password was accepted.
  • For something you must type on a television or games console, lowercase letters plus numbers is easier. Twenty characters from that pool of 36 is still about 103 bits.

Passwords are made on your device and are not sent anywhere, but this is general information, not a security audit of your accounts. For other identifiers, see the UUID generator and the random username generator. To see how a value is fingerprinted, the hash generator is a good companion, and the Base64 encoder converts binary-safe text.

Quick answers

Frequently asked questions

The questions people ask most, answered in plain words.

Is this password generator safe to use?

It generates passwords locally with your browser's secure random source, window.crypto.getRandomValues, and does not send the result to a server or save it. As with any web page, use a trusted device and browser, and move the password straight into a password manager.

How long should a strong password be?

Sixteen characters from all four sets is a sensible default, giving about 104 bits of entropy on this tool. For an email account or a password manager master password, 20 or more characters adds a comfortable margin. Longer is easy when a manager remembers it for you.

What does the entropy number mean?

Entropy estimates how many guesses an attacker would need, in bits, and each extra bit doubles the number. The tool calculates length times log2 of the character pool and labels under 40 bits weak, 40 to 59 fair, 60 to 89 strong, and 90 or more very strong.

Should I exclude look-alike characters?

Only if you will read the password aloud or type it from paper, such as a Wi-Fi key for guests. The option removes O, I, l, 0 and 1, shrinking the pool from 89 to 84 characters, so add a character or two of length to keep the same strength.

Can I choose which symbols are used?

No. The Symbols option uses a fixed set of 27 characters, and you can only switch it on or off. If a site rejects some symbols, untick Symbols and increase the length instead, which keeps the password strong while avoiding characters the site dislikes.