Password Generator

Make a strong random password, a passphrase of random words or a PIN, with its exact strength in bits and how long it would take to crack. This strong password generator works entirely in your browser: nothing you generate is sent anywhere.

Web Crypto randomness with no modulo bias · EFF's 7,776-word list · made in your browser, never sent or stored
Use

How long should a strong password be?

At least 15 characters when the password is the only thing protecting the account, NIST's minimum since July 2025, and at least 8 when it's one part of two-step sign-in. This generator makes 16 by default, the length CISA recommends.

Those are the rules of NIST SP 800-63B-4 and CISA. Each random character drawn from all 94 letters, digits and symbols adds 6.55 bits, and every bit doubles the guesses an attacker needs (EFF): 16 characters with every type at least once carry 104.6 bits, about 10¹² years for one graphics card even against Windows' NTLM hashes, the fastest to crack.

16 also fits most sites: among the sites with a known maximum in Apple's password-rules data, three in four accept 16 characters, and 16 is the most common cap. Leaving out look-alike characters costs 2.7 bits at that length; letters and digits only, 9.4 bits.

These numbers hold only for characters drawn at random. To see how a password you made up compares, use the password strength tester.

Strength by lengthexact bits, every selected type at least once
LengthAll 94 charactersNo look-alikes (84)Letters and digits (62)
851.3 bits49.9 bits47.2 bits
1278.1 bits76.1 bits71.3 bits
15NIST minimum98.0 bits95.5 bits89.2 bits
16Default · CISA104.6 bits101.9 bits95.2 bits
20130.9 bits127.6 bits119.0 bits
24157.2 bits153.3 bits142.9 bits
32209.7 bits204.5 bits190.5 bits
  • Fair
  • Strong
  • Very strong
Every extra bit doubles the guesses an attacker needs. The bits hold only for characters drawn at random.
Password generator: a 16-character random password coloured by type, with its strength in bits, crack time and optionsPassword generator: a 16-character random password coloured by type, with its strength in bits, crack time and optionsThe passwordColoured by character type, ready to copy, test or generate again.Its strengthThe rating, the exact bits for these settings and how long an attack would take.Three modesRandom characters, a passphrase of random words, or a PIN.The optionsLength, character types, look-alikes, custom symbols and how many to make at once.
A 16-character random password, generated as the page opens. Select a number to see what each part shows.

Random password, passphrase or PIN: which should you use?

Use random characters for any password a password manager fills in, a passphrase for the few you type or remember, and a PIN only where a phone or card locks after a few wrong tries.

At the same strength they look very different: 12 random characters and six random words both carry about 78 bits. Random characters are the shortest way to a given strength, which suits sites with a length cap; words are much easier to type on a phone or a TV, and to remember. A Wi-Fi password is a good place for a passphrase, shared with guests as a Wi-Fi QR code.

A PIN is weak by design: a 6-digit PIN is one of a million, 19.9 bits. It works only because the device stops after a few wrong guesses, which is why NIST accepts PINs, of 6 digits and 4 at the least, only to unlock a device such as a phone or a security key, with no more than 10 failed tries in a row (NIST SP 800-63B-4).

The UK's NCSC suggests three random words for passwords you have to remember, and says that random passwords from a password manager are stronger still (NCSC).

  1. Random characters

    dhLB#crZj}4F

    12 characters78.1 bits

    Very strong

    Passwords a password manager fills in

  2. Passphrase

    thrill-suitable-exponent-overlaid-duplicate-undercook

    6 words77.5 bits

    Very strong

    The few you type or remember: computer, email, password manager

  3. PIN

    637727

    6 digits19.9 bits

    Weak

    Phones and cards that lock after a few wrong tries

Twelve random characters and six random words are about equally strong. A PIN relies on the lockout.

Passphrase generator: how many random words do you need?

Six words, EFF's own advice: each word drawn at random from its list of 7,776 adds 12.9 bits, so six give 77.5 bits, about as strong as 12 random characters. CISA accepts four to seven unrelated words.

The strength comes from the draw, not from the words: EFF's long list has exactly 7,776 entries, one for every roll of five dice, so each word is one of 7,776 equally likely choices (EFF). The passphrase generator draws them with the same randomness as the passwords.

