# Password generator

Source: https://listme.name/tools/password-generator

Set a length and character sets for a random password, or choose three to ten words for a passphrase. The generator draws from the browser's cryptographic random number generator, shows an entropy estimate in bits, and sends nothing to a server.

## How to use it

1. Choose whether to generate a password or a passphrase.
2. For a password, set the length from 8 to 64 characters.
3. Select the character sets, and exclude look-alike characters if you need to.
4. For a passphrase, choose from 3 to 10 words.
5. Copy the result with one click and check its entropy estimate.

## How the random choices are made

The generator draws each character or word with the browser's cryptographic random number generator, through the crypto.getRandomValues function. That function is designed for security uses. Math.random, by contrast, is not designed for security uses. Because each draw is independent of the ones before it, a password's strength comes from its length and the size of the set it draws from, not from any pattern in its text. Pressing the generator again produces a new password, so you can try again until the result suits the rules of the site.

The entropy estimate is measured in bits. For a random password, entropy equals the length multiplied by the base-2 logarithm of the number of characters to choose from. A 16-character password drawn from 62 letters and digits has about 95 bits, since 16 times log2 of 62 is about 95. Each word in a passphrase drawn from a 512-word list adds 9 bits, because 512 is 2 to the power of 9. More bits mean more possible passwords for an attacker to try. The entropy figure applies to a password of that length and set, so changing either one changes the figure.

## Character sets, look-alikes and what is kept

Lowercase letters, uppercase letters, digits and symbols can be combined in one password. Lowercase, uppercase and digits together give 62 characters, and symbols widen the set further. Excluding look-alike characters removes ones that are easy to confuse on screen, such as 0 and O, or 1, l and I. A smaller set lowers the entropy a little, so the exclusion trades some strength for easier reading. Excluding look-alike characters is optional, so the full set stays available when readability does not matter.

Nothing the generator creates is sent to a server or stored by the page. Copy a password once, store it in a password manager, and enter it where the site asks for it. A password you cannot find later is of no use, so keep the manager's own recovery method somewhere safe. Keep generated passwords in a password manager rather than in plain notes, and copy each one only into the field that needs it. Use the manager's own generator as well if it offers one, since the result is then stored in the same place.

## Questions

**How long should a generated password be?**
The generator accepts lengths from 8 to 64 characters. Each added character multiplies the number of possible passwords by the size of the character set, so longer passwords carry more entropy.

**What is a passphrase?**
A passphrase is a string of words, here three to ten words chosen from a built-in list of 512 words and joined with a separator. Each word adds 9 bits of entropy.

**Does the password generator store or send what it creates?**
No. The generator runs in your browser, and nothing it creates is sent to a server or stored by the page.

**Does excluding look-alike characters weaken a password?**
It makes the character set slightly smaller, which lowers the entropy a little. The benefit is that the password is easier to read and type correctly from a screen.

**Where should I keep a generated password?**
A password manager can store it, so you do not have to memorize it. The password manager ranking compares the options.

## Related rankings

- [Best Password managers](https://listme.name/best/password-managers.md)
- [Best Authenticator apps](https://listme.name/best/authenticator-apps.md)
- [Best File encryption software](https://listme.name/best/file-encryption-software.md)
