Skip to main content

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

464

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

  1. 1Set the length with the slider
  2. 2Choose the character types: uppercase, lowercase, numbers and symbols
  3. 3Set how many passwords you want and click Generate Passwords
  4. 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.

CharactersLowercase only (26)Letters and digits (62)All four types (89)
810 seconds3 hours2 days
1255 days5,000 years390,000 years
1669,000 years75 billion years25 trillion years
2032 billion yearsOver a quintillion yearsOver 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 saysWhat to change
Too long, or a maximum of 16 or 20 charactersMove the slider down to the limit. Make up the lost strength by keeping all four character types.
Symbols not allowed, or only some symbolsUntick Symbols and add four or five characters of length, which more than replaces them.
Must contain a number, a capital and a symbolKeep all four boxes ticked and check the password has each type, since one can be missing by chance.
Cannot contain spaces or quotesNo 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?
Yes. They are built from the Web Crypto API's secure random number generator, so there is no pattern to predict. Their strength then depends on the length and character types you choose.
How long should a password be?
At least 12 characters, and 16 or more for important accounts such as email and banking. A long random password is much harder to crack than a short complex one.
Are my passwords stored or sent anywhere?
No. They are generated in your browser and disappear when you leave the page, so save the one you choose in a password manager.
Should I include symbols?
Include them when the site allows, because they enlarge the set of possible characters. If a site rejects certain symbols, untick Symbols and add a few characters of length instead.
How strong is a 16-character random password?
With all four character sets on, the pool is 89 characters, so each character adds about 6.5 bits and 16 characters give about 104 bits of entropy. That is far beyond what guessing attacks can reach.
Can it make a memorable passphrase?
No, it makes random characters. For a password you have to type from memory, a passphrase of four or more random words is easier to remember; see the guide on creating strong passwords you can remember on the Alventra blog.
What if a site does not allow some symbols?
Turn off Symbols and add length instead: a 20-character password of letters and numbers is still very strong. You can also delete the offending characters by hand.

Related Tools

Guides