Strong Password Generator Guide: Length, Entropy and Safe Habits

Why length beats symbols, how long each password would survive a brute-force attack, and how to pair a generator with a password manager and two-factor authentication.

Strong Password Generator Guide: Length, Entropy and Safe Habits
Share this article:

Most stolen accounts are not "hacked" in the movie sense. Someone takes a password leaked from one site and tries it on others, or runs a list of common passwords against a login page. A long, random password that is unique to each account defeats both attacks, and a generator is the easiest way to get one.

This guide explains what actually makes a password strong, with numbers you can check, how to choose generator settings, and the habits that matter as much as the password itself.

How passwords get cracked

Credential stuffing. When a site is breached, its email and password pairs are sold and tried automatically on email, banking and shopping sites. If you reused the password, the second account falls without any cracking at all.

Dictionary and pattern attacks. Cracking tools start with billions of real leaked passwords, then apply the substitutions people think are clever: capital first letter, a year on the end, @ for a, 0 for o. "Summer2024!" looks complex and falls in seconds because thousands of people chose the same pattern.

Brute force. When a site's password database leaks, attackers can test guesses offline as fast as their hardware allows. How fast depends on how the site stored the passwords. A fast, unsalted hash on a GPU rig allows billions to trillions of guesses per second; a slow algorithm such as bcrypt or Argon2 cuts that dramatically. You cannot know which one a site uses, so assume the fast case.

Only the third attack depends on password strength in the mathematical sense. The first two depend on uniqueness and randomness, which is why "use a different random password everywhere" beats any clever rule you could invent.

What makes a password strong

Strength is measured in bits of entropy: how many guesses a brute-force attack needs. For a randomly generated password it is simple to calculate: length × log2(size of the character pool). Every extra bit doubles the work.

Three properties matter, in this order:

  • Randomness. Entropy figures only apply when every character is chosen at random. A human-chosen password of the same length is far weaker because people follow patterns.
  • Length. Each extra character multiplies the search space by the pool size.
  • Character variety. Adding symbols enlarges the pool from 62 to 88 characters, which helps, but less than you might expect.

Worked example: how long each password survives

The password generator draws from up to 88 characters: 26 uppercase, 26 lowercase, 10 digits and 26 symbols. Assume an attacker who can make a trillion (10^12) guesses per second against a leaked database and, on average, finds the password after searching half the possibilities.

PasswordEntropyAverage time to brute-force
8 lowercase letters37.6 bitsabout 0.1 seconds
8 characters, all four sets51.7 bitsabout 30 minutes
12 characters, all four sets77.5 bitsabout 3,400 years
16 characters, all four sets103.4 bitsabout 200 billion years
20 characters, lowercase and digits only103.4 bitsabout 200 billion years

Two lessons come out of this table. First, the jump from 8 to 12 characters matters far more than adding symbols. Second, 20 characters of lowercase letters and digits is as strong as 16 characters with every symbol, and much easier to type on a phone or a TV remote. If a site rejects symbols, make the password longer instead.

The arithmetic for the 16-character row: log2(88) ≈ 6.46 bits per character, so 16 × 6.46 ≈ 103.4 bits.

Choosing generator settings

The generator makes passwords from 4 to 128 characters, up to 50 at a time, using the browser's cryptographic random number generator (crypto.getRandomValues) rather than Math.random, which is not designed for security. Nothing is sent to a server or saved; the passwords disappear when you leave the page.

  • Password Length: 16 is a good default for accounts stored in a password manager. Use 20 or more for your email and password manager master accounts, since they unlock everything else.
  • Character Rules: tick all four sets unless a site rejects some. If it does, add length.
  • Exclude ambiguous: removes i, l, 1, L, o, 0 and O. Use it for a Wi-Fi password printed on a card or a code read over the phone. It costs very little: 16 characters drop from 103.4 to 101.4 bits. For guest Wi-Fi, you can skip typing altogether by putting the network and password in a QR code.
  • Number of Passwords: generate several when a site insists on at least one digit and one symbol. Each character is drawn independently, so a short password can miss a set; pick one that qualifies.

Ignore the strength label as a measurement. It is a simple checklist of length and variety; the entropy table above is the better comparison.

Random passwords vs passphrases

A passphrase is several random words, such as "copper-lantern-orbit-velvet-meadow". Five words picked at random from the standard 7,776-word Diceware list give about 64.6 bits, and six words about 77.5 bits, the same as a 12-character random password. Passphrases are easier to type and remember, which makes them a good choice for the few passwords you must memorize, like your password manager's master password. This generator makes character passwords, not word passphrases; for a passphrase, use a Diceware list or your password manager's built-in passphrase option. The words must be chosen randomly, not by you; a quote or song lyric is not a passphrase.

Store them in a password manager

Nobody can remember fifty random passwords, and you should not try. A password manager stores them encrypted behind one master password, fills them in for you, and warns you when a saved password appears in a known breach. Reputable managers encrypt your vault on your device, so the provider cannot read it even if its servers are breached.

The workflow: generate the password here, paste it into the site's sign-up or change-password form, and save it to your manager before you close the tab. Copy all of them with Copy all if you are rotating several accounts at once.

Habits that matter as much as the password

  • Turn on two-factor authentication for email, banking, social media and your password manager. An authenticator app or a hardware security key is stronger than SMS codes, which can be intercepted through SIM swapping. Passkeys, where a site offers them, remove the password from the equation entirely.
  • Never reuse a password. One breached site should cost you one account.
  • Change passwords when there is a reason, not on a calendar. Current NIST guidance tells organizations to stop forcing periodic changes, because forced rotation pushes people toward predictable patterns. Change a password immediately if the site reports a breach, your email shows up on a breach-notification service such as Have I Been Pwned, or you see a login you do not recognize.
  • Treat security questions as extra passwords. Your mother's maiden name and first school can be found online. Generate random answers and store them in your manager.
  • Watch for phishing. No password survives being typed into a fake login page. Password managers help here too: they will not autofill on a look-alike domain.

If you build login systems rather than just use them, store passwords with a slow, salted algorithm such as bcrypt or Argon2. A general-purpose hash from the hash generator (SHA-256 and friends) is right for checksums and cache keys but far too fast for password storage. For API keys and record IDs, the UUID generator or the random number generator may fit better than a password.

Generate a strong password →

Frequently asked questions

How long should a password be?

For accounts saved in a password manager, 16 random characters with all character sets is plenty. Use 20 or more for your email and password manager, or a six-word random passphrase if you need to memorize it.

Is it safe to use an online password generator?

It is when the password is generated in your browser with a cryptographic random source and never sent anywhere. This generator works that way; nothing is uploaded or stored. You can disconnect from the internet after the page loads and it still works.

Should I change my passwords every 90 days?

No, not on a schedule. Change a password when there is evidence it may be exposed, such as a breach notice or an unfamiliar login. Unique, random passwords plus two-factor authentication protect you better than rotation.

Are symbols really necessary?

Not if you add length. A 20-character password of lowercase letters and digits has the same entropy as a 16-character password with every symbol.

What if I forget my password manager's master password?

Most managers cannot recover it, by design, because they never know it. Set up the recovery options your manager offers, such as an emergency kit or a trusted contact, and keep the master password written down somewhere physically secure.