How to use the Password Generator
- Choose Random characters for maximum strength per character, or Memorable passphrase for something easier to type.
- For characters, set the length (16 or more is recommended) and choose which character types to include.
- For passphrases, choose 6 or more words.
- Copy the password straight into your password manager.
How it works
Every character or word is chosen with crypto.getRandomValues and rejection sampling, so each option has exactly the same chance and there is no bias.
Strength is measured as entropy: the number of bits an attacker would have to guess. Each character drawn from a pool of N options adds log2(N) bits. The default upper/lowercase, digit, and symbol pool contains 88 characters. Excluding similar characters reduces that pool to 80. Entropy is calculated from the configured pool, not from which classes happened to appear in one result.
Passphrases use the EFF Short Wordlist of 1,296 common words by the Electronic Frontier Foundation (CC BY 3.0), giving 10.34 bits per word.
Entropy (bits) = Length × log2(Pool size)
16 characters from 88 ≈ 103 bits
6 words from 1,296 ≈ 62 bitsWorked example: choosing a length
A 16-character password from the default 88-character pool has about 103 bits of entropy. The displayed offline time estimates half the search space at 100 billion guesses per second; it does not predict any specific attack.
A 6-word passphrase such as "stamp-ocean-bunny-crisp-lunar-gecko" has about 62 bits: strong for an online account protected by rate limits, and easy to type. Use 8 words or more for a password manager's master password.
| Password | Entropy |
|---|---|
| 12 random characters (88 pool) | about 78 bits |
| 16 random characters (88 pool) | about 103 bits |
| 6-word passphrase | about 62 bits |
| 8-word passphrase | about 83 bits |
Limitations
- Entropy measures how hard a randomly generated password is to guess. It does not apply to passwords people choose themselves, which are far weaker than their length suggests.
- Some websites reject certain symbols or limit length. Turn off symbols or shorten the password if a site refuses it.
- A strong password does not protect an account if it is reused. Use a different password for every site and store them in a password manager.
Frequently asked questions
How long should a password be?
At least 16 random characters for important accounts, or a passphrase of 6 or more random words. Length matters more than complexity.
Are passphrases as secure as random passwords?
Per character, no; per bit of entropy, yes. A 6-word passphrase has about the same strength as a 10-character random password and is easier to remember and type.
Is it safe to generate passwords online?
It is when generation happens in your browser with a secure random source and nothing is sent, as here. Close the tab after copying the password into your password manager.
Should I change my passwords regularly?
Current NIST guidance (SP 800-63B) advises against forced periodic changes. Change a password when there is evidence it has been exposed.