About the Random Password
Random Password creates a fresh password every time you change a setting. Choose a length from 4 to 128 and which character types to include, and the tool builds the password with your browser's cryptographically secure random generator and rates its strength.
How it works
The character sets you pick are combined into one pool: 26 uppercase letters, 26 lowercase letters, 10 digits and 26 symbols (!@#$%^&*()_+-=[]{}|;:,.<>?), minus any look-alikes or characters you exclude. Each character is picked with the browser's cryptographic random generator using rejection sampling, so every character in the pool is equally likely. One random position is then given a character from each chosen set, so every set always appears.
Strength is measured as entropy: length × log2(pool size). Under 40 bits is Very weak, 40 to 59 Weak, 60 to 79 Good, 80 to 127 Strong and 128 or more Very strong. The crack time assumes an offline attack at 10 billion guesses a second. Passphrase mode picks random 4 to 7 letter words from a large dictionary instead, about 16.5 bits per word.
How to use
- 1
Choose Password or Passphrase.
- 2
Set the length (or number of words) and the character types or separator.
- 3
Check the strength bar and crack-time estimate, and click refresh for another.
- 4
Copy it, or pick 5, 10 or 50 to generate a list you can copy or download.
Worked examples
Default settings
A site that doesn't allow symbols.
Pool of 62 characters: 16 x log2(62) ≈ 95 bits, in the 80-127 Strong band.
Adding symbols
The defaults: 16 characters with all four types.
Pool of 88 characters: 16 x log2(88) ≈ 103 bits. Use 20 or more characters to reach Very strong (128 bits).
Short lowercase password
A site only accepts 8 lowercase letters.
8 x log2(26) ≈ 38 bits, just under the 40-bit Weak line, so it shows Very weak. Use the maximum length the site allows to compensate.
Frequently asked questions
How is this different from the Password Generator tool?+
They work the same way and use the same generator. This page is simply listed with the random generators so it's easy to find.
Is it safe to generate a password in the browser?+
Yes. The password is created on your device using crypto.getRandomValues and isn't transmitted or saved by the tool.
How long should my password be?+
16 characters or more is a good default for important accounts. Longer is better if the site allows it.
Will my password always include a number if Numbers is ticked?+
It always will now. One random position is reserved for each character type you select, so a ticked type is never missing.
What does the strength rating mean?+
It's based on entropy, the length times log2 of the pool size. Under 40 bits is Very weak, 40-59 Weak, 60-79 Good, 80-127 Strong and 128+ Very strong.