Password Generator

Create strong, random passwords in one click. Choose the length and character types, check the strength meter, and copy. Everything happens privately in your browser.

النسخة العربية ↗

This password generator creates a strong random password on your own device in one click. Use it when you open a new account, replace a password you have reused, or fill a password manager with unique logins. Under the tool you will find how long a password should be according to NIST, how strength is measured, and when a passphrase makes more sense.

How to generate a strong random password

  1. Set the length with the slider, anywhere from 6 to 64 characters. The default is 16, a good minimum for any account that matters.
  2. Choose the character types: capitals (A–Z), lowercase (a–z), numbers (0–9) and symbols. Tick Avoid look-alikes if you will have to type the password by hand on a TV, console or someone else’s keyboard.
  3. Check the strength meter for the rating and bits of entropy.
  4. Press Copy, or press ↻ for a fresh one. Five more passwords with the same settings appear underneath if you prefer one of those.
  5. Save it in your password manager before you leave the page. We keep no copy.

How the strength meter works

The strength of a random password is measured in bits of entropy. Each extra bit doubles the number of guesses needed to try every possibility. The meter uses this formula:

Entropy (bits) = length × log2(number of possible characters)

With all four boxes ticked, the generator draws from 86 characters: 26 capitals, 26 lowercase letters, 10 digits and 24 symbols. log2(86) is about 6.43, so every character adds roughly 6.4 bits. Avoid look-alikes removes six characters (I, l, 1, O, 0 and o), which leaves 80 and about 6.32 bits per character.

The ratings are: under 40 bits weak, 40 to 59 fair, 60 to 79 strong, and 80 or more very strong.

Each character comes from the browser’s cryptographic random generator (crypto.getRandomValues), with rejection sampling so no character is favoured. The tool includes at least one character of every type you ticked, then shuffles. Nothing is sent, logged or stored.

Password strength table by length and character set

Characters usedPool8 chars12 chars16 chars20 chars
Digits only1026.6 bits39.9 bits53.2 bits66.4 bits
Lowercase only2637.6 bits56.4 bits75.2 bits94.0 bits
Lowercase + digits3641.4 bits62.0 bits82.7 bits103.4 bits
Upper + lower + digits6247.6 bits71.5 bits95.3 bits119.1 bits
All four types (default here)8651.4 bits77.1 bits102.8 bits128.5 bits

Read along any row and the pattern is clear: four extra characters add more strength than one extra character type. These numbers only hold for passwords chosen at random. A password you make up yourself, such as a word with a capital at the start and “123!” at the end, has far less real entropy, because attackers try those patterns first.

Worked examples

Example 1: the default 16 characters

16 × 6.43 = 102.8 bits, rated very strong. Assume an attacker with a stolen password database can test 10 billion guesses per second (an illustrative figure). Trying every combination would still take around 28 trillion years.

Example 2: an 8-character “complex” password

8 × 6.43 = 51.4 bits, rated fair. At the same assumed 10 billion guesses per second, every combination could be tried in about three and a half days. This is why the old “8 characters with a symbol” rule no longer holds up.

Example 3: length beats symbols

20 lowercase letters give 20 × 4.70 = 94.0 bits. 14 characters using all four types give 14 × 6.43 = 90.0 bits. The longer, plainer password wins, and it is much easier to type on a phone.

How long should a password be? What NIST SP 800-63B says

The US National Institute of Standards and Technology sets out password rules in its Digital Identity Guidelines. The current version, NIST SP 800-63B-4, says:

  • at least 15 characters when the password is the only thing protecting the account;
  • at least 8 characters when it is used together with a second factor;
  • services should accept passwords of at least 64 characters;
  • no composition rules such as “must contain a symbol”, and no forced changes on a schedule, only when there is evidence the password was compromised;
  • new passwords should be checked against lists of common and breached passwords.

The US Cybersecurity and Infrastructure Security Agency gives simpler advice for everyday users: make passwords at least 16 characters, random and unique for every account. Our practical rule follows that: 16 or more for anything important, and 20 or more costs you nothing when a password manager does the typing. For the reasoning in more depth, read How long should a password be in 2026?

Passphrase vs random password

A passphrase is a handful of unrelated words strung together. The UK’s NCSC promotes “three random words”, and CISA suggests five to seven unrelated words for a passphrase. If the words are picked at random from a 7,776-word list (the standard dice list), each word adds about 12.9 bits: five words give about 64.6 bits and six give about 77.5 bits.

Use a passphrase for the few secrets you must type from memory: your password manager’s master password, your computer login, your phone. Use a random password from this page for everything else. This tool makes character passwords, not passphrases; for a passphrase, pick words with dice, not a song lyric or a phrase you like.

Password manager advice

Long random passwords are only practical with a password manager. It stores them encrypted, fills them in and flags reused ones. Protect it with a strong passphrase and two-factor authentication. Our guide Password managers explained compares the main types and what to look for.

Common password mistakes

  • Reusing one password on several sites. When one site leaks, attackers try the same email and password everywhere else.
  • Copying a “strong password example” from a website. Once a password is published, it can end up in attackers’ guess lists.
  • Predictable swaps such as P@ssw0rd, or a name followed by a birth year.
  • Changing one digit when forced to update, for example Summer2025 to Summer2026.
  • Leaving two-factor authentication off on your email account, which can reset almost everything else.

Frequently asked questions

How long should a password be?

At least 15 characters if the password is the only protection on the account, and at least 8 if it is combined with two-factor authentication, according to NIST SP 800-63B-4. We recommend 16 or more for any account that matters, which is why 16 is the default here.

Is this password generator safe to use?

Yes. Passwords are created in your browser with the cryptographic random generator crypto.getRandomValues. They are never sent over the internet, never logged and never stored by us, and they disappear when you leave the page.

What does a strong password look like?

It looks random: 16 or more characters mixing capitals, lowercase letters, numbers and symbols, with no words, names or dates. Do not copy an example from a website. Generate your own so that nobody else has ever seen it.

Is a passphrase better than a random password?

Both can be strong. A random 16-character password from this tool has about 103 bits of entropy, while six words picked at random from a 7,776-word list have about 78 bits. Use a passphrase for what you type from memory and random passwords for everything stored in a password manager.

How is password strength calculated?

Strength is the length multiplied by log2 of the number of possible characters, shown as bits of entropy. With all four character types the pool is 86 characters, or about 6.43 bits per character. Under 40 bits is weak, 40 to 59 fair, 60 to 79 strong and 80 or more very strong.

Why avoid look-alike characters?

Characters such as I, l, 1, O and 0 are easy to confuse when you type a password by hand or read it aloud. Removing them costs very little strength: about 6.32 bits per character instead of 6.43.

Should I change my passwords regularly?

NIST no longer recommends changing passwords on a fixed schedule. Change a password when a service reports a breach, when you think someone else knows it, or when you have used it on more than one site.

Scroll to Top