This password generator makes random passwords that are hard to guess. Move the slider from 4 to 64 characters or choose a preset: 8, 12, 15, 16 or 20.
How to use the password generator
- Choose the length.
- Choose character types, such as capital letters, small letters, digits and symbols.
- Generate the password and check the strength bits.
- Copy it into your password manager and the sign-up form.
If the site rejects a symbol, switch symbols off and add two or three characters instead.
Which length should you choose?
A random character from about 94 keyboard characters adds roughly 6.55 bits.
| Length | Approximate bits | When to use it |
|---|---|---|
| 8 | 52 | Only if the site allows no more |
| 12 | 79 | A fair choice with two-step sign-in |
| 15 | 98 | A strong choice for most accounts |
| 16 | 105 | Strong, and accepted by many sites |
| 20 | 131 | Email, banking and password manager accounts |
Bits = length × log2(number of possible characters)
16 × log2(94) = about 105 bits
Your figure changes with the character types you select and the tool's symbol list.
Password generator for 8 characters and 12 characters
Eight characters was a common minimum for years. Computers can test many guesses quickly if a site's password data is stolen, so a longer password is safer.
Use the password generator for 12 characters when an old system has a short limit. If a site stops at 8 characters, never reuse that password anywhere.
Password generator for 15, 16 and 20 characters
NIST, the US standards body, updated its password guidance in 2025 (SP 800-63B-4). It asks sites to require at least 15 characters when the password is the only sign-in step. At least 8 is allowed when a second step is used.
- 15 characters: meets that guidance.
- 16 characters: one more character for extra strength, and an easy number to remember as a setting.
- 20 characters: a good choice when you paste from a manager and never type it.
Pro tip: Length helps more than odd symbols. A random 20-character password from small letters alone has about 94 bits, while a random 8-character one with every type has about 52.
What makes a password weak
Bits describe a random password only. These look complex but are easy to guess:
Hyderabad@123- Your name with your birth year
- A keyboard line such as
qwerty12345 - A dictionary word with a changed into @
Common mistake: A common mistake beginners make is using one strong password on many sites. If one site leaks it, attackers try it on the others. Use a new password for every account.
Keep it safe after you create it
- Save it in a password manager.
- Turn on two-step sign-in, or use a passkey if the site offers it.
- Never send a password by chat or email.
- Change it when a site reports a leak, or if you think someone knows it.
You do not need to change a strong password every month for no reason. NIST advises sites against forced regular changes without signs of a leak.
For developers
Do not store passwords as plain text. Store a salted hash made by a slow method built for passwords, such as Argon2 or bcrypt. Also do not use Math.random() to create secrets. Browsers provide crypto.getRandomValues() for that.
To see how sign-in and permissions differ, read authentication vs authorization. If you are building a login page, the Node.js tutorial and the Django tutorial are good next steps.
Other small tools can help with testing: check a field's length limit with the character counter, or read API replies with the JSON formatter.
