Password generator

Make a strong random password or an easy-to-type passphrase, see how many bits of entropy it has, and copy it. Everything happens on your device.

Type

8 to 128 characters. 16 or more is a good default.

Include

Your new password

Your new password

Strength:

Made in your browser with crypto.getRandomValues. Nothing is sent, saved or put in the page address.

Last updated:

How it works

The generator draws each character from the sets you select: 26 uppercase letters, 26 lowercase letters, 10 digits and 24 symbols, or fewer if you exclude the look-alikes 0, O, 1, l and I. The random numbers come from your browser's crypto.getRandomValues, never from Math.random. To avoid modulo bias it uses rejection sampling: a random 32-bit number that falls above the largest multiple of the set size is thrown away and drawn again. If the password is missing one of the selected types, the whole password is drawn again, so every valid password is equally likely.

Entropy counts how many passwords the settings can produce. For 16 characters with all four types the pool is 86 characters, and after removing the passwords that miss a type the page shows 102 bits, rated very strong. In passphrase mode each word comes from a list of 1,467 words, so five words give 52 bits and seven give 73 bits.

A good password is long, random and used for only one account. People are bad at being random: we pick names, dates and keyboard patterns, and attackers try those first. This generator lets the computer do the random part. You choose the length and the kinds of characters, and it gives you a password along with an honest measure of how hard it is to guess.

What makes a password strong

The U.S. Cybersecurity and Infrastructure Security Agency sums it up in three rules: make every password long, random and unique, and keep them in a password manager. CISA suggests at least 16 characters, or a passphrase of four to seven unrelated words.

The NIST digital identity guidelines, SP 800-63B, set the rules websites should follow. Sites should require at least 15 characters when a password is the only factor, and at least 8 when it is combined with another factor such as a code on your phone. They should accept at least 64 characters, allow paste and password managers, and check new passwords against lists of breached and common ones. NIST also tells sites not to force a mix of character types or periodic changes. Those rules made people write predictable passwords like Summer2026! and change them to Summer2027!.

So why does this generator include uppercase, lowercase, numbers and symbols at all? Because many sites still demand them, and because a random mix packs more possibilities into each character. What matters most is that the password is random and long.

How the generator stays random

Every character comes from crypto.getRandomValues, the cryptographically secure random source built into modern browsers. The page never uses Math.random, which is fine for games but not designed to be unpredictable.

There is a subtle trap in turning random numbers into characters. A 32-bit random number has 4,294,967,296 possible values. If you divide by 86 characters and keep the remainder, a few characters come up slightly more often than others, because 4,294,967,296 does not split evenly by 86. The generator avoids this with rejection sampling: it throws away any number at or above the largest multiple of the set size and draws again. Every character is then exactly as likely as every other.

When you select several character types, the password must include at least one of each. Instead of swapping a character in, which would make some patterns more likely, the generator draws a new password until one meets the rule.

Reading the entropy and strength

Entropy is shown in bits and rounded down. Here is what the page shows for passwords with all four character types:

LengthEntropyStrength label
8 characters50 bitsFair
12 characters76 bitsStrong
16 characters102 bitsVery strong
20 characters128 bitsVery strong

The labels follow simple bands: under 50 bits is weak, 50 to 69 fair, 70 to 99 strong, and 100 or more very strong. A weak password can still be fine for a throwaway forum login, and a fair one is acceptable for an account that also asks for a code from your phone. For email, banking and your password manager, aim for strong or very strong.

The math is honest about the rules you pick. Requiring one of each character type removes some combinations, so the page counts only the passwords that meet the rule. Excluding look-alikes shrinks the pool from 86 to 81 characters, which turns 102 bits into 101.

Passphrases

Switch to Passphrase to get random words joined by a separator, such as hyphens or spaces. The English list has 1,467 short, common words, and each word is picked at random, so each adds about 10.5 bits:

  • 5 words: 52 bits, fair.
  • 6 words: 63 bits, fair.
  • 7 words: 73 bits, strong.
  • 8 words: 84 bits, strong.

Capitalizing each word does not add entropy, because it is always done the same way. Adding a number puts one random digit at the end of one random word, which adds a few bits: six words with a number give 69 bits. Words you choose yourself, or a famous quote, are much weaker than random words, because attackers try phrases people like.

Using your new password

Copy the password and store it in a password manager before you leave the page. Use a different password for every account, so a breach at one site does not open the others. Turn on two-step verification wherever it is offered. And never share a password or a one-time code with someone who contacts you out of the blue, even if they claim to be your bank or a tech support agent.

Frequently asked questions

How long should my password be?

CISA recommends at least 16 characters, and NIST asks sites to accept at least 15 when a password is the only thing protecting an account. With all four character types, 16 characters gives 102 bits on this page. If a site limits you to fewer characters, use the maximum it allows and turn on two-step verification.

Is it safe to make a password on a website?

On this page, yes: the password is created by your own browser with its cryptographic random generator and stays on your screen. It is not sent to a server, saved, or written into the page address. Once you close or refresh the page it is gone, so save it in your password manager first.

What does entropy in bits mean?

It is the number of guesses an attacker would need in the worst case, written as a power of two. Each extra bit doubles the work. 50 bits is about a quadrillion possibilities; 100 bits is far beyond what any computer can try. Entropy only holds for passwords made at random, like these, not for ones you make up.

Password or passphrase: which is better?

Both are strong when they are long enough. A random password packs more bits into fewer characters, which suits a password manager. A passphrase of seven or more random words is easier to type and remember, which suits the one password you must memorize, such as the one for the password manager itself.

Why exclude look-alike characters?

The digits 0 and 1 and the letters O, l and I are easy to confuse when you read a password aloud or type it from a screen or paper. Excluding them costs very little: a 16-character password goes from 102 to 101 bits.

Some sites reject symbols. What should I do?

Uncheck Symbols and add a few characters of length to make up for it. For example, 12 characters of lowercase letters and numbers give 62 bits, while 16 characters with all four types give 102. Length does more for strength than variety.