Separators and capital letters add 0 bits, because an attacker assumes the scheme. A random digit between the words adds 3.3 bits per gap, and one more word adds 12.9 bits, so a seventh word is the cheapest way to more strength.

Words you pick yourself are another matter, and so are famous examples: xkcd's "correct horse battery staple", typed as correcthorsebatterystaple, appears 4,173 times in Have I Been Pwned's breach data, and the comic's "hard" Tr0ub4dor&3 3,196 times. Never use a passphrase you've read somewhere, including the example on this page.

Five dice, one wordEFF's long list: 7,776 words
  1. 62234thrill
  2. 61236suitable
  3. 26262exponent
  4. 43232overlaid
  5. 24354duplicate
  6. 63455undercook
+12.9 bits a word6 words: 77.5 bits
NTLM, one GPU: 93 years0128
  • Separator+0 bits
  • Capital letters+0 bits
  • A random digit between words+3.3 bits each
  • One more word+12.9 bits
An example drawn for this page: never use a passphrase you've seen published.

Is it safe to use a random password generator online?

It is when the password is made on your own device and never sent, which is how this one works: your browser draws every character, and no password reaches our server, the page address or analytics.

What makes a secure password generator is where its randomness comes from. This one uses the browser's crypto.getRandomValues, the cryptographically strong generator of the Web Crypto standard (W3C), never Math.random, which isn't made for secrets.

Turning a random number into a character is the second trap. Taking the number modulo 94 makes the first few characters slightly more likely; this generator throws away the 42 leftover numbers that don't make up a full set of 94, and draws again, the "simple discard" method of NIST SP 800-90A, so every character is exactly as likely as any other.

When every selected type must appear at least once, it redraws the whole password until each one does, instead of planting one of each and shuffling. Every valid password stays equally likely, so the bits shown are exact.

Your browser
  1. 1crypto.getRandomValues gives a random 32-bit number
  2. 2Below 4,294,967,254 (the largest multiple of 94)? Keep it; otherwise draw again
  3. 3The remainder after dividing by 94 picks the character
  4. 4Repeat for each character; redraw the whole password if a required type is missing

Each of the 94 characters: exactly 1 chance in 94

Our serverNothing is sent
Only 42 of the 4,294,967,296 possible numbers are ever thrown away, so the extra draws cost nothing you'd notice.

Why does a website reject my generated password?

Because many sites still cap the length or limit the symbols. Lower the length to the site's maximum, or turn symbols off or type the ones it allows as custom symbols, and generate again.

NIST asks sites to accept at least 64 characters, every printable character and spaces, and to drop rules such as "must contain a symbol" (NIST SP 800-63B-4). Many haven't caught up.

Of the 436 sites in Apple's password-rules data, a list password managers share so that their passwords fit each site, 337 set a maximum length, 83 of them below 16, and about four in five require a digit.

Keep each type required for such sites, so the digit or symbol they demand is always there, and make the password as long as they allow: 20 letters and digits (119 bits) beat 12 characters of every type (78 bits).

Maximum password length at 337 sitesApple's password-rules data, our count, 23 October 2026

16: our default · 68 sitesNIST: accept at least 64

99 of the 436 sites in the list set no maximum. 16 is the most common cap, and 254 of the 337 accept 16 characters.

Where should you keep a generated password?

In a password manager: it keeps a different random password for every account and fills it in, so you never type or reuse one. NIST requires sites to let password managers fill in passwords, and asks them to allow pasting.

NIST cites evidence that people who use a password manager with a generator end up with stronger passwords (NIST SP 800-63B-4). Your browser's built-in manager or a separate app both work; what matters is one password per account.

Reuse is how one breach becomes many: attackers replay leaked email and password pairs on other sites, an attack called credential stuffing. In November 2025 Have I Been Pwned loaded 1.3 billion unique passwords from such lists, 625 million of them never seen before (Troy Hunt).

Change a password when it may have leaked, not on a schedule: NIST tells sites to stop forcing periodic changes. Keep passphrases for the few you type: your computer, your email and the password manager itself. Where a site offers two-factor sign-in, an authenticator app adds a six-digit code to the password. The TOTP generator shows how those codes come from the setup key, in your browser.

