Password Generator
Create strong, unique passwords in one click — with a strength meter that shows exactly how hard each one is to crack.
How to use the Password Generator
Choose a length with the slider — 16 characters is a solid default for important accounts.
Pick character types: uppercase, lowercase, numbers and symbols. At least one must stay selected.
Click “Generate” to create a password, then “Copy” to use it.
Check the strength meter — aim for “Strong” or “Excellent” on email, banking and school accounts.
Why random passwords beat clever ones
A password you invent feels secure because it is personal — but attackers do not guess like people do. They run software that tries billions of combinations, starting with dictionaries, leaked password lists and common human patterns: a capital letter first, a number or ! at the end, @ for a, 0 for o. Studies of breached passwords show these patterns crack in seconds to hours. A truly random 16-character password has no patterns at all, so the only way through is brute force — and the math below shows why that fails.
This generator uses your browser’s cryptographic random number source (crypto.getRandomValues), the same kind of randomness operating systems use for security keys. It also guarantees every character type you selected actually appears at least once, then shuffles the result so the required characters are not sitting in predictable positions.
If you keep passwords in a notebook or a notes app, consider moving to a proper password manager. But whatever you store them in, unique random passwords per site mean one breached site can never unlock the rest of your accounts — and our other everyday tools are just as private, with everything running in your browser.
How password strength is measured: entropy
The strength meter shows entropy in bits — the standard way security experts measure password strength. The formula is simple: bits = length × log₂(pool size), where the pool is how many different characters each position can be.
Worked example: a 12-character password using only lowercase letters. The pool is 26, and log₂(26) ≈ 4.7, so entropy = 12 × 4.7 ≈ 56 bits — rated “Fair”. Now take 16 characters drawn from all 94 printable characters (upper, lower, digits, symbols): log₂(94) ≈ 6.55, so entropy = 16 × 6.55 ≈ 105 bits — “Excellent”. Every extra bit doubles the guessing work, so those 49 extra bits make the second password roughly 500 trillion times harder to brute-force.
As a rule of thumb: under 40 bits is weak, 60+ is decent, and 80+ is strong against any realistic attack. Length is the easiest lever — adding 4 characters to a full-pool password adds about 26 bits, multiplying attacker effort by 67 million.
Practical password habits that actually help
Use a password manager and let it remember everything. Generate a unique password for every site, especially your email — because email is the reset key for everything else, a compromised inbox means compromised everything. Turn on two-factor authentication wherever it is offered; even a perfect password cannot protect you if a site itself is breached and your password leaks.
Common mistakes to avoid: reusing one “good” password across sites, basing passwords on personal details (birthdays, pet names — all guessable from social media), and changing passwords on a fixed schedule for no reason, which just pushes people toward weaker, predictable variations. Change a password when there is a reason — a breach notice, a shared computer, a phishing scare — and make the replacement random.
Worked examples: how long would each password take to crack?
Entropy turns into time. Assume a fast offline attack trying ten billion guesses per second — the worst realistic case, when a site's password database has leaked. On average an attacker finds the password after searching half the possible combinations, so the times below are averages, not worst cases.
A human pattern like a pet's name plus a year (for example, Fluffy2019): cracking software tries dictionary words, names and predictable number endings first, so the effective search space is tiny — typically minutes to hours, not years.
8 random characters, full mix (~52 bits): about 2.6 days on average. Fine against a website's rate-limited login page, but too weak if the password hash ever leaks.
12 random characters, full mix (~78 bits): roughly 480,000 years. This is the practical minimum for accounts you cannot afford to lose if two-factor authentication is unavailable.
16 random characters, full mix (~104 bits): billions of billions of years — far beyond any plausible attack. 20 random lowercase letters (~94 bits) land in the same safe territory, about 31 billion years, which is why this generator defaults to length first: adding characters is the cheapest security you can buy.
Password Generator FAQs
Is it safe to generate passwords on a website?
Yes — this generator runs entirely in your browser using your device's cryptographic random number source. The password is created on your machine and is never sent to any server, stored, or logged anywhere. You can even disconnect from the internet after the page loads and it will keep working.
How long should my password be?
Aim for at least 16 characters for important accounts like email and banking. Length matters more than complexity: a 20-character password of random lowercase letters (~94 bits of entropy) is far stronger than an 8-character mix of everything (~52 bits).
What does the strength meter measure?
It measures entropy — the number of bits of randomness in the password, calculated as length times log-base-2 of the character pool size. More bits means exponentially more guesses an attacker needs. Above 80 bits is considered strong against any realistic brute-force attack.
Should I include symbols in my password?
Symbols expand the character pool and raise entropy per character, which helps at shorter lengths. But some older sites reject certain symbols, so if a site complains, generate a longer password without symbols instead of a short one with them.
Can I actually remember a random password?
You are not supposed to — that is what password managers are for. Generate a unique random password for every site, save it in a manager, and remember only one strong master password. Reusing one memorable password everywhere is far riskier than forgetting random ones.
Why not just use a clever phrase I invent?
Human-invented 'clever' passwords follow predictable patterns: capital first letter, number at the end, common substitutions like @ for a. Attackers use dictionaries and pattern rules that crack these quickly. True randomness has no patterns to exploit, which is why the generator beats any password you make up.
What is a passphrase, and when should I use one instead?
A passphrase is a string of several random words, such as four to six unrelated words joined together. Each random word adds roughly 13 bits of entropy, so five words reach about 65 bits while staying far easier to type and memorise than random characters. Passphrases suit the passwords you must type from memory — your password manager's master password, your computer login and your Wi-Fi key. For everything a manager stores for you, random characters from this generator are still the better default.
How often should I change my passwords?
Only when there is a reason: a breach notification involving the site, a device you used being lost or shared, or signs someone else knows the password. Changing strong, unique passwords on a fixed schedule adds little security and tends to push people toward weaker, predictable variations. Current guidance from security bodies such as NIST is to keep a good password until there is evidence of compromise — and to rely on uniqueness plus two-factor authentication instead of routine rotation.
What if a site limits password length or bans symbols?
Use the maximum length the site allows, keep letters and digits switched on, and drop symbols rather than shortening the password. A 16-character letters-and-digits password (about 95 bits) is stronger than a 10-character password using every symbol on the keyboard (about 66 bits). If a site caps passwords at a very short length, treat that as a warning sign about the site's security and never reuse that password anywhere else.