Password Generator
Generate strong, random passwords. Generated locally — never sent anywhere.
Click GenerateGenerate random passwords using the browser's cryptographic random source, with a strength readout based on real entropy rather than a vague colour bar.
How strength is actually measured
Password strength is entropy: the number of guesses an attacker needs. A password drawn from a 94-character set has about 6.55 bits of entropy per character, so 16 characters is roughly 105 bits. That is far beyond brute force. Eight characters from the same set is about 52 bits, which is weak against offline attacks on a stolen hash.
Length dominates. Adding one character to a 94-symbol alphabet multiplies the search space by 94, while adding a symbol type to a short password multiplies it by a much smaller factor. A 20-character lowercase-only password beats an 8-character password with every symbol type enabled.
Why the random source matters
Math.random is a fast pseudo-random generator seeded from the clock. It is fine for animations and useless for secrets, because an attacker who sees a few outputs can predict the rest. Browsers expose crypto.getRandomValues for exactly this reason, and this generator uses it.
The practical consequence: a password generated by a site that uses Math.random may look random and still be predictable. You cannot tell by looking, which is why the implementation matters more than the output.
Where generated passwords still fail
A strong password is only one layer. The failures that actually get people breached are reuse across sites and storing the password in plaintext. A unique 20-character password per site is only practical with a password manager, so generate here and store it there.
Strength meters also cannot see breach history. A password can be mathematically strong and still appear in a leaked database from a site that stored it badly. Checking against a breach corpus is a separate step from measuring entropy.
Frequently asked questions
- How many characters should I use?
- Sixteen is a reasonable default for anything important. Twenty or more costs nothing if a password manager is filling it in. Under twelve is only acceptable for throwaway accounts.
- Are passphrases better than random strings?
- A four-word passphrase from a large wordlist has comparable entropy to a 16-character random string and is far easier to type on a phone. Both are fine. The mistake is a short passphrase made of common words.
- Is the generated password sent anywhere?
- No. Generation and the strength calculation both run in the page. There is no network request involved.