How to create a strong password
By M Alamgir Saeed · Updated
For years we were told to mix capitals, numbers and symbols and change our passwords every few months. Security guidance has changed: length matters far more than odd characters, and forced changes often make passwords weaker. Here is what current advice from the US National Institute of Standards and Technology (NIST) says, in plain English.
Length beats complexity
Every extra character multiplies the number of guesses an attacker needs. That is why NIST's digital identity guidelines (SP 800-63B) now say that a password used on its own, without a second factor, should be at least 15 characters long, and that websites should allow passwords of at least 64 characters.
Complexity rules such as "one capital, one number, one symbol" are no longer required by that guidance. They tend to produce predictable patterns, like a capital at the start and "1!" at the end, which attackers already try first.
Use a passphrase or a generated password
There are two good ways to get a long password. The first is a passphrase: four or more random, unrelated words, such as "copper lantern meadow orbit". It is long and surprisingly easy to remember. Pick the words at random rather than using a quote, a song lyric or a phrase about yourself.
The second is a random password from a generator, which is ideal when a password manager remembers it for you. The Password Generator on this site creates passwords with your browser's cryptographic random number generator, and nothing is sent or stored.
How to generate one, step by step
- Open the Password Generator. A 16-character password using all four character types is ready as soon as the page loads.
- Set the length with the slider or type a number into the box next to it. Any length from 4 to 128 characters works; choose at least 15 for an important account.
- Tick the character types you want: Uppercase (A-Z), Lowercase (a-z), Numbers (0-9) and Symbols. Tick "Exclude similar (l, 1, O, 0)" if you will ever need to read the password aloud or type it from paper.
- Watch the strength bar and the bits of entropy update. Click New or Generate password for a different one.
- Click Copy and paste it straight into the website and your password manager. Do not keep it in a plain text file or an email to yourself.
How the generator works
Each character is picked with crypto.getRandomValues, the browser's cryptographically secure random number source, rather than the predictable Math.random. The generator uses a method called rejection sampling so that every character in the pool is equally likely, then guarantees at least one character from each type you ticked and shuffles the result, so the guaranteed characters are not always at the start.
Everything happens on your device. The password is not sent to our server, logged or saved, and a new one is made every time you change a setting.
How much strength is enough?
Password strength is measured in bits of entropy. Each extra bit doubles the number of guesses needed. For a randomly generated password, the figure is the length multiplied by log2 of the number of possible characters. Our Password Generator shows the figure as you change the settings: at its default of 16 characters using all four character types, it showed 104 bits when we tested it.
The four character sets together give 89 possible characters (26 capitals, 26 lower-case letters, 10 digits and 27 symbols), and each one adds about 6.5 bits. Lower-case letters alone give 26 characters, about 4.7 bits each. The generator labels results from Very weak (under 40 bits) through Weak, Good and Strong to Excellent (100 bits or more).
That is far beyond what guessing can reach, as long as the site stores passwords properly. For a password you must type by hand, such as your computer login, a long passphrase of several random words is easier and can be just as strong.
| Settings | Bits of entropy | Label in the generator |
|---|---|---|
| 8 characters, all four types | 52 | Weak |
| 12 characters, all four types | 78 | Good |
| 16 characters, numbers only | 53 | Weak |
| 16 characters, lower-case only | 75 | Good |
| 20 characters, lower-case only | 94 | Strong |
| 16 characters, all four types | 104 | Excellent |
Why a long lower-case password can beat a short complex one
The table shows the point of the length-first advice. Twenty random lower-case letters (94 bits) are stronger than twelve characters mixing capitals, numbers and symbols (78 bits), and much easier to type on a phone. If a website refuses symbols, untick Symbols and add a few characters instead: 16 characters of letters and numbers still give about 95 bits.
The same maths explains passphrases. If each word is picked at random from a list of 7,776 words, the size of the well-known Diceware list, every word adds about 12.9 bits. Five random words give about 65 bits and six give about 78 bits. The words must be chosen at random, for example with dice or a generator; words you pick yourself are far more predictable.
Entropy only applies to random passwords
A password like "Sunshine2025!" has 12 characters from all four sets, but it is not worth 78 bits, because it was not chosen at random. It is a dictionary word, a year and a symbol, which is exactly the pattern guessing tools try early. The entropy figure in the generator is accurate because the generator picks every character at random. Do not use it to judge a password you made up.
Never reuse a password
Reuse is the biggest real-world risk. When one website is breached, attackers try the leaked email and password on email, banking and shopping sites. A unique password for every account stops one breach from spreading. NIST also advises services to check new passwords against lists of passwords known to be compromised.
Change passwords when there is a reason, not on a schedule
The same guidance says services should not force people to change passwords periodically. Forced changes lead to small, guessable edits such as "Summer2025" becoming "Autumn2025". Change a password when there is evidence it may be compromised, for example after a breach notice, if you shared it, or if you typed it on a device you do not trust.
What attackers actually do
Most accounts are not lost to clever maths. Attackers try passwords from earlier data breaches on other sites, which is why reuse is so dangerous, and they trick people into typing passwords into fake pages. A strong password protects against neither if you reuse it or hand it over.
That is why the most useful steps are a unique password for each account, a password manager to remember them, and two-step sign-in on your email and bank. Your email matters most, because it can reset everything else.
Common mistakes
- Making one strong password and using it everywhere.
- Building passwords from names, birthdays, pets or teams, which are easy to find online.
- Swapping letters for look-alike symbols, such as @ for a or 0 for o; guessing tools already try these.
- Adding a number to the end when forced to change a password.
- Writing passwords in a note on your phone or an unprotected spreadsheet instead of a password manager.
- Sending a password in the same email as the file or account it protects.
A simple checklist
- At least 15 characters for any important account.
- A random passphrase or a generated password, never personal details.
- A different password for every account.
- A password manager to store them.
- Two-factor authentication on email, banking and social accounts.
Protecting files as well as accounts
The same rules apply to a password on a document. Protect PDF locks a PDF with a password so only the people you share it with can open it. Send the password by a different route than the file, such as a phone call or a separate message, or anyone who gets the email gets both.
A generated password works well here too, because the recipient can paste it rather than type it. If you need a random PIN or a number for something else, the Random Number Generator picks numbers in a range you set.
Try the free Password Generator
Frequently asked questions
How long should a password be?
At least 15 characters if it is the only thing protecting the account. Longer is better, and a passphrase of four or more random words reaches that easily.
Do I still need symbols and numbers?
Not according to current NIST guidance, although some websites still require them. Length and uniqueness matter much more.
Is a password generator safe to use online?
This one creates passwords in your browser with a cryptographic random number generator; nothing is sent to a server or saved.
What does "Exclude similar" do?
It leaves out characters that are easy to confuse, such as l, 1, I, O and 0. The password becomes slightly weaker per character, so add a character or two if you use it.
What is the longest password the generator makes?
128 characters. Some websites cap passwords at a shorter length, so if one is rejected, check the site's limit and generate a shorter one.
What does bits of entropy mean?
It measures how many guesses a random password could need: each extra bit doubles the number. 104 bits means 2 to the power of 104 possible passwords with those settings.