Skip to content
TabShedKitsMy desk

How Long Should a Password Be? Length, Character Types and the Strength Bar

Updated 5 min readBy

Understand entropy and the strength bar of the Password Generator, pick a length for different accounts, and handle sites with odd rules.

Password GeneratorStrong random passwords made on your device
Open Password Generator
On this page
  1. Length beats cleverness
  2. How the passwords are made
  3. The settings
  4. Picking a length
  5. Sites with strange rules
  6. Several passwords, QR code
  7. What a generator cannot protect you from
  8. A short example of the numbers
  9. Frequently asked questions

Every sign-up form wants a password, and every one has different rules: at least eight characters, one symbol, no spaces, not more than sixteen. What you actually need to know is simpler: how long a password should be, and which settings of a generator matter. This guide explains the strength bar in the Password Generator, gives lengths for different accounts, and shows what to do when a site's rules get in the way.

Length beats cleverness

A password's strength comes from how many different passwords an attacker would have to try. That number grows very fast with each extra character. The tool measures it as entropy in bits: the length multiplied by the logarithm of the number of possible characters. You do not need to do the maths; the strength bar does it, and shows a label: Weak (under 40 bits), Fair (40 to 60), Strong (60 to 80) or Very strong (80 and over).

The calculation is honest only for passwords that are truly random. Passwords people invent, such as a name with a number and an exclamation mark at the end, are far weaker than their length suggests, because people choose in predictable ways. A generated password does not have that problem: every character is chosen at random.

How the passwords are made

They come from your browser's cryptographic random generator (crypto.getRandomValues), the same source used for encryption keys, not from the ordinary random function. The selection is done in a way that avoids bias, so no character is more likely than another. Every character type you switch on appears at least once, and then the order is shuffled. The passwords are never sent anywhere or stored; only your settings are kept on your device.

The settings

SettingRangeWhat it does
Length4 to 128 characters; 16 by defaultThe strongest lever.
Uppercase (A–Z), Lowercase (a–z), Numbers (0–9), Symbols (!@#$…)Each on or offEach type widens the pool of characters. At least one must stay on.
Avoid look-alikesOn or offRemoves I, l, 1, O, 0 and o, which are easy to confuse when typed by hand.
How many1, 5, 10 or 20Makes a list you can copy at once.

Picking a length

  • 16 characters with all types is a good default for most accounts, and it is already selected when you open the page.
  • 20 or more for important accounts: e-mail, banking, the password manager itself, cloud and developer accounts. They are typed rarely or never, so length costs you nothing.
  • 12 to 14 where you must type the password often and cannot use a manager, such as a shared device. Choose all types, and avoid look-alikes if you will read it off a screen.
  • The maximum a site allows if a site caps the length. Check what the cap is; a site with a very low cap is a red flag.

A long password you cannot remember is fine, provided you keep it in a password manager and use a different one for every site. Reusing a password is a bigger danger than any single short password, because one breach exposes all your accounts.

Sites with strange rules

  • "No symbols allowed". Turn Symbols off and add length to make up for it. Extra length replaces the lost variety.
  • "Must contain a symbol". Leave Symbols on. The generator guarantees at least one of each selected type.
  • Only certain symbols are accepted. If the form rejects the password, generate a new one with Symbols off and use a longer length.
  • "Cannot start with a number". Generate again until it starts with a letter.

Several passwords, QR code

With How many set to 5, 10 or 20 you get a list and can copy each or all of them. Useful for creating test accounts or temporary passwords for several users. The QR code option shows a password as a code so that you can move it to your phone by scanning. Do this only on a screen no one else can see.

What a generator cannot protect you from

  • Phishing. A strong password typed into a fake site is stolen anyway. Check the address before you sign in.
  • Reuse. A strong password used on two sites is as weak as the weaker site.
  • Malware on your device. A keylogger reads the password however strong it is.
  • Weak storage on the site's side. If a site keeps passwords badly, a breach can expose them. If you build such a site, see how to hash passwords.

Turn on two-factor authentication where it is offered. It limits the damage if a password does leak.

A short example of the numbers

With all four character types on, the pool has roughly ninety characters, so each character adds a little over six bits. A 12-character password then has about 78 bits, 16 characters about 104 bits, and 20 characters about 130. Turn off symbols and the pool shrinks to 62, about six bits per character: 16 characters give about 95 bits. This is why the advice is to add length when a site forbids symbols. These figures describe random passwords only; they do not apply to words and patterns you choose yourself, which is why the generator is useful. Use the strength label as a guide, not as a guarantee.

Frequently asked questions

Is this generator safe?

The passwords are made in your browser with the Web Crypto random generator and are not sent or stored.

What does 80 bits mean?

The tool describes 80 bits or more as very strong against offline guessing.

Should I change passwords regularly?

Change a password when you have a reason to, such as a breach or a lost device, rather than on a calendar.

Are my settings saved?

Only on this device, in your browser.