Password Generator
Generate strong random passwords with the length and characters you choose. Passwords are created in your browser using your device’s secure random number generator and are never sent or stored. Longer is stronger: 16 characters is a good default.
Show steps
How to use the Password Generator
- Choose the length and which character types to include.
- Pick how many passwords you want and whether to avoid look-alike characters.
- Press Generate password, copy it, and save it in a password manager. Generate again for a new one.
Formula and method
Strength is measured in bits of entropy: entropy = length × log2(pool size). With all four character types (about 85 symbols in the pool), a 16-character password has about 102 bits. Each added bit doubles the number of guesses an attacker needs. Randomness comes from the browser’s crypto.getRandomValues, with rejection sampling so every character is equally likely.
How long should a password be?
| Length | Character types | Approx. entropy |
|---|---|---|
| 8 | upper, lower, numbers, symbols | 52 bits |
| 12 | upper, lower, numbers, symbols | 79 bits |
| 16 | upper, lower, numbers, symbols | 105 bits |
| 16 | lowercase only | 75 bits |
| 20 | upper, lower, numbers | 119 bits |
NIST guidance (SP 800-63B) recommends length over complexity rules and advises against forced periodic changes: use long, unique passwords and change one only if you suspect it was exposed.
Good password habits
Use a different password for every account, store them in a reputable password manager, and turn on two-factor authentication where available. Avoid personal information, keyboard patterns and reused passwords. If a service breach is announced, change that password and any account that shared it.
How long would a brute-force attack take?
| Length | Characters | Time to try every combination |
|---|---|---|
| 8 | upper, lower, numbers, symbols (94) | 7 days |
| 10 | upper, lower, numbers, symbols (94) | 171 years |
| 12 | upper, lower, numbers, symbols (94) | 1.5 x 10^6 years |
| 16 | upper, lower, numbers, symbols (94) | 1.2 x 10^14 years |
| 12 | lowercase only (26) | 110 days |
These times assume an attacker who stole a password database and can test 10 billion guesses per second against a fast hash. Slow, well-designed password hashing makes attacks far slower, and reused or common passwords fall in seconds whatever their length. A random password of 12 or more characters, unique to one account, is out of reach of this kind of attack.
Frequently asked questions
Is this password generator safe?
Passwords are generated entirely in your browser with the Web Crypto API and are never transmitted or stored.
How long should my password be?
At least 12 characters for ordinary accounts and 16 or more for email, banking and your password manager.
Should I include symbols?
Symbols add entropy, but length matters more. Some sites reject certain symbols, so adjust if a site complains.
Is a passphrase better than a random password?
A random passphrase of five or six words is long and easier to remember, and it is strong if the words are chosen at random. For accounts you do not type often, a manager-generated random password is best.
Should I change my passwords regularly?
NIST advises against forced periodic changes. Change a password if you think it was exposed, and use a different one for every account.
What should I do if my password was in a data breach?
Change it right away on that site and on any other account that used the same password, and turn on two-factor authentication.
Sources
Related calculators
Related to This Article
More math articles
- How to Prepare for the TASC Math Test?
- ISEE Middle-Level Math FREE Sample Practice Questions
- The Math Game Show: How to Find Probability of Simple and Opposite Events
- Utah RISE Grade 5 Math at Home — 49 Free Single-Skill PDF Worksheets with Friendly Keys
- Connecticut Grade 2 English Worksheets You Can Print Free
- Presidential management styles
- How to Find Discontinuities of Rational Functions?
- How to Compare Decimals? (+FREE Worksheet!)
- Unlocking the Secrets of Curves: Higher Order Derivatives in Graph Analysis
- 5th Grade ACT Aspire Math Practice Test Questions


What people say about "Password Generator: Strong Random Passwords"?
No one replied yet.