Password Generator
Generate strong random passwords with your browser’s secure random source, and see exactly how strong they are: pool size, entropy in bits and how long a guessing attack would take.
How to Use
- Set the length (4–128 characters) and how many passwords you want (1–50).
- Tick the character types to use: capitals, lower case, digits and symbols. Tick Exclude ambiguous to leave out 0, O, 1, l and I when the password will be read aloud or typed from paper.
- Leave One of each type ticked if a website insists on a digit and a symbol. The entropy shown already allows for that rule.
- Press Generate. Click any password to copy it, or press Copy all.
- Check the entropy, strength and crack time in the readout, and Show Work for the arithmetic behind them.
Worked Example
A 16-character password using every type.
Pool: 26 capitals + 26 lower case + 10 digits + 26 symbols = 88 characters.
Entropy: H = 16 × log2(88) = 16 × 6.4594 = 103.35 bits.
“One of each type” rules out the 15.6% of strings that miss a type: 103.35 + log2(0.8445) = 103.35 − 0.24 = 103.11 bits.
An attacker trying 1011 guesses a second needs, on average, half of the 2103.11 possibilities: 2102.11 ÷ 1011 = 5.46 × 1019 seconds = 1.7 × 1012 years.
Compare 8 lower-case letters: 8 × log2(26) = 8 × 4.7004 = 37.60 bits. 236.60 ÷ 1011 ≈ 1 second.
The common mistake: adding symbols instead of length. 12 characters of every type give 12 × 6.459 = 77.5 bits; 16 characters of just letters and digits give 16 × log2(62) = 16 × 5.954 = 95.3 bits — 217.8, about 220,000 times harder to guess, and easier to type.
Show Work
Formulas
From Complexity Rules to Length
Measuring a password in bits comes from Claude Shannon’s 1948 theory of information: a choice among P equally likely options carries log2 P bits. In 1979 Robert Morris and Ken Thompson’s paper Password Security: A Case History showed how many Unix passwords fell to a simple dictionary search, and the advice to mix letter cases, digits and symbols grew from studies like it.
In 2003 Bill Burr of NIST wrote the guidance that became SP 800-63 Appendix A, with composition rules and regular password changes. Real users met them with predictable patterns such as Password1!. Randall Munroe’s 2011 xkcd comic “Password Strength” made the point that four random common words carry 44 bits and are easier to remember. NIST’s 2017 rewrite, SP 800-63B, dropped composition rules and forced changes in favour of length, screening against breached passwords, and password managers.
The bit counts on this page only hold for passwords picked at random by a machine. A password a person chooses has far less entropy than its length suggests, because people choose words, names and dates.
About This Tool
This tool makes random passwords with crypto.getRandomValues, the browser’s cryptographically secure random source, and rejection sampling so that every character in the pool is equally likely. When “One of each type” is on, a password that misses a type is thrown away and drawn again, which keeps the result uniform over the allowed passwords — and the entropy shown is reduced to match.
The crack time assumes an offline attack at 100 billion guesses a second, about what a rig of graphics cards manages against a fast, unsalted hash. A site that stores passwords with bcrypt or Argon2 slows attackers by many thousands of times. Passwords are made in your browser, never sent anywhere and never stored; close the page and they are gone.
Related tools: UUID Generator, Multi-Hash Generator, and Random Number Generator.
Frequently Asked Questions
How is password strength (entropy) calculated?
For a password picked at random, entropy is H = L × log2(P) bits, where L is the length and P the number of possible characters. 16 characters from the full pool of 88 give 16 × 6.459 = 103.4 bits. Every extra character adds 6.46 bits, while adding the 26 symbols to letters and digits (62 → 88) adds only 0.51 bits per character — length matters far more than symbols.
How long should a password be?
Below 60 bits is weak, 80 bits is strong for an account, and 128 bits is beyond any brute-force attack. At 100 billion guesses a second (a GPU attack on a fast, unsalted hash), 8 lower-case letters (37.6 bits) fall in about 1 second on average, 12 characters of every type (77 bits) last about 25,000 years, and 16 characters (103 bits) about 1.7 × 1012 years.
Is every character equally likely?
Yes. A common shortcut, randomByte % 88, is biased: 256 byte values do not divide evenly into 88 characters, so the first 80 characters get 3 chances in 256 and the last 8 only 2. This tool draws 32-bit values from crypto.getRandomValues and throws away the few at or above 4,294,967,248 (48,806,446 × 88), so every character has exactly the same chance.
Why does “one of each type” lower the entropy a little?
Because it rules out the passwords that happen to miss a type. For 16 characters from 88, 15.6% of all possible strings lack a digit, a symbol or a letter case, which costs 0.24 bits (103.35 → 103.11). For 8 characters, 51.6% are ruled out and the cost is 1.05 bits. The readout shows the honest, reduced figure.
Should I exclude ambiguous characters?
Only if a person has to read or type the password. Removing 0, O, 1, l and I shrinks the pool from 88 to 83, which costs log2(88/83) = 0.084 bits per character, or 1.35 bits over 16 characters — easily made up by adding one character. For passwords that go straight into a password manager, leave it off.
How do I use the Password Generator?
Just pick your options. The answer shows up right away — there is no button to press. Change anything and it updates by itself.
Is it free? Does it work without internet?
Yes to both. It is free with no sign-up, and once the page has loaded it keeps working even with no internet.
Where does my data go?
Nowhere — every calculation runs on your own device. Nothing you enter is uploaded, logged, or stored.
Common Use Cases
New accounts
Make a 16-character password of every type (103 bits) for each site and keep it in a password manager, so one leaked site never unlocks another.
Wi-Fi keys
WPA2 and WPA3 accept 8 to 63 characters. 24 letters and digits give 142.9 bits and are far easier to type on a TV remote than symbols.
API keys and database secrets
Use 64 letters and digits (381 bits): no quotes or backslashes to break a config file or a shell command.
Temporary passwords for a team
Generate up to 50 easy-to-read passwords at once (no symbols, no 0/O or 1/l/I) and Copy all for a sign-up sheet.
Showing why short passwords fail
The 8-lower-case preset is 37.6 bits: about one second for a GPU rig. Add 8 more characters and it becomes millions of years.
Last updated: