Password Generator
Generate random passwords and diceware passphrases in your browser, with the exact entropy in bits and an honest strength verdict.
Runs entirely in your browser — nothing is uploadedAs hard to guess as an AES-128 key. Past this point the password is no longer the weak link — the site's storage, your device and phishing all are.
- 20 characters drawn from 86+128.53 bits
- "at least one of each type" rule−0.13 bits
| If an attacker has the stored hash | Guesses / sec | Average time to find it |
|---|---|---|
| Online, rate-limited login | 100 | 7.1 x 10^28 years |
| Offline, slow hash (bcrypt, Argon2) | 10,000 | 7.1 x 10^26 years |
| Offline, fast hash (unsalted SHA-1/MD5) | 1 trillion | 7.1 x 10^18 years |
Half the keyspace on average, at rates a well-funded attacker can reach with commodity GPUs today. These numbers only describe guessing. They say nothing about a password that is reused, phished, keylogged, or sitting in a breach dump — which is how passwords are actually lost.
Nothing here is uploaded, logged, or written to storage — reloading the page loses every one of these permanently. Copying puts the password on your system clipboard, where clipboard-history tools can keep it. Wordlists are the EFF Long and Short Wordlists by the Electronic Frontier Foundation, CC BY 3.0 US.
About the Password Generator
Two generators in one. Password mode draws characters uniformly from an alphabet you control — lowercase, uppercase, digits, and a symbol set you can edit to match whatever a particular site actually accepts — at any length from 4 to 128. Passphrase mode draws whole words from a bundled diceware-style list. Every random choice comes from crypto.getRandomValues(), the browser's cryptographic random source, and there is no Math.random() fallback anywhere in the code: V8's generator can have its internal state recovered from a handful of its outputs, which would make every password it produced reproducible. If a browser somehow exposes no secure source, this tool refuses to generate rather than quietly downgrade. Up to 500 at a time, for seeding test accounts or provisioning a batch of devices.
The subtle failure in this problem area is not the randomness — it is the arithmetic that turns random bytes into characters. The obvious implementation is alphabet[randomByte % alphabet.length], and 256 is not a multiple of most alphabet sizes: with the 86-character default set, 84 of the 86 characters come up three times per 256 draws and the remaining two only twice, so most of the alphabet is 50% more likely than the rest. Nothing about the output looks wrong. This tool draws 32-bit words and throws away the values in the non-uniform tail before taking a remainder, so every character really is equally likely.
The at least one of each type switch carries a cost most generators do not admit to. Enforcing it means the password is no longer drawn from every possible string, only from the subset that satisfies the rule, so the true entropy is length × log2(alphabet) *plus* log2 of the fraction of strings that qualify — a little lower, never higher. That fraction is computed exactly here, by inclusion–exclusion across the character classes, and the deduction is shown in the breakdown: about 0.13 bits at 20 characters. The rule is also enforced the honest way, by drawing and re-drawing until a password qualifies. The popular shortcut — plant one character from each class, fill the rest, then shuffle — draws the planted characters from their own class rather than from the whole alphabet, which tilts the result toward passwords that lean on the smaller classes, and quietly makes the reported entropy a description of something the generator is not doing.
Passphrase mode ships the EFF Long Wordlist (7,776 words, 12.92 bits each) and the short list (1,296 words of three to five letters, 10.34 bits each, quicker to type and read back). Six words from the long list is 77.5 bits: memorable, and far beyond any realistic offline attack. The breakdown shows where every bit comes from, including the ones worth nothing — capitalising each word adds zero bits, because it is a fixed rule an attacker can read off this page, and so does the separator. A trailing digit is worth 3.32 bits where one more word is worth 12.92, so if you are tempted to bolt a 1! onto the end, add a word instead.
The strength verdict here is arithmetic, not a guess. A meter that only sees the finished string — the coloured bar on a signup form — has to estimate how guessable it looks; this tool knows exactly how the password was produced, so the bit count is exact. The table converts it into average time-to-guess at three stated rates: a throttled login form, a bcrypt-hashed database dump, and a GPU rig grinding unsalted SHA-1 at a trillion guesses a second. The assumptions are printed because a crack time without them means nothing. What entropy cannot tell you is whether a password was reused, typed into a phishing page, or captured by a keylogger — which is how passwords are actually lost, and no number of bits helps with that.
Everything runs inside your browser using standard web APIs. Your data is never uploaded, never stored on a server, and never leaves your device — you can confirm that by opening your browser devtools Network tab, or by switching off your Wi-Fi and using the tool offline.
Frequently asked questions
Are the passwords generated on my computer or on a server?
On your computer. This is a static page with no backend to send anything to — the generation happens in JavaScript in your tab, using the browser's own crypto.getRandomValues(). Load the page, disconnect from the internet, and every feature including both wordlists still works.
Should I use a password or a passphrase?
Use a password wherever a password manager will type it for you: 20 random characters is about 128 bits and nothing beats it. Use a passphrase for the handful you type by hand — a device login, a disk encryption key, the master password itself — because six words from the long list is 77.5 bits and you can actually remember it. Both are far stronger than anything you would invent.
Why does the entropy drop slightly when I require one of each character type?
Because the rule shrinks the set of possible passwords. Requiring at least one symbol rules out every otherwise-valid password that happens to have none, and entropy is log2 of the number of possible outcomes. The tool computes that fraction exactly and subtracts it — roughly 0.13 bits at 20 characters, more at short lengths. Most generators show length × log2(alphabet) regardless, which slightly overstates what they produce.
How many bits of entropy do I actually need?
Above about 60 bits, no online guessing attack will ever reach you. For anything that matters, aim for 80 bits or more — that is 13 random characters over a full 94-character alphabet, or 7 words from the long list — which stays out of reach even if the site stored your password with a fast unsalted hash and the database leaks. Below about 46 bits, assume a leaked hash falls to a GPU.
Where does the wordlist come from?
They are the EFF Long and Short Wordlists, published by the Electronic Frontier Foundation in 2016 and licensed CC BY 3.0 US. They were built for exactly this purpose: no profanity, nothing under three letters, and entries far enough apart that a typo is unlikely to land on a different word in the list. The tool measures each list's size at runtime rather than hardcoding it, so the bits-per-word figure always matches the data actually shipped.
Is it safe to generate a password in a browser tab?
The page itself makes no network requests and stores nothing, so the password never leaves your machine. The honest caveat is that anything already running with access to your browser — a malicious extension with page access, or malware on the machine — can read what is on screen, and that is equally true of a web-based password manager. If you already run a password manager, its built-in generator has a slightly smaller trusted surface. This tool is for when you need one now, need several hundred, or want to see the real entropy of the settings you are being forced into.