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.
Made in your browser with crypto.getRandomValues. Nothing is sent or saved.
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.
| Length | All 94 characters | No look-alikes (84) | Letters and digits (62) |
|---|---|---|---|
| 8 | 51.3 bits | 49.9 bits | 47.2 bits |
| 12 | 78.1 bits | 76.1 bits | 71.3 bits |
| 15NIST minimum | 98.0 bits | 95.5 bits | 89.2 bits |
| 16Default · CISA | 104.6 bits | 101.9 bits | 95.2 bits |
| 20 | 130.9 bits | 127.6 bits | 119.0 bits |
| 24 | 157.2 bits | 153.3 bits | 142.9 bits |
| 32 | 209.7 bits | 204.5 bits | 190.5 bits |
- Fair
- Strong
- Very strong

The 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.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).
Random characters
dhLB#crZj}4FVery strongPasswords a password manager fills in
Passphrase
thrill-suitable-exponent-overlaid-duplicate-undercookVery strongThe few you type or remember: computer, email, password manager
PIN
637727WeakPhones and cards that lock after a few wrong tries
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.
62234thrill61236suitable26262exponent43232overlaid24354duplicate63455undercook
- Separator+0 bits
- Capital letters+0 bits
- A random digit between words+3.3 bits each
- One more word+12.9 bits
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.
- 1
crypto.getRandomValuesgives a random 32-bit number - 2Below 4,294,967,254 (the largest multiple of 94)? Keep it; otherwise draw again
- 3The remainder after dividing by 94 picks the character
- 4Repeat for each character; redraw the whole password if a required type is missing
Each of the 94 characters: exactly 1 chance in 94
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).
16: our default · 68 sitesNIST: accept at least 64
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.
The same email and password, tried elsewhere
Reused
- EmailOpened
- BankOpened
- ShoppingOpened
- SocialOpened
Unique
- EmailStill locked
- BankStill locked
- ShoppingStill locked
- SocialStill locked
Password generator: questions and answers
Is this password generator free, and are the passwords saved?
Is a 12-character password strong enough?
Can I generate passwords in bulk?
Can I make a password based on words or my name?
How do I make a memorable password?
Should I add numbers or symbols to a passphrase?
What does avoiding look-alike characters cost?
How long should a PIN be?
How often should I change my passwords?
What does pwgen -s 40 1 do?
-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?
Does every password include each character type I select?
Missing something?Suggest a feature or a new tool
Related tools
TOTP Generator
2FA codes from a secret or an otpauth:// link: the current and next code, SHA-1/256/512, HOTP, computed in your browser
Htpasswd Generator
Create .htpasswd users with bcrypt, APR1 or SHA-512, check a password against a line, and get the config for Apache, nginx, Caddy and more; hashed in your browser
Bcrypt Generator
Make a bcrypt hash at any cost, check a password against one and take a hash apart in your browser, with which libraries read $2a$, $2b$ and $2y$
PGP Key Generator
Create an OpenPGP key pair in your browser: Ed25519 or RSA, a passphrase, an expiry date and a revocation certificate, with which apps accept it