Reused and guessable passwords remain the single most common cause of account takeovers. This tool creates genuinely random passwords right in your browser, using your operating system's cryptographic random number generator. Nothing you generate is transmitted, logged, or stored anywhere; the password exists only on your screen and in your clipboard until you close the tab.
You control every parameter: a length slider from 4 to 64 characters, toggles for lowercase letters, uppercase letters, numbers, and symbols, plus an option to exclude ambiguous characters such as lowercase L, the digit one, uppercase I, uppercase O, and zero. An entropy-based strength meter updates as you adjust the settings, a copy button puts the password on your clipboard, and a batch mode generates 5 strong passwords at once when you need several credentials.
This page also explains the math behind the strength meter, because understanding why a 16-character random password resists cracking is more useful long term than any single password the tool produces.
What Makes a Password Strong?
Password strength comes down to three things: length, character variety, and true randomness. Length matters most because it multiplies the possibilities; variety matters because a bigger character pool means more possibilities per character. Security researchers measure this in bits of entropy. Every additional bit doubles the number of guesses an attacker would need, so the scale grows fast: 40 bits is weak against serious attackers, 60 bits is reasonable, and 80 bits or more is considered very strong.
The entropy of a random password is calculated with a simple formula: bits per character times the number of characters, where bits per character equals the base-2 logarithm of the size of the character pool. A lowercase-only pool of 26 letters gives about 4.7 bits per character. Using all four character sets, roughly 26 lowercase plus 26 uppercase plus 10 digits plus 32 symbols, gives a pool of about 94 characters and about 6.55 bits per character.
| Character sets enabled | Pool size | Bits per character |
|---|---|---|
| Lowercase only | 26 | 4.70 |
| Lowercase plus uppercase | 52 | 5.70 |
| Plus numbers | 62 | 5.95 |
| Plus symbols | 94 | 6.55 |
Entropy at Different Lengths: Real Numbers
Combining the formula with real lengths shows why length dominates. The table below assumes all four character sets are enabled, about 6.55 bits per character, and an offline attacker trying 1 trillion guesses per second, which is a realistic figure for modern GPU cracking rigs.
| Length | Total entropy | Average time to crack at 1 trillion guesses per second |
|---|---|---|
| 8 characters | about 52 bits | hours |
| 12 characters | about 79 bits | thousands of years |
| 16 characters | about 105 bits | billions of years |
| 20 characters | about 131 bits | beyond any practical brute force |
These estimates assume the password is truly random. Human-chosen passwords do not behave this way, because people pick words, names, and patterns that attackers test first with dictionaries and rules. Randomness is exactly what this tool guarantees and what human memory reliably fails to provide.
How to Use the Generator (Step by Step)
- Set the length with the slider. 16 is a strong default for most accounts; go to 24 or higher for master passwords and anything guarding money.
- Enable the character sets the target site allows. More sets mean more entropy per character; if a site rejects symbols, length compensates.
- If you will ever have to type the password by hand, turn on exclude ambiguous characters to remove l, 1, I, O, and 0, which look alike in many fonts.
- Click generate and read the strength meter. Aim for the top band, roughly 80 bits of entropy or more.
- Use the copy button to paste the password directly into the signup or password-change form, ideally into a password manager rather than a sticky note.
- Need several credentials at once? Batch mode generates 5 passwords in one click, all meeting the same rules.
Why crypto.getRandomValues Matters
Not all randomness is equal. The JavaScript function Math.random produces numbers from a deterministic algorithm whose internal state can, in principle, be reconstructed from a few observed outputs. It is fine for games and animations, but it is not acceptable for credentials. This tool instead uses crypto.getRandomValues, which draws from your operating system's cryptographically secure random source, the same entropy pool that generates encryption keys.
Uniform selection is the second half of doing this correctly. A naive approach that maps a random number onto the character pool with simple modulo arithmetic slightly favors some characters over others, which quietly shrinks the real entropy below the theoretical value. This tool maps the random values uniformly across the pool so every character has exactly the same chance of appearing, and the entropy math on the meter stays honest.
What Does Exclude Ambiguous Characters Do?
When a password will be read off a screen and typed manually, into a TV, a printer panel, or a colleague's machine, characters that look alike cause real errors: lowercase L versus the digit one, uppercase I versus lowercase L, uppercase O versus zero. Enabling the exclusion removes l, 1, I, O, and 0 from the pool, shrinking it from 94 to 89 characters. The cost is tiny: a 16-character password drops from about 105 bits to about 104 bits, a negligible loss for a large gain in transcription reliability.
Batch Mode and Best Practices
Batch mode generates 5 passwords per click. It is handy when onboarding several team members, rotating multiple service credentials at once, or when you want to generate a few and pick one to use while safely discarding the rest; every password in the batch is equally strong and none has been seen by any server.
- Use a unique password for every account. One breach should never cascade into ten.
- Store passwords in a reputable password manager instead of a browser profile you do not control or a notes app without encryption.
- Turn on multi-factor authentication wherever it is offered. It protects you even if a password does leak.
- For a password you must memorize, such as the master password of a manager, prefer a long random passphrase of four or more unrelated words over a short password.
- Never send passwords by email or chat. Share credentials through the password manager's own sharing feature or a one-time secret link.