How Long Should a Password Be? Entropy, Length and Symbols Explained

See why password length beats complexity, how to estimate password strength in bits, and how to create and store random passwords the safe way.

Updated September 29, 2026 6 min read

Use the free Password GeneratorGenerate strong, random and secure passwords

Every sign-up form seems to have its own idea of a good password: at least eight characters, one capital letter, one number, one symbol, but not that symbol. Following those rules often produces something like Summer2026!, which ticks every box and is still one of the first things an attacker tries. The rules measure the wrong thing.

This guide explains what really makes a password hard to guess, how to put a rough number on it, and why length matters more than clever substitutions. You will also see how to generate a genuinely random password, what to do when a website rejects it, and how to store dozens of them without memorising any.

What "strong" actually means

Attackers rarely guess passwords by typing them into a login page. More often, a website's database leaks and they test guesses offline against the stored password hashes, as fast as their hardware allows. They start with leaked passwords, dictionary words, names, dates and common patterns such as a capital first letter and ! at the end. A password is strong only if it is not in any of those lists and would take an impractical number of guesses to hit by brute force.

A password created by a person almost always contains patterns. A password created by a secure random generator contains none, so its strength can be calculated precisely.

Measuring strength in bits of entropy

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

entropy (bits) = length × log2(size of character set)

Each extra bit doubles the number of guesses needed. The character set depends on which types you allow. Our generator's sets are 26 uppercase letters, 26 lowercase letters, 10 digits and 26 symbols, so 88 characters when everything is switched on.

Password type Character set Bits per character Total bits
6-digit PIN 10 3.3 about 20
8 lowercase letters 26 4.7 about 38
8 characters, all types 88 6.5 about 52
12 characters, all types 88 6.5 about 78
16 letters and digits 62 6.0 about 95
16 characters, all types 88 6.5 about 103
20 characters, all types 88 6.5 about 129

Two things stand out. First, turning symbols on adds only about half a bit per character compared with letters and digits. Second, adding four characters to a password adds roughly 24 to 26 bits, which multiplies the work for an attacker by tens of millions. That is why length is the lever that matters most.

These numbers only apply to random passwords. Password123! is 12 characters long, but because it follows a predictable pattern it is nowhere near 78 bits in practice.

How much is enough?

For accounts protected by a modern service with rate limiting and two-factor authentication, 12 random characters is already very strong. For the accounts that unlock everything else (your main email, your password manager's master password, your bank), 16 or more random characters is a comfortable margin. There is little downside to going longer when a password manager fills it in for you.

Generate a random password in your browser

The Password Generator creates passwords with your browser's cryptographic random source and never sends them anywhere.

  1. Open the Password Generator.
  2. Drag the Length slider. It runs from 4 to 64 characters and starts at 16.
  3. Switch Uppercase (A-Z), Lowercase (a-z), Numbers (0-9) and Symbols (!@#$) on or off to match the site's rules. At least one must stay on.
  4. Click Generate Password. A coloured bar labels the result Weak (under 8), Fair (8 to 11), Good (12 to 15) or Strong (16 and up), based on length.
  5. Click the copy icon and paste the password straight into the sign-up form and your password manager.

Characters are chosen with crypto.getRandomValues and rejection sampling, which means every allowed character has exactly the same chance of appearing. That matters because a simple "random number modulo 88" approach would make some characters slightly more likely than others.

Other ways to create strong passwords

  • Your password manager. Browser-built-in managers and standalone apps can suggest a random password at sign-up and save it at the same time. If you already use one, this is the most convenient option, because the password never passes through your clipboard.
  • Passphrases. Several random words, such as lantern-copper-orbit-meadow-fiscal, are easier to type on a TV remote or read aloud. Five words drawn at random from a list of 7,776 give about 65 bits; six give about 78. Try the Passphrase Generator when you need something you will type by hand, such as a master password.
  • Command line. On macOS and Linux, openssl rand -base64 24 prints 24 random bytes as 32 characters of text. It is quick for administrators, though the output always uses the Base64 character set.

Whatever method you use, the important part is that a machine picks the characters, not you.

Tips and common problems

A website rejects the password

Some sites cap length or refuse certain symbols. Turn Symbols off, or lower the length to the site's maximum, and generate again. A 16-character password with only letters and digits still has about 95 bits.

A site demands "at least one symbol"

With several types switched on, each character is drawn from the combined set, so a short password can occasionally come out without a digit or symbol. If a form complains, just click Generate Password again.

Don't memorise, store

Random passwords are meant to be saved in a password manager, not remembered. Memorise only a small number: your device PIN, your manager's master password and perhaps your main email password. Write any recovery codes on paper and keep them somewhere safe.

Length is not the only protection

A long password does not help if you reuse it or type it into a phishing page. Use a unique password everywhere, turn on two-factor authentication where offered (a TOTP Generator shows how authenticator codes work), and check existing passwords with the Password Strength Checker. If you want to know how websites should store your password once you've sent it, read how bcrypt password hashing works.

Frequently asked questions

Is an 8-character password enough?

Rarely. Even a fully random 8-character password has only about 52 bits of entropy, and human-chosen ones have far fewer. Use at least 12 random characters, and 16 or more for important accounts.

Do symbols make a password much stronger?

A little. Adding symbols to letters and digits raises the strength by about half a bit per character. Adding a few more characters of length does much more.

Are online password generators safe?

A generator that runs in your browser and uses cryptographic randomness is safe, because the password is never transmitted. Avoid tools that generate passwords on a server or ask you to sign in.

Should I change my passwords regularly?

Change a password when there is a reason, such as a breach notice or a shared device. Forced periodic changes tend to produce weaker, predictable variations of the old password.

Is a passphrase better than a random password?

Not stronger per character, but easier to type and remember. A passphrase of five or six random words is a good choice for a master password, while random characters suit everything a password manager fills in for you.

Try it now: Password Generator

Loading tool…