How Strong Is a Random Password? Length, Entropy and Better Habits
Password strength comes down to unpredictability. A random password is strong because an attacker has no pattern to exploit, and each extra character multiplies the number of possibilities.
Measuring strength with entropy
Entropy, measured in bits, describes how many guesses an attacker would need. For a random password it equals length × log2(character set size). This generator draws from 63 characters (upper and lower case letters, digits and some symbols, with look-alike characters such as l, 1, O and 0 left out). Each character adds log2(63) = 5.98 bits. A 16-character password therefore has about 16 × 5.98 = 96 bits of entropy.
What that means in practice
Each added bit doubles the work. At 96 bits there are roughly 296 possible passwords. Even if an attacker could test one trillion guesses per second, an average search would take on the order of 9.8e+08 years. In reality, attackers target weak passwords, reused passwords and leaks, rather than brute-forcing strong random ones. A 12-character password from the same set has about 72 bits, which is already strong against online guessing but easier to attack if the hash is stolen.
What makes a password weak
- Common words, names, dates and keyboard patterns such as "qwerty".
- Predictable substitutions like "P@ssw0rd".
- Short length: eight characters is easy to attack offline.
- Reuse. A leak at one site exposes every account that shares the password.
Use a password manager
Nobody can remember dozens of unique 16-character random passwords. A reputable password manager creates, stores and fills them for you, so you need to remember only one strong master passphrase. Browser-based managers are acceptable for many people, and standalone ones offer extra features such as sharing and breach alerts.
Passphrases for the passwords you must remember
For the master password or device login, choose a passphrase of several random words. With a list of 7,776 words (as in the Diceware method), each word adds log2(7776) ≈ 12.9 bits: four words give about 52 bits and six words about 78 bits. The words must be chosen randomly, for example with dice, not picked as a meaningful sentence.
Add a second step
Two-factor authentication (2FA) protects an account even if the password leaks. Prefer an authenticator app or a hardware security key to SMS codes where possible. Enable 2FA first on email, banking and the password manager, because email can be used to reset other accounts.
Notes on this tool
The generator runs in your browser and uses the browser's cryptographic random number source, and nothing you generate is sent to our servers. Choose a length from 12 up to 64. Copy the result straight into your password manager, and do not share it by email or chat.
Common mistakes
- Reusing one strong password everywhere.
- Saving passwords in a plain text note.
- Changing a password by adding a number at the end.
- Sharing passwords over unencrypted channels.
Frequently asked questions
How long should my password be?
At least 12 characters for random passwords, and 16 or more for important accounts. Longer is better, especially if the site allows it.
Are special characters necessary?
They increase the character set, but length matters more. A long random password with letters and digits can be stronger than a short one with symbols.
Should I change passwords regularly?
Current guidance favours changing them when there is a reason, such as a breach or suspected compromise, rather than on a fixed schedule.