Password Generator

Generate random passwords that are hard to guess. Set the length and character types, then copy.


How many

How to use it

  1. Drag the slider to set the length. Use at least 15 characters for important accounts.
  2. Tick the character types you want. Turn off symbols if the site won't accept them.
  3. Press the copy button next to a password, then save it in your password manager.

How the passwords are made

Every character is picked with crypto.getRandomValues, the cryptographic random number generator built into your browser. To keep every character equally likely, a 32-bit random value that falls outside the largest multiple of the character count is thrown away and drawn again. Each character type you tick is guaranteed to appear at least once, and then the whole sequence is shuffled.

The character pool is 26 uppercase letters, 26 lowercase letters, 10 digits and 25 symbols !@#$%^&*()-_=+[]{};:,.?/~, 87 characters in all. Avoid similar characters removes I, O, l, o, 1 and 0, which leaves 81.

Measuring strength

Strength is measured in bits of entropy: E = L × log₂(N), where L is the length and N the number of possible characters. The default, 16 characters from a pool of 87, gives 16 × 6.44 = 103 bits. Each extra bit doubles the number of guesses an attacker has to try.

Characters usedN8121620 characters
Digits only1027405366
Lowercase2638567594
Upper + lowercase52466891114
Letters + digits62487195119
All, with symbols875277103129

The label under the meter reads Weak below 40 bits, Fair from 40 to 59, Strong from 60 to 79 and Very strong from 80 bits up. To put that in perspective, an attacker who can test 10 billion guesses per second needs on average 2E−1 ÷ 1010 seconds. For 8 mixed characters (52 bits) that is about 1.8 days; for 12 characters (77 bits) it is about 295,000 years.

The formula only holds for truly random passwords. Chicago2024! is also 12 characters long, but it is far weaker, because cracking tools try common words, place names and years first.

How long should it be?

The US guideline NIST SP 800-63B-4 (July 2025) requires at least 15 characters when a password is the only thing protecting an account, and at least 8 when it is combined with a second factor such as a code from an app. Sites should also accept passwords of at least 64 characters, the upper limit of this tool.

Common mistakes

  • One password for several accounts. When one site is breached, the others are exposed too. Make a new password for every account.
  • Turning symbols off without adding length. Without symbols each character is worth 5.95 bits instead of 6.44. Add 2 characters to make up for it: 18 letters and digits give 107 bits.
  • Keeping passwords in notes or screenshots. Store them in a password manager. The passwords shown on this page are gone as soon as you close it or generate new ones.

Questions

Is this password safe to use?
Yes. It is created by your browser's built-in cryptographic random generator (Web Crypto) on your device. It is not sent to a server and not stored anywhere.
How long should a password be?
For email, banking and social media, use at least 15 to 16 characters with a mix of letters, numbers and symbols. NIST asks for at least 15 characters when the password is the only factor. Longer is always stronger.
What does the number of bits mean?
It is an entropy estimate: length × log₂(number of possible characters). 80 bits means about 2^80, more than a trillion trillion, possible passwords. Each extra bit doubles the number of guesses needed.
What does avoiding similar characters do?
Uppercase I, lowercase l, the digit 1, the letters O and o and the digit 0 are easy to mix up when read aloud or retyped. Turn this on if the password has to be read out or written on paper. It costs a little strength: 6.34 instead of 6.44 bits per character.
A site won't accept some symbols. What should I do?
Untick symbols and add 2 characters to the length. An 18-character password of letters and digits (107 bits) is stronger than a 16-character one with symbols (103 bits).
How can I remember a password this random?
You don't need to. Save it in a password manager, such as the one built into your browser or phone, and use a different password for every account.