What this calculator does
The passwords people invent share the same weaknesses: a name, a date, a place, a predictable substitution of a three for an e, and a number on the end. Attackers know all of these patterns, and automated tools work through them far faster than most people assume.
This generator produces genuinely random passwords in your browser. Set the length, choose which character types to include, and it generates several at once along with an estimate of how much randomness each one actually contains.
Nothing is transmitted. The generation uses the cryptographic random number source built into your browser, the results never leave your device, and they disappear when you close the page. Copy what you need into a password manager and close the tab.
How the calculation works
The generator builds a character pool from the types you select, then draws characters from it using the browser cryptographic random number generator rather than an ordinary random function. That distinction matters: ordinary random functions are predictable enough to be unsuitable for anything security related.
It guarantees at least one character from each selected pool, then fills the remaining length from the combined pool and shuffles the result, so the guaranteed characters are not always at the start.
Strength is measured in bits of entropy, which is the length multiplied by the base two logarithm of the pool size. Entropy describes how many guesses an attacker would need on average. Every additional bit doubles that number, which is why adding length is so much more effective than adding complexity: each extra character adds roughly six bits, while switching on symbols adds only a few bits in total.
The formula
Entropy in bits = Password length × log2(Size of the character pool)
Possible combinations = Pool size raised to the power of the length
Rough guide: under 45 bits is weak · 60 bits is reasonable · 75 bits is strong · 100 bits or more is very strong
A worked example
An eight character password using upper and lower case letters and digits draws from a pool of 62 characters. That is about 48 bits of entropy, which sounds substantial and is not. Modern hardware works through that range quickly when a password database has been stolen.
Extend the same character set to sixteen characters and entropy roughly doubles to 95 bits. Nothing about the character types changed. Only the length did, and the number of possible combinations went from around 200 trillion to a figure with 28 digits.
This is why the single most useful thing you can do to a password is make it longer. Adding symbols to an eight character password takes it from 48 to about 52 bits. Adding eight more characters takes it to 95.
Things worth knowing
Length beats complexity
Each extra character adds roughly six bits of entropy. Switching on symbols adds about four bits in total. If you have to choose one, choose a longer password every time.
Never reuse a password
When any one service is breached, attackers try the same combination everywhere else. Reuse is what turns a single breach at an unimportant site into a compromise of your email and bank. A password manager exists precisely to make this practical.
Turn on two factor authentication
A second factor protects an account even when the password is known. Enable it on email and banking first, since email is the reset path for everything else. An authenticator app is stronger than SMS codes, which can be intercepted through SIM swap fraud.
Use a password manager
Nobody can remember twenty long random passwords, and the attempt is what drives reuse. A manager stores them, fills them in and means you only have to remember one strong passphrase.
Common mistakes to avoid
- Using personal information such as names, dates of birth or phone numbers.
- Substituting characters predictably, such as an at sign for an a, which attack tools account for.
- Reusing the same password across multiple services.
- Choosing short passwords with many symbols instead of long ones.
- Storing passwords in a plain text file, a note app or a browser without a master password.
- Sharing a password over chat or email, where it remains readable indefinitely.
Frequently asked questions
How long should a password be?
Are these passwords safe to use?
Are passphrases better than random passwords?
How often should I change passwords?
What is entropy?
Related calculators
Further reading on this site
If this calculator was useful, these sections of the site go deeper into the same subject.
- Remote work and online security
- Careers in technology
- Student portal guides
- All 38 free calculators and tools
A note on accuracy. This calculator is provided for general information and planning. It performs arithmetic on the figures you supply and does not constitute financial, legal, tax, medical or academic advice. Rates, rules, fees and institutional policies change, and your own circumstances may differ from the assumptions used here. Verify anything important with the relevant institution or a qualified professional before acting on it. See our full disclaimer for more.