Everyday

Password generator

A password generator creates random passwords that are far harder to guess than ones people make up. This generator runs entirely in your browser using a cryptographically secure random source, lets you choose the length and character types, and shows the password’s strength in bits of entropy.

Runs in your browser. Nothing you type is sent to us.

Result

…

Key facts

  • Length matters most: each extra character multiplies the number of possible passwords.
  • A 16-character password from upper and lowercase letters, digits and symbols has about 103 bits of entropy.
  • Generated on your device with crypto.getRandomValues; nothing is sent to or stored on a server.
  • Use a different password for every account and keep them in a password manager.

Why use a random password?

Attackers do not guess passwords one at a time by hand. They use software that tries billions of guesses per second, starting with leaked passwords, dictionary words, names, dates and common substitutions like "P@ssw0rd". Human-made passwords follow predictable patterns. A truly random password has no pattern, so the only way to crack it is to try every possibility.

How to use the password generator

  1. Choose a length. 16 or more is a good default for important accounts.
  2. Choose which characters to include: uppercase, lowercase, digits and symbols. Optionally exclude look-alike characters such as l, 1, O and 0.
  3. Press Generate again for a new password, and copy it straight into your password manager.

How strength is measured

Entropy (bits) = length × log₂(pool size)
Character setPool sizeBits per character
Digits only103.3
Lowercase letters264.7
Upper and lowercase525.7
Letters and digits625.95
Letters, digits and symbolsabout 87about 6.4

Every extra bit doubles the number of guesses needed. 80 bits or more is considered very strong for most purposes today.

How long would it take to crack?

Average time to guess by brute force at a very fast 1 trillion guesses per second (an offline attack on a weakly hashed password):

PasswordEntropyAverage time to crack
8 lowercase letters38 bitsunder a second
8 letters and digits48 bitsabout 2 minutes
8 characters, all types52 bitsabout 27 minutes
12 letters and digits71 bitsabout 51 years
12 characters, all types77 bitsabout 3,000 years
16 characters, all types103 bitsabout 170 billion years

Online attacks against a website are far slower because of rate limits, but data breaches expose password hashes that can be attacked offline, so plan for the worst case.

Current best practice

  • Length over complexity. NIST’s digital identity guidelines (SP 800-63B) recommend long passwords and say websites should accept at least 64 characters, should not force arbitrary composition rules, and should not force regular changes unless a password is compromised. For a password used on its own, without a second factor, the latest revision sets a minimum of 15 characters.
  • Never reuse passwords. One breach then unlocks every account that shares it.
  • Use a password manager to generate, store and fill passwords.
  • Turn on two-factor authentication or passkeys wherever available.
  • Check breaches with a service such as Have I Been Pwned and change any exposed password.

Passphrases

A passphrase of 5 or 6 random dictionary words (for example from the EFF word list of 7,776 words) gives about 65 to 78 bits of entropy and is easier to type and remember. The words must be chosen randomly, not picked by you.

Privacy

Passwords are created in your browser and are never sent to us or saved. You can disconnect from the internet after the page loads and the generator still works.

Common mistakes with passwords

  • Adding a predictable pattern to a generated password, such as "!" at the end.
  • Storing passwords in plain text in notes or email.
  • Using a short password with symbols instead of a longer one.

What current guidance says about passwords

The leading US guidance is NIST Special Publication 800-63B, the *Digital Identity Guidelines* from the National Institute of Standards and Technology, revised as SP 800-63-4 in 2025. It says length matters more than complexity: services should allow passwords of at least 64 characters, require at least 8 (15 for single-factor accounts), stop forcing periodic changes unless there is evidence of compromise, and check new passwords against lists of breached ones. Bill Burr, who wrote the original 2003 NIST advice to mix symbols and change passwords often, later said he regretted it.

Entropy, shown by this calculator, measures how hard a random password is to guess: each extra bit doubles the work for an attacker. A random 16-character password from all four character sets has about 105 bits, far beyond what modern GPU cracking rigs can brute force. Random passwords are only safe if each one is unique, which is why security bodies such as the UK’s National Cyber Security Centre recommend a password manager, and why passkeys based on the FIDO Alliance standards are replacing passwords on many sites. You can check whether a password has appeared in a breach at Have I Been Pwned. For the counting maths behind entropy, use the permutation and combination calculator; for logarithms in base 2, the log calculator; and for random numbers, the random number generator.

How this calculator works

  • Characters are chosen with the browser’s cryptographically secure generator (crypto.getRandomValues), never Math.random.
  • At least one character from each set you select (uppercase, lowercase, digits, symbols) is included; ambiguous characters such as 0/O and l/1 can be excluded.
  • Entropy = length × log₂(size of the character pool), in bits.
  • Passwords are generated in your browser and are not sent or stored anywhere.

Frequently asked questions

What makes a password strong?

Length and randomness. A long password chosen at random from a large set of characters, used for only one account, is very strong.

How long should my password be?

At least 12 to 16 characters for most accounts, and 20 or more for critical ones such as your email and password manager.

Is this password generator safe?

Yes. Passwords are generated in your browser with a cryptographically secure random number generator and are never sent or stored.

Are symbols necessary in a password?

They add strength, but length adds more. A 20-character password of letters and digits beats a 10-character one with symbols.

What is password entropy?

A measure of unpredictability in bits: length × log₂(number of possible characters). Each bit doubles the guesses needed.

Should I change my passwords regularly?

Current NIST guidance says no, unless there is evidence a password has been compromised. Frequent forced changes lead to weaker passwords.

What is a passphrase?

A password made of several random words, such as "lantern-oyster-quilt-mango-fable". It is long, strong and easier to remember.

Where should I store my passwords?

In a reputable password manager, protected by a strong master password and two-factor authentication.

Sources

  1. NIST SP 800-63B, Digital Identity Guidelines: Authentication
  2. MDN Web Docs, Crypto.getRandomValues()
  3. EFF, Dice-generated passphrases

Updated November 25, 2026. Formulas checked against published sources and worked examples.

Cite this page: CalcRoster. "Password generator." calcroster.com/password-generator/. Updated November 25, 2026.

Results are estimates for general information. They are not financial, medical or legal advice. Check important decisions with a qualified professional.