Password generator
A random password or passphrase, drawn in your browser, to copy into the account that needs it. What matters most is not its length: it is having a different one for every account.
The draw happens on your device. The password is not sent to any server, is not stored anywhere and never appears in the page's address.
In short
A good password is drawn at random, not made up: 20 random characters, or 6 random words if you have to remember it. Above all, a different password for every account, kept in a password manager, with two-factor authentication turned on wherever it exists.
Between 8 and 128.
Result
Generating…
After copying
- Paste the password into the site, then save it in your password manager (the one in your browser or phone will do) before leaving this page: it keeps nothing.
- Turn on two-factor authentication for this account: a password, however good, can be typed on a fake page. Turn on two-factor authentication →
- If the old password was used elsewhere, change it on those accounts too, starting with your email. How passwords really get stolen →
- Changing your password because you typed it on a suspicious page? Follow the other steps in order. What to do after a scam link or message →
Length and randomness: what makes a password unpredictable
A password is hard to guess when it was drawn at random from a very large number of possibilities. That number is counted in bits: each bit doubles the number of passwords someone would have to try.
Adding a character multiplies the possibilities by the size of the alphabet; adding a type of character widens the alphabet only once. Length therefore weighs more than variety: 8 random lowercase letters give 37 bits, 20 characters drawn from the 94 printable ASCII characters (letters, digits, symbols) give 130.
Randomness counts as much as length. A password a person picks — a name, a date, a word followed by “!” — follows habits that attack tools try first. This generator uses the browser's secure random generator, and every possible password has exactly the same chance of being drawn.
Passphrases: words instead of characters
A passphrase strings together words drawn at random from a fixed list. Each word drawn from 7,776 adds 12.9 bits: 6 words give 77. It is longer than a password of the same strength, but easier to type on a phone or a TV, and easier to remember.
The randomness must come from the draw, not from you: a phrase you make up, however long, or a well-known quote, is far more predictable. The list used here is the Electronic Frontier Foundation's.
A passphrase suits the few secrets you have to remember by heart: a password manager's main password, your computer's login.
A different password for every account
When a site has its login database stolen, the email addresses and passwords circulate, then get tried automatically on other services. A very long password changes nothing if it is used elsewhere: it is already known.
That is a generator's first job: a fresh password for every account, instead of a recycled one. If one leaks, it only opens the account it leaked from.
A password manager to remember them
Nobody remembers dozens of random passwords. A password manager keeps them in an encrypted vault, and most generate them too, including those built into browsers and phones.
It also protects against fake pages: as a rule, it only offers to fill a password on the site it was saved for. If it offers nothing on a page that looks like your bank, take that seriously.
This generator keeps nothing: copy the result straight into your manager or the site's form, then save it.
Two-factor authentication and passkeys
A password, however good, can be typed on a fake page or harvested by spyware. Two-factor authentication adds a second proof — an app, a physical key, a code — that someone holding only the password lacks. SMS is the weakest form: the phone number itself can be hijacked.
Passkeys replace the password with a cryptographic key kept by your device or your password manager, and unlocked by your fingerprint, face or PIN. They are bound to the real site: a fake page cannot use them. When a service offers them, they are usually the safest option.
What the number of bits does not tell you
The figure shown measures the draw, not the security of your account. It holds if you use the result exactly as generated: edited by hand, shortened or padded with a word of your own, it no longer applies.
It does not protect against a leak at a service, a fake login page, spyware or a call asking for your code. Those paths do not need to guess. That is why this tool shows no “strong / weak” gauge and no “time to crack”: they promise a protection no length provides.
How the tool works
Each character or word is drawn with crypto.getRandomValues, the browser's cryptographic random generator, never with Math.random. Values that would skew the distribution are discarded and redrawn, so the arithmetic favours no character.
With “at least one character of each type”, a draw that lacks one is discarded whole and redrawn rather than patched: every valid password stays equally likely, and the number of bits shown is computed exactly for that case. If you ask for several suggestions, that number is reduced by what your choice can reveal.
Nothing is sent, nothing is kept: closing or reloading the page erases everything. The clipboard is used only when you click “Copy” — and what you copy may stay there, or be synced to your other devices if your system does that.
Frequently asked questions
- Is this password generator safe?
- The draw happens in your browser, with its cryptographic random generator (crypto.getRandomValues). The password is not sent to any server, is not stored and does not appear in the address: no request the page makes contains it (in passphrase mode, only the wordlist is loaded from this site). Like any web page, it does not protect a device already infected by spyware.
- How long should a password be?
- The default, 20 characters of every type, gives 130 bits of randomness: far beyond what an attack trying guesses one after another can cover. If a site limits the length or refuses some symbols, take the most it accepts and uncheck symbols. For a password to remember by heart, prefer a passphrase of 6 words.
- Password or passphrase: which should I choose?
- For accounts saved in a password manager, a random password: you will never type it. For the few secrets you must remember or type often — the manager's own password, your computer's login — a passphrase: longer, but easier to remember and to type.
- Should I change my passwords regularly?
- Not without a reason. Change a password when it has leaked, when you typed it on a suspicious page, or when it is used on several accounts. Current guidance, such as the US NIST's (publication SP 800-63B), no longer asks for periodic changes, which push people towards predictable variations.
- Why doesn't the tool check my current password?
- Because you should never type a real password into a page that is not the service's own. This site will never ask you to: it helps you create a new one, not test the old one.
What the tool does not do
- It does not check whether a password has already leaked, and never asks for yours.
- It keeps no history: write down or save the result before leaving the page.
- It does not protect a device that is already infected: spyware can read the screen or the clipboard.