A few years ago I watched a colleague type a password into a shared screen during a demo. It was a pet's name, a capital letter at the front, a year at the end, and an exclamation mark. The room nodded approvingly. It looked strong. It felt strong. A password cracker would have guessed it in under a minute.
That gap between how strong a password feels and how strong it actually is explains most account takeovers. We judge passwords the way we judge handwriting — by how complicated they look. Attackers judge them by math, and the math is brutally simple. This article shows you that math, with real numbers, so you can stop guessing and start measuring.
The short answer: length and randomness, nothing else
A strong password is a long string drawn from a genuinely random process. That is the whole secret. Capital letters, symbols, and clever substitutions help only because they widen the pool of possible characters, and even that matters less than most people think.
The honest test is entropy, measured in bits. Each extra bit doubles the number of possible passwords, so a password with 100 bits of entropy is not twice as hard to crack as one with 50 bits. It is roughly a billion billion times harder. Length is what buys you bits fastest, and randomness is what makes those bits real.
If you remember one number from this article, make it fifteen. Current NIST guidance sets fifteen characters as the minimum for a password used on its own. Anything shorter is a compromise, even if it is full of symbols.
Why the password you invented is weaker than you think
Humans are terrible random-number generators. Given a blank field, we reach for the same handful of tricks: a dictionary word, a name, a date, a keyboard pattern like qwerty or 1qaz2wsx. We capitalize the first letter and add a symbol at the end, because every password policy trained us to do exactly that.
Attackers know this. Modern cracking tools do not start by trying every combination of characters. They start with dictionaries of leaked passwords, common names, song lyrics, and sports teams, then apply the exact transformations people use: capitalize the first letter, swap a for @, append a year or an exclamation mark.
The result is that a password like Sunset!2024 is not one guess in a vast space. It is a word from a short list, with two of the most predictable modifications applied. A tool running on ordinary hardware can burn through millions of such candidates per second. Your creativity is not the obstacle you think it is.
There is a second problem with invented passwords. We reuse them. When one site is breached, attackers try the same email and password on every other service, a technique called credential stuffing. A password that took a year to crack is irrelevant if it was also the key to your email, your bank, and your cloud storage.
The numbers: what cracking time actually looks like
Here is a table from a generator that computes entropy from the real character pool and length, assuming an offline attacker checking 100 billion guesses per second against a fast, unsalted hash. That is a deliberately pessimistic scenario, roughly one modern GPU, so anything that survives it is comfortable in practice.
16 chars, all 4 character types → 102.8 bits → ~1.4 trillion years (Excellent) 12 chars, letters + numbers only → 71.5 bits → ~511 years (Strong) 8 chars, lowercase letters only → 37.6 bits → ~1 second (Fair) 4-word passphrase → 44.0 bits → ~2 minutes (Fair) 6-digit PIN → 19.9 bits → instantly (Very weak) Read that table twice. The jump from eight lowercase characters to sixteen mixed characters is not a small improvement. It is the difference between one second and a trillion years. Length and character variety compound, and a short password is a short password no matter how random its letters feel to type.
The passphrase line surprises people. Four random words only reach 44 bits, about two minutes under this attack model. That does not make passphrases useless — a longer passphrase of five or six words climbs fast — but it shows why word count matters as much as character count. Three words is a weak password wearing a friendly costume.
Length beats complexity, every time
Take a sixteen-character password that uses symbols and compare it with the same password minus symbols. Dropping symbols takes it from 102.8 bits to about 95.3 bits. That sounds like a loss until you add two characters: eighteen letters and numbers, with no symbols at all, climbs back above where you started.
This is why NIST's current guidance prioritizes length and tells services to stop imposing character-mix rules. The rules that forced a capital, a number, and a symbol produced passwords like Password1!, which satisfy every checkbox and fail every real attack. Length is the lever that actually moves the number.
That does not mean symbols are worthless. Use them when the site allows them. But when a site rejects symbols or caps the length at twelve characters, do not weaken the password to fit the rules. Add length instead, keep every character type the site accepts, and turn on two-factor authentication for that account. The meter should stay in the Strong range before you copy anything.
Passphrase or random characters: which should you use?
It depends on whether a human has to type it. A random-character password packs the most entropy into the fewest characters, so it wins whenever length is limited or nobody types it — database credentials, API secrets, Wi-Fi passwords you share once.
A passphrase wins when you have to type or remember it. Four or five randomly chosen words, joined with hyphens, plus a digit, is far easier to type correctly than sixteen random characters, and it reaches comparable strength at five or six words. The words must be picked at random, not chosen by you. A quote, a song lyric, or a sentence about your life is guessable however long it is, because attackers try those too.
The common mistake is treating any multi-word string as a passphrase. "correct horse battery staple" became famous as an example, and then thousands of people used exactly those words. A passphrase built from words you picked is just a human password with spaces in it.
PINs are not passwords
A six-digit PIN has under 20 bits of entropy. Against an offline attack it falls instantly. That is fine, because a PIN is designed for a different threat: a device that locks out after a few wrong attempts, or a door code where guessing is slow and visible.
Never use a PIN where an attacker can try offline at scale. Your phone's unlock code is a PIN's natural home. Your email account is not. If a service offers a four-digit code as your only protection, treat that account as weakly protected and enable every second factor it offers.
Not every generator is trustworthy
Here is the part most articles skip. A password generator is only as good as its random source, and plenty of generators use a bad one. JavaScript's Math.random() is not cryptographically secure. Given enough observed output, its results can be predicted, which means a password it produced can be reconstructed.
A trustworthy generator uses the browser's crypto.getRandomValues(), the same cryptographically secure source browsers use for TLS keys. It should also pick characters with unbiased rejection sampling rather than a plain modulo operation, which measurably favours the first few characters of the pool. These details are invisible in the output, which is exactly why they matter.
There is a second question to ask any generator: where does the password go? If it is created on a server, it crossed a network and sat in someone else's log. A generator that runs entirely in your browser, with nothing sent anywhere, removes that risk completely. Closing the tab is enough to make the password gone for good.
That is why I use a free password generator that runs entirely client-side. It draws every character with crypto.getRandomValues(), shows a live entropy score and estimated crack time for whatever you generate, and offers random passwords, passphrases, and PINs in one place. You set the length, toggle the character types, and copy the result straight into your password manager.
How I actually generate passwords now
My routine is boring, which is the point. For a new account, I open the generator, leave the defaults at sixteen characters with all four character types, check the meter reads Excellent, and copy it into my password manager. The manager remembers it, so I never type it.
For the handful of passwords I must type myself — my password manager's master password and my disk encryption passphrase — I use a five-word passphrase with a digit added. It is long enough to be strong and short enough to type without looking at a cheat sheet.
For temporary passwords, like onboarding a new team member or resetting a locked-out colleague, I generate a batch of up to fifty at once, switch on the option that excludes ambiguous characters like I, l, 1, O, and 0, and send each one through a different channel from the username. Temporary passwords should force a change at first login, and that setting lives in your own system, not in the generator.
For sites with strict rules — no symbols, a twelve-character cap — I set the length to the site's maximum, keep every type it accepts, and leave the guarantee option on so every result contains at least one of each selected type. If the meter drops below Strong, that account gets two-factor authentication before anything else.
What happens after you generate it
Generating a strong password is step one of three. Step two is storing it properly. Save it straight into a password manager rather than pasting it into email, chat, or a support ticket. Memorise only the few you have to type yourself and let the manager handle everything else.
Step three is never reusing it. One breach should never unlock your other accounts. Use a different password for every service, so credential stuffing has nowhere to go. That is only realistic with a password manager, which is why the manager and the generator belong together. One creates randomness, the other remembers it.
Finally, pair the password with two-factor authentication wherever it is offered. A strong password stops guessing, but it does not stop phishing. A second factor protects the account even if the password is stolen, and it costs you a few seconds at login. No password, however long, replaces that.
Frequently asked questions
How long should a password be? At least fifteen characters for anything important, and sixteen or more is a sensible default. Each extra random character multiplies the number of possible passwords, and length matters more than adding symbols.
Is a passphrase better than a random password? A passphrase of five or six random words is easier to type and remember, and reaches similar strength. A random-character password wins when length is capped, because it packs more entropy per character. Both must be randomly generated, not invented.
Can a password generator see the passwords it creates? A client-side generator cannot, because nothing leaves your browser. A server-side generator could, in principle, log everything. If the tool does not say plainly that generation happens entirely in your browser, assume it does not.
Do I need to change my passwords regularly? No. Current guidance is to change a password when the service reports a breach, not on a fixed schedule. Forced rotation pushes people toward weaker, predictable passwords.
What if a site rejects my generated password? Turn off the character types it rejects and add length to compensate. If it caps the length, use the maximum allowed and every type it accepts, then enable two-factor authentication on that account.
Further reading
- NIST's password guidelines, which prioritize length over complexity rules: NIST SP 800-63B
- How credential stuffing works, and why reuse is the real risk: OWASP — Credential Stuffing
- The Web Crypto API's secure random source, and why
Math.random()is not enough: MDN — crypto.getRandomValues()
The next time a site asks you to create a password, do not invent one and do not trust how it looks. Measure it. Sixteen random characters, generated properly and stored in a manager, is a password you will never have to think about again — and that is exactly what a good password should be.
