Password Generator

A password generator creates long, random passwords that are practically impossible to guess. Choose a length and character types below to generate a strong password with your browser's secure random generator.

Reviewed by ToolNook editorial team Updated Sources

–

Include

What makes a password strong?

A strong password is one an attacker cannot guess or work out by trying combinations. Two things matter most: length and randomness. Every extra character multiplies the number of possible passwords, and true randomness means there is no pattern, word or date for an attacker to exploit. “Summer2026!” looks complex but follows a predictable pattern that cracking tools try early; a random 16-character string does not.

The most important rule is to use a different password for every account. When one website is breached, attackers try the leaked email and password on other sites. A password manager makes unique passwords practical, because you only need to remember one master password.

How to use the password generator

  1. Choose a length. 16 characters or more is recommended for important accounts.
  2. Choose which characters to include. Tick avoid look-alikes if you will ever need to read or type the password by hand.
  3. Copy the password, or press the refresh button for a new one. Set how many to generate a batch.
  4. Save it straight into your password manager.

How strength is measured

For a truly random password, strength is measured in bits of entropy:

Entropy (bits) = Length × log₂(Number of possible characters)

With all four character types there are 87 possible characters, so each one adds about 6.4 bits, and a 16-character password has about 103 bits. The crack-time estimate assumes an attacker with powerful hardware trying 10 billion guesses a second against a stolen password database, and the time to search half of all possibilities. Above about 80 bits is out of reach for any realistic attacker.

Each password is built with crypto.getRandomValues and unbiased rejection sampling, and is guaranteed to contain at least one character from every type you selected. Nothing is sent over the network or stored.

Examples by length

CharactersLengthEntropyRating
Lowercase only838 bitsWeak
All types1064 bitsStrong
All types16103 bitsVery strong
All types24155 bitsVery strong

More worked examples

Length matters: a 12-character password using all character types has about 77 bits of entropy; at 16 characters it has about 103 bits, far beyond any realistic attack.

Common mistakes to avoid

  • Reusing passwords. One breach then unlocks every account; use a unique password for each.
  • Short complex passwords. Length adds far more strength than symbols.
  • Storing passwords in plain notes. Use a password manager. For IDs rather than secrets, use the UUID generator.

Sources and methodology

The calculations on this page follow these published standards and references. The code is covered by automated tests against known values.

Frequently asked questions

Is it safe to generate passwords online?

With this tool, yes: passwords are generated in your browser and never sent anywhere. You can even disconnect from the internet after the page loads and it will keep working.

How long should my password be?

At least 12 characters for everyday accounts and 16 or more for email, banking and your password manager's master password.

Are passphrases better than random passwords?

A passphrase of five or more random words is strong and easier to remember, which suits a master password. For everything stored in a password manager, random characters are ideal.

Why do some sites reject symbols?

Some older systems only accept certain characters. Untick symbols and increase the length to keep the same strength.

Should I change my passwords regularly?

Current guidance from security agencies is to change a password when there is a reason, such as a breach, rather than on a fixed schedule. Turn on two-factor authentication wherever you can.