Random password generator

Make a strong random password right here, from 8 to 128 characters. Every character is picked on your device with your browser’s secure random number generator. The password is not sent anywhere and not saved.

20 characters
Characters to use

Made in your browser. The password is created on this page and is not sent anywhere, saved or logged. Close the page and it is gone.

What makes a password strong

A strong password is long, random and used in one place only. Length and randomness decide how many guesses it takes to find it. Using it once means a leak at one site does not open your other accounts.

Passwords people make up are rarely random. A name with a capital, a year and an exclamation mark at the end looks complex, but guessing software tries those patterns first. A password generator removes the human pattern: every character is picked by chance, so finding the password means trying the possibilities one by one.

CISA, the US Cybersecurity and Infrastructure Security Agency, puts it in three points: at least 16 characters, random, and a different password for each account.2

How long a password should be

Use 16 characters or more for anything that matters, and as long as the site allows for accounts you never type by hand. NIST’s digital identity guidelines (SP 800-63B revision 4) tell services to require at least 15 characters when a password is used on its own to protect an account, to allow at least 64, and to stop demanding a mix of character types or regular password changes.1

LengthEntropyAverage time to guess
8 characters50.4 bits12 minutes
12 characters76.7 bits1,900 years
16 characters102.6 bits121 billion years
20 characters128.4 bits1018 years
32 characters205.6 bits1042 years
Random passwords with capital letters, small letters, numbers and symbols (86 characters to pick from), at least one of each.

The times assume an attacker who has stolen a scrambled copy of your password and can test one trillion (1012) guesses every second. On average they find it after trying half of the possibilities, and that is the figure shown. It is a harsh case on purpose. A login page allows a handful of tries, not a trillion a second, and a service that stores passwords with a slow hash cuts the rate by many orders of magnitude. The point of the table is the shape: every extra character multiplies the work by 86.

How this generator works

Each character comes from your browser’s cryptographic random number generator, the same one used to make encryption keys. Random numbers that would make some characters slightly more likely than others are thrown away and drawn again, so every character in the set has exactly the same chance.

When you tick a kind of character, the password will contain at least one of it. The generator does not plant a symbol in a fixed spot to get there. If a password comes out missing one of the kinds you chose, the whole password is thrown away and a new one is drawn, which keeps every allowed password equally likely. The entropy shown counts only those allowed passwords.

Everything happens on this page. The code that makes the password is part of the page, and it does not send the password anywhere or store it. You can disconnect from the internet after the page loads and it still works.

Symbols, numbers and look-alikes

Length does more than variety. A 16-character password of letters and numbers only has about 95 bits of entropy, and adding symbols raises it to about 103. Adding four more characters to the letters-and-numbers version gets you further than the symbols do. Keep symbols on when the site accepts them, and turn them off for a site that rejects them rather than making the password shorter.

Leaving out look-alike characters drops capital I, small l, the number 1, capital O, small o and zero. Use it for a password you will read off a screen and type on another device, such as a Wi-Fi password. It costs a little entropy, which the strength line shows.

How to keep your passwords

  • Use a password manager. It can make, store and fill a different random password for every account, so you only remember one.2
  • Never reuse a password. One password, one account. A password used on two sites is only as safe as the weaker site.
  • Protect your email first. Your email account can reset most of your other passwords, so give it a long random password and a second step.
  • Turn on two-factor authentication wherever it is offered.
  • Change a password when there is a reason to, such as a breach at that site, not on a timer.1

Questions about passwords

Is it safe to use an online password generator?

It depends on where the password is made. This generator runs in your browser: the password is created on your device with its secure random number generator, and the page does not send it anywhere or save it. It still works if you go offline after the page loads. Avoid generators that make the password on their server and send it to you.

How long should a strong password be?

At least 16 characters, which is what CISA recommends. NIST tells services to require at least 15 characters when a password is used on its own to protect an account. A random 16-character password with letters, numbers and symbols has about 103 bits of entropy. For accounts where a password manager fills it in, use 20 or more.

Is a 12-character password strong enough?

A random 12-character password with all four kinds of character has about 77 bits of entropy, which holds up well against online guessing. It is below the 15 characters NIST asks services to require for single-factor logins and the 16 CISA recommends, so choose 16 or more when the site allows it.

Do symbols make a password stronger?

A little. Symbols make each character one of 86 instead of 62, which adds about half a bit per character. One extra character adds about 6 bits. If a site rejects symbols, turn them off and make the password a few characters longer.

What is the difference between a password and a passphrase?

A password is a string of random characters. A passphrase is a string of random words, such as five or six picked from a long list. A passphrase is easier to remember and type, while a random password packs more strength into fewer characters. Use a passphrase for the few things you must remember and random passwords, kept in a password manager, for everything else.

How long would it take to crack my password?

For a random password it depends only on its length and the characters used. At one trillion guesses per second, a random 8-character password falls in about 12 minutes on average, 12 characters take about 1,900 years and 16 characters about 121 billion years. A password you made up yourself can fall much faster, because guessing software tries common words and patterns first.

Should I change my passwords regularly?

No, not on a schedule. NIST tells services not to force periodic changes, because people respond with small, predictable edits. Change a password when there is a reason, such as a breach at that service or a sign that someone else has used it.

Sources

  1. NIST, SP 800-63B-4, Digital identity guidelines: authentication and authenticator management, section 3.1.1.2.
  2. CISA, Use strong passwords.

More free tools