What makes a password strong?
A strong password has two properties: it is long, and it is random. Length matters more than cleverness. Every extra character multiplies the number of guesses an attacker must try, and the maths is unforgiving in your favour: a random 12-character password drawn from upper and lower case letters, digits and symbols has about 78 bits of entropy, which means roughly 300,000,000,000,000,000,000,000 possible passwords. A 16-character one has about 105 bits. At a billion guesses per second — faster than any real password-cracking setup aimed at a properly hashed password — 78 bits takes about 9,500 years, and 105 bits takes longer than the age of the universe.
The enemy of strength is predictability. “Password123!”, “Qwerty2026”, a pet’s name with a birth year — these are the first things every attacker tries, because they are the first things everyone picks. Password lists from real breaches contain millions of these, and cracking software tries dictionary words, common substitutions (a → @, o → 0), keyboard patterns and dates before it ever starts guessing randomly. A password that looks random but follows a pattern is not random.
This generator produces genuinely random passwords using your browser’s cryptographic random number generator — the same source of randomness used for TLS keys — and it guarantees at least one character from each character set you select. The entropy meter shows the result in bits, so you can see the strength instead of taking it on trust.
How to generate a password
- Pick a type. Random password for accounts, passphrase for the one password you must memorise — your password manager’s master password, or a Wi-Fi password guests type by hand — and PIN for device locks and keypads.
- Set the length. The slider starts at 16 characters. Leave it there for most accounts; push it to 20 or more for email, banking and password-manager master passwords. Passphrases use 3 to 20 words; PINs use 3 to 12 digits.
- Pick the character sets. All four are on by default. If a site refuses symbols, uncheck them — but add length to compensate, because a smaller pool needs more characters for the same strength. If a site demands a minimum number of digits or symbols, open “Site requirements” and set them.
- Exclude look-alikes if you will type it by hand. The characters I, l, 1, O and 0 look identical in many fonts, so exclude them when the password must be read off one screen and typed into another.
- Generate and copy. Click Generate until you get one you can live with, then copy it straight into a password manager. Do not paste it into an email, a chat message or a sticky note. If you forget to copy, the history below the generator has it — saved only in this browser.
Need more than one? Set “How many passwords” to 5, 10 or 20 and click Generate — you get a list, one password per row, each with its own Copy button, plus a Copy all button that copies the whole list with one password per line. Every password in the batch is generated the same way as a single one: same length, same character sets, and the same guarantee of at least one character from each set you selected. Generate a batch when you are setting up several accounts at once, then paste each password into your password manager as you go.
Three everyday uses
1. A unique password for every account
The single most important password habit is also the simplest: never reuse a password. When one site is breached — and breaches happen weekly — attackers try the stolen passwords on every other site, a technique called credential stuffing. If your email, your bank and your shopping all share one password, one breach opens all three. Generate a fresh random password per account and store them in a password manager; you only have to remember one master password.
2. Wi-Fi, routers and shared accounts
Shared passwords are the ones people make weakest, because someone has to type them: the guest Wi-Fi password on the fridge, the router admin password, the family streaming account. Generate a long one, exclude look-alikes so guests can type it without asking, and print it or show it as a QR code instead of reading it out letter by letter.
3. Temporary passwords and API keys
Reset links, temporary accounts, test users, demo logins — anywhere a password is needed once and then thrown away, a generated one is better than “temp123”. It is also the right way to make API keys and tokens for development: random, long, and never containing anything meaningful like a project name or a date.
Common mistakes to avoid
- Reusing passwords. One breach becomes every breach. Use a password manager and a unique password per site.
- Choosing “clever” patterns. Substituting @ for a and 0 for o does not fool cracking software — those substitutions are in every dictionary. Randomness beats cleverness.
- Making it short to make it memorable. An 8-character password, even a random one, has about 52 bits of entropy. A modern GPU cluster can brute-force that. Twelve is the floor; sixteen is comfortable; twenty is better.
- Writing it down in the wrong place. A password in an email, a chat message or an unencrypted note is a password you have published. A password manager is the place; a locked note in that manager is the backup.
- Sharing the master password. Your password manager’s master password is the one password you must never generate-and-forget. It should be long, memorable to you, and known to nobody else.
Frequently asked questions
- Is this password generator safe?
- Yes. Passwords are generated with your browser’s cryptographic random number generator (crypto.getRandomValues) and never leave your device. There is no server and no log. A history of generated passwords is kept only in this browser’s local storage so you can recover one you forgot to copy — clear it any time with the Clear history button.
- What is a passphrase, and when should I use one?
- Five random words from a 7,772-word list give about 65 bits of entropy — as strong as a 10-character random password — and are far easier to type and remember. Use a passphrase for the one password you must memorise: your password manager’s master password, or a Wi-Fi password guests type by hand.
- What is the PIN mode for?
- Device locks, keypads and alarm panels — places that only accept digits. A 6-digit PIN has about 20 bits of entropy: fine for a phone lock, far too weak for an online account.
- What is the password history, and where is it stored?
- Every password you generate is listed under History so you can recover one you forgot to copy. It is stored only in this browser’s local storage — never sent anywhere — and you can turn it off or clear it at any time. Don’t rely on it on a shared computer: clear the history when you are done.
- How long should my password be?
- At least 12 characters for ordinary accounts, 16 for most things, and 20 or more for email, banking and your password manager. Length beats complexity: a 20-character password of lowercase letters alone is stronger than an 8-character one with every symbol type.
- What does “bits of entropy” mean?
- Entropy measures how many guesses an attacker must try: n bits means 2n possibilities. 40 bits is weak, 60 is fair, 80 is strong, and above 100 is effectively unbreakable. The meter shows the entropy of the password you just generated.
- Should I use symbols?
- They help, but they are not essential — length matters more. If a site rejects symbols, use a longer password instead. The one place symbols genuinely help is against dictionary attacks, because they break up word patterns.
- Why does the generator guarantee one character from each set?
- Because some sites and auditors require it, and because a password drawn purely at random can occasionally miss a set entirely. The guarantee costs nothing in entropy and avoids rejected passwords.
Privacy
Generated passwords never leave your browser. There is no account and no server log. The only thing stored is the history — and that lives in this browser’s local storage, not on a server. Turn it off or clear it any time; on a shared computer, clear it when you are done. Copy the password into your password manager before you close the tab — once the history is cleared, even we cannot recover it, and that is exactly the point.
How long is long enough?
Entropy is the honest way to compare passwords, and the table below shows what different lengths actually buy you when all four character sets are used. The cracking speeds are deliberately pessimistic — a well-run offline attack against a fast hash — so the times are worst-case for you, not best-case.
| Length | Entropy | Time to brute-force at 1 billion guesses/sec |
|---|---|---|
| 8 characters | ~52 bits | About 140 years — but GPUs do far better than this, so treat 8 as broken |
| 12 characters | ~78 bits | About 9,500 years |
| 16 characters | ~105 bits | Longer than the age of the universe |
| 20 characters | ~131 bits | Effectively infinite |
Two things follow. First, the jump from 8 to 12 characters matters enormously, and the jump from 12 to 16 matters even more — length is the cheapest security there is. Second, past 16 characters the numbers stop meaning anything, because no attacker will ever brute-force a 105-bit password; they will phish you, or breach the site, or guess your pet’s name. That is why the second half of password security has nothing to do with the password itself: unique passwords per site, a password manager, and two-factor authentication where it is offered. A 16-character random password plus two-factor authentication is, for practical purposes, done — and no amount of extra length improves on it.
One more option worth knowing: passphrases. Four random words — “correct horse battery staple” is the famous example — give about 52 bits of entropy from a 7,772-word list, and five give about 65 — as strong as a 10-character random password. Passphrases are easier to type and remember than random characters, which makes them ideal for the one password you must memorise: your password manager’s master password. Switch to the Passphrase tab above to make one, and use the generator for everything else.
Share this tool
Copy the link below and paste it anywhere — a chat message, an email, a document. Whoever opens it gets the same free tool, with no account and nothing to install.