One leaked password, many accounts
A site is breached

The same email and password, tried elsewhere

Reused

  • EmailOpened
  • BankOpened
  • ShoppingOpened
  • SocialOpened

Unique

  • EmailStill locked
  • BankStill locked
  • ShoppingStill locked
  • SocialStill locked
Credential stuffing: attackers replay leaked pairs on other sites. With a unique password for each, the leak stays at one site.

Password generator: questions and answers

Is this password generator free, and are the passwords saved?

It's free, with no sign-up and no limit. Every password is made in your browser and never sent to us, so there is nothing to save: close the page and it's gone. Copy puts the password on your clipboard, and the page doesn't clear it, so paste it straight into the site or your password manager.

Is a 12-character password strong enough?

A random one is: 12 characters from all 94 give about 78 bits, and one graphics card would need some 15,000 years to find it, even against Windows' fast NTLM hashes. But NIST now asks for 15 characters when the password is the only factor, so use 16 for accounts without two-step sign-in. A 12-character password a person made up is far weaker.

Can I generate passwords in bulk?

Yes. The bulk password generator makes up to 100 passwords at once with the same settings, each drawn independently, so every one has the strength shown. Copy all puts them on your clipboard one per line, or download them as a .txt file. It's handy for new accounts, test users or devices; give each person or device its own.

Can I make a password based on words or my name?

From words, yes: Passphrase mode is a password generator based on words, drawn at random from EFF's list of 7,776. From your own words, name, pet or birthday, no: attackers try those first, and NIST asks sites to block passwords built from your username or the service's name. Random words you didn't choose are easy to remember and hard to guess.

How do I make a memorable password?

Choose Passphrase: this memorable password generator strings random words together. Six words from EFF's list give 77.5 bits, about as strong as 12 random characters. Picture the words as one odd scene to remember them. Memorise only the few you type, such as your computer and your password manager, and let the manager remember the rest.

Should I add numbers or symbols to a passphrase?

Only if a site demands them. A separator or capital letters add nothing, because attackers assume them. One random digit added to a six-word passphrase adds about 5.9 bits, and a random digit between every pair of words 3.3 bits each. One more word adds 12.9 bits, so for extra strength, add a word.

What does avoiding look-alike characters cost?

Very little. It leaves out characters that are easy to misread, I l 1 | O 0 o and the three quote marks, so 84 of the 94 remain. A 16-character password drops from 104.6 to 101.9 bits, less than half a character's worth, so add one character if you want it back. Turn it on for passwords you read off paper or a screen.

How long should a PIN be?

Six digits where you can choose, and four at the least: that is NIST's rule for device PINs, along with a limit of 10 wrong tries. A 6-digit PIN is one of a million, 19.9 bits, and this page rates it Weak, because it's safe only behind that lockout. Never use a PIN as a password for an online account.

How often should I change my passwords?

Only when there is a reason, such as a breach, a phishing scare or a password someone else learned. NIST tells sites not to force changes on a schedule and to require one when there is evidence of compromise. Check a password with the password strength tester: if it says Exposed, change it everywhere you use it.

What does pwgen -s 40 1 do?

It asks the command-line tool pwgen for one completely random, hard-to-memorise password of 40 characters: the length comes first, then how many. At a terminal pwgen includes at least one capital letter and one digit; -y adds at least one symbol and -B leaves out look-alikes such as l and 1. To get the same here, choose random characters, set the length to 40 and turn symbols off.

Is a generated password better than one I make up?

Yes, by a wide margin. People choose words, names, years and the same few letter swaps, and attackers try those first; NIST notes that complexity rules only push people from "password" to "Password1!". The UK's NCSC says random passwords from a password manager are stronger than both made-up complex passwords and three random words.

Does every password include each character type I select?

Yes, as long as each type is required, which it is by default. The generator redraws the whole password until every selected type appears, instead of planting one of each and shuffling, so every valid password is equally likely and the bits shown are exact. With all four types at 16 characters, about four in five first draws already qualify.

Missing something?Suggest a feature or a new tool