Password Generator

Generate strong, cryptographically random passwords. Everything happens in your browser - no password ever leaves your device.

What makes a password strong

A strong password is one that cannot be guessed, and guessing is a numbers game. Strength comes from two things only: how many characters there are, and how unpredictable each one is. Everything else - substituting 3 for E, adding an exclamation mark at the end - is decoration that attackers accounted for decades ago.

This generator uses your browser's cryptographically secure random number source, the same class of generator used for encryption keys. The result is genuinely unpredictable rather than merely random-looking.

Key takeaways

  • Length matters more than complexity - every extra character multiplies the search space.
  • Uniqueness matters most of all: never reuse a password across sites.
  • Use a password manager; nobody can remember dozens of strong unique passwords.
  • Turn on two-factor authentication wherever it is offered.
  • Forced periodic password changes are no longer recommended practice.

Password entropy explained

Entropy measures unpredictability in bits. Each bit doubles the number of possibilities an attacker must work through.

Entropy (bits) = length × log₂(character set size)
Character setSizeBits per character16-character total
Digits only103.3253 bits
Lowercase only264.7075 bits
Upper + lower525.7091 bits
Upper + lower + digits625.9595 bits
All four sets (this generator, 28 symbols)906.49104 bits

Anything above about 75 bits is beyond brute-force reach with current technology. Above 100 bits is comfortably future-proof.

Length beats complexity. A 20-character lowercase-only password has about 94 bits of entropy. A 10-character password using every symbol on the keyboard has about 66. The simpler, longer one is roughly 370 million times harder to crack - and considerably easier to type.

How long does cracking actually take?

Average time for an offline attack at 10 billion guesses per second (the same assumption as our password strength checker), using this generator's 90-character set:

PasswordEntropyAverage time to crack
password123Effectively 0Instant - it is in every wordlist
Tr0ub4dor&3~28 bits (xkcd's estimate)Under a second
8 random chars, all four sets~52 bitsAbout 2 days
12 random chars, all four sets~78 bitsAbout 450 thousand years
16 random chars, all four sets~104 bitsTrillions of years - longer than the universe has existed
4 random dictionary words~52 bitsAbout 2 days
6 random dictionary words~78 bitsAbout 350 thousand years

These assume the attacker has stolen a password database and is attacking it offline. Against a live login form with rate limiting, even weak passwords take far longer - but you should assume the database will eventually leak.

Why "Tr0ub4dor&3" is weak. Character substitution is the first thing every cracking tool tries. Replacing o with 0 and a with 4 adds almost nothing to the search space, because the attacker's software applies those same substitutions to every dictionary word automatically.

Passphrases

A passphrase is several random words strung together - the approach popularized by the XKCD "correct horse battery staple" comic. The critical word is random: words picked by a person are not random, because human word choice is highly predictable.

  • Four random words from a 7,776-word list gives about 52 bits.
  • Five words gives about 65 bits.
  • Six words gives about 78 bits - appropriate for a master password.
  • Seven words gives about 90 bits, which is genuinely excessive for most uses.

Passphrases are far easier to type on a phone or a TV remote, which makes them the right choice for a password manager master password or a device unlock code.

Rules worth following

  1. Use a different password everywhere. This is the single most important rule. One breach then compromises one account rather than all of them.
  2. Use a password manager. It is the only practical way to have unique strong passwords for hundreds of accounts.
  3. Make the master password a long passphrase - six random words, memorized, written nowhere.
  4. Enable two-factor authentication, preferably with an authenticator app or a hardware key rather than SMS.
  5. Change a password only when there is a reason - a breach, a suspicion, a shared device. Routine expiry just produces predictable variations.
  6. Never enter passwords on a link from an email. Navigate to the site yourself.
Forced password expiry is obsolete advice. NIST and the UK NCSC both now recommend against routine forced changes, because in practice people respond by making minimal predictable edits - Password1 becomes Password2. Change on evidence of compromise, not on a calendar.

Storing passwords in an application

If you are building something that stores passwords:

  • Never store them in plain text, and never store them reversibly encrypted.
  • Use a purpose-built password hash - Argon2id, scrypt or bcrypt. These are deliberately slow and memory-hard.
  • Never use MD5, SHA-1 or plain SHA-256 for passwords. They are designed to be fast, which is exactly wrong here.
  • Salt every password uniquely. Modern password hashing functions do this for you.
  • Enforce a minimum length, not composition rules. Requiring a symbol produces "Password1!" across your entire user base.
  • Check against known breached password lists rather than inventing arbitrary rules.
Everything runs in your browser. This tool is implemented entirely in client-side JavaScript. Nothing you enter is transmitted to a server, logged or stored, which matters a great deal for anything security-related. You can verify this yourself by opening your browser's network tab and watching it stay empty while you work.

Frequently Asked Questions

How long should a password be?

At least 16 characters for important accounts, and 12 as an absolute minimum elsewhere. Length contributes more to strength than complexity - a 20-character lowercase password is far stronger than a 10-character one using every symbol available.

Are the generated passwords really random?

Yes. This generator uses the browser's cryptographically secure random source, the same class of generator used for encryption keys, rather than the ordinary pseudo-random function. The output is genuinely unpredictable.

Is my generated password sent anywhere?

No. Generation happens entirely in your browser and nothing is transmitted, logged or stored. You can confirm this by opening your browser's network tab and watching it stay empty while you generate passwords.

What is password entropy?

A measure of unpredictability in bits, calculated as length multiplied by the base-two logarithm of the character set size. Each additional bit doubles the work an attacker must do. Above roughly 75 bits a password is beyond practical brute-force reach.

Are passphrases better than random passwords?

They offer comparable security at a given entropy level and are much easier to type and remember, which makes them ideal for a password manager master password. The words must be chosen randomly, though - words you pick yourself are highly predictable.

Should I change my passwords regularly?

No, not on a schedule. Both NIST and the UK NCSC now advise against routine forced expiry, because people respond by making minimal predictable changes. Change a password when there is evidence of compromise or you suspect exposure.

Why is a password like Tr0ub4dor&3 considered weak?

Because character substitution is the first transformation every cracking tool applies. Replacing o with 0 and a with 4 barely expands the search space, since the attacker's software tries those substitutions against every dictionary word automatically.

Is it safe to use a password manager?

Yes, and it is far safer than the alternative. Reusing passwords across sites is the single largest cause of account compromise, and no one can remember hundreds of unique strong passwords. Protect the manager with a long passphrase and two-factor authentication.

What should I do if a site limits my password length?

Use the maximum they allow and make sure it is unique to that site, then enable two-factor authentication if available. A low maximum length often indicates the site is storing passwords badly, so assume that account could be compromised and never reuse the password elsewhere.

Related Calculators