OmniFeed Search

Password generator

You choose the length and the kinds of characters, and your browser's secure random number generator picks every character. Changing any setting makes a new password, so copy the one you want first. It runs in your browser; nothing you enter is uploaded.

How the password is made

Every character comes from crypto.getRandomValues, the random number generator browsers provide for cryptography. The generator never uses Math.random, which MDN says isn't safe for anything to do with security.

Picking one of 86 characters from a random 32-bit number with a plain remainder would favor some characters: 232 divided by 86 leaves 16, so the first 16 characters would come up slightly more often than the rest. The generator throws away the few numbers that cause this and draws again, so every character has the same chance.

When you tick several kinds of character, the password gets at least one of each. The generator then shuffles the characters with a Fisher-Yates shuffle, so the guaranteed ones don't always sit at the start.

What the bits number means

The line under the password says how many passwords an attacker would have to try to be sure of finding yours, as a power of 2. It's the length times log2 of the number of characters allowed. With all four boxes ticked there are 86 characters: 26 lowercase letters, 26 uppercase letters, 10 digits, and 24 symbols. That's about 6.4 bits per character, so the default 20 characters give 128 bits.

Each extra bit doubles the number of guesses. At a trillion guesses a second, trying every 80-bit password would take about 38,000 years, so the line under the password asks for at least 80. With every kind of character ticked, 80 bits takes 13 characters; 12 characters give 77.

Length counts for more than variety: 20 lowercase letters give 94 bits, more than 12 characters of every kind. The count holds only for passwords picked at random like these. It doesn't apply to a password you made up, because people pick words and patterns that attackers try first.

Which settings to choose

Keep the default 20 characters with every kind ticked, and save the password in a password manager. You'll never type it, so the length costs you nothing.

For a password you'll read and type by hand, like a Wi-Fi key or a sign-in on a TV, tick Leave out I, l, 1, O, 0, o and untick Symbols. At 22 characters that still gives 127 bits, about the same as the default. If a site won't accept one of the symbols, untick Symbols and make the password a couple of characters longer to make up for it.

Use a different password for every account. A password you reuse on two sites is only as safe as the weaker site's database.

Other ways to make one

More in security and IDs

Other tools