Password Generator
Generate random passwords using your browser's secure random generator, with length and character options.
Built and tested by Muhammad Irfan Liaqat · Updated
Password Generator: key facts
- Generates random passwords from 4 to 64 characters long
- Choose any mix of uppercase, lowercase, numbers and 27 symbols
- Makes up to 20 passwords at once and rates each one's strength
- Uses the browser's cryptographic random number generator; passwords are never sent or stored
How the passwords are generated
The password generator creates random passwords from 4 to 64 characters long, using any mix of uppercase letters, lowercase letters, numbers and symbols. Generate up to 20 at once; each one shows a strength rating and can be copied with one click.
Randomness comes from the Web Crypto API (crypto.getRandomValues), the browser's cryptographically secure random number generator, not the predictable Math.random. Length matters more than complexity: each extra character multiplies the number of possible passwords, and a random 16-character password using all four character types is far beyond practical guessing. Use a different password for every account and keep them in a password manager. Passwords are created in your browser and are never sent or stored.
How to generate a strong password
- 1Set the length with the slider
- 2Choose the character types: uppercase, lowercase, numbers and symbols
- 3Set how many passwords you want and click Generate Passwords
- 4Click Copy next to the password you want to use
How long a random password takes to guess
A random password's strength is the number of possible passwords it could be, which depends on two things: how many characters the generator picks from and how many it picks. This tool picks from 26 lowercase letters, 26 uppercase letters, 10 digits and 27 symbols, 89 characters in total with every box ticked. Each extra character multiplies the possibilities by 89, so length adds strength much faster than an extra character type does.
| Characters | Lowercase only (26) | Letters and digits (62) | All four types (89) |
|---|---|---|---|
| 8 | 10 seconds | 3 hours | 2 days |
| 12 | 55 days | 5,000 years | 390,000 years |
| 16 | 69,000 years | 75 billion years | 25 trillion years |
| 20 | 32 billion years | Over a quintillion years | Over a sextillion years |
Average time to guess a password generated at random, assuming an attacker has stolen a database of fast, unsalted hashes and tries 10 billion guesses per second, roughly one high-end graphics card. Sites that store passwords with a slow hash such as bcrypt or Argon2 make each guess thousands of times slower. None of this protects a password that was reused on a site that leaked it, or typed into a phishing page.
How the strength label works
The Weak, Medium and Strong label is a quick check, not an entropy measurement. It gives one point each for reaching 8, 12 and 16 characters, and one each for mixing upper and lower case, including a digit and including a symbol. Five or six points is Strong, three or four is Medium and two or fewer is Weak. A 16-character lowercase password scores Medium even though the table above shows it would take tens of thousands of years to guess, so use the table to judge length and the label as a reminder to add character types where a site allows them.
Every character is drawn from the whole pool, so a password is not forced to contain one of each type. At 12 characters, about one password in four has no digit; at 12, about one in eighty has no symbol. If a site insists on at least one of each, glance at the password or generate a new batch and pick one that fits.
Random password or passphrase?
A passphrase is several random words, such as “orbit-velvet-candle-harbor-lemon”. Picked at random from a list of 7,776 words (the Diceware list), five words give about 65 bits of entropy, a little less than a random 10-character password using all four types, and six words give about 78 bits, close to a 12-character one. Passphrases are longer to type but easier to remember and to read out.
Use a passphrase for the few things you must type from memory: your password manager's main password, your computer login and your phone. Use random passwords from this generator for everything stored in the password manager, where nobody has to remember them. This tool makes random-character passwords only; to make a passphrase, pick the words with dice or a passphrase generator, never by choosing words yourself, because people choose predictably.
When a site rejects your password
| What the site says | What to change |
|---|---|
| Too long, or a maximum of 16 or 20 characters | Move the slider down to the limit. Make up the lost strength by keeping all four character types. |
| Symbols not allowed, or only some symbols | Untick Symbols and add four or five characters of length, which more than replaces them. |
| Must contain a number, a capital and a symbol | Keep all four boxes ticked and check the password has each type, since one can be missing by chance. |
| Cannot contain spaces or quotes | No action needed. The generator never produces spaces or double quotes, though its symbols include the single quote ('). |
Mistakes that weaken a strong password
Reusing a password is the most common one: when any site you use is breached, attackers try the same email and password on email, banking and shopping sites. One unique password per account stops that. Changing a single character between sites, such as Password1 and Password2, gives almost no protection, because attackers try those variations first.
Store passwords in a password manager, such as the one built into your browser or phone or a dedicated app, rather than in a note or spreadsheet. Then turn on two-factor authentication for email, banking and social accounts, ideally with an authenticator app or a passkey rather than text messages. Two-factor sign-in means a stolen password alone is not enough to get in. Current NIST guidance (SP 800-63B) also advises sites against forcing regular password changes, so change a password when you suspect it has leaked, not on a schedule.
Frequently Asked Questions
Are the generated passwords secure?
How long should a password be?
Are my passwords stored or sent anywhere?
Should I include symbols?
How strong is a 16-character random password?
Can it make a memorable passphrase?
What if a site does not allow some symbols?
Related Tools
Guides
- Is an Online Password Generator Safe? How to CheckCan a website see the passwords it generates? Three checks that tell a safe generator from a risky one, plus how long and random a password needs to be.
- Create Strong Passwords You RememberPractical advice on building secure passwords without going crazy. Plus tips on password managers and why length beats complexity.
- How to Create a WiFi QR Code for FreeMake a QR code that joins guests to your Wi-Fi in one scan. The exact text to enter, how to handle special characters and hidden networks, and printing tips.