What is a Password Generator?
A password generator creates a random string that no person could have guessed or derived from personal details. This one uses `crypto.getRandomValues`, the browser's cryptographically secure random source, so the output is not predictable from the clock or from previous passwords the way `Math.random()` would be.
Strength here is measured in bits of entropy: the base-2 logarithm of the number of possible passwords. A 16-character password drawn from 26 lowercase letters has 16 × log₂(26) ≈ 75 bits. Adding uppercase, digits and symbols raises the pool to 84 characters, so the same length reaches about 102 bits. Length multiplies the search space fastest, which is why a long password of letters beats a short one with every symbol.
The generator takes one character from each selected class before filling the rest at random, then shuffles the result. That guarantee satisfies sites that demand a digit and a symbol, and the shuffle means the required characters are not always in the first positions. It costs a fraction of a bit compared with a purely uniform draw, which is irrelevant at any sensible length.
How to generate a strong password
- Set the length. Sixteen characters is a good default; use 20 or more for a password manager's master password or a disk-encryption key.
- Choose the character types. All four is the usual choice; leave out symbols only if a site rejects them.
- Tick “avoid look-alikes” when the password will be typed by hand or read aloud — it removes 0, O, 1, I and l.
- Press Generate. The password appears with its entropy in bits and a strength band.
- Press Copy and paste it straight into your password manager. Do not retype it or store it in a document.
- Use a different password for every account, and turn on two-factor authentication where it is offered.
Password Generator limits and rules
| Item | Limit |
|---|---|
| Length | 8 to 64 characters |
| Character pools | 26 uppercase, 26 lowercase, 10 digits, 24 symbols |
| Randomness | `crypto.getRandomValues` with rejection sampling — no modulo bias |
| Class guarantee | At least one character from each selected class |
| Look-alikes | Optionally removes 0, O, 1, I and l |
| Entropy shown | Length × log₂(pool size), in bits |
| Storage | Nothing saved; the password lives in page state until you leave |
| Clipboard | Copy uses the browser clipboard; other apps may log it |
When to use it
- Creating a unique password for a new account without inventing a pattern you will reuse.
- Replacing a password after a breach notice, with a length that makes guessing impractical.
- Generating a passphrase-sized secret for a password manager's master password.
- Producing a temporary password to hand to a colleague, using the look-alike option so it can be read aloud.
- Making an encryption key or API token where a random string is required rather than a memorable one.
Is it private?
Everything runs inside your browser. Your text and files are never uploaded, never stored and never seen by anyone else — including me. You can use the tool with the network tab open and watch no request leave the page. Closing the tab erases the input.
Frequently asked questions
The randomness comes from the browser's Web Crypto API, which is the same source used for TLS keys, and the generation runs in the page. Nothing is sent to a server, so the password is not transmitted, logged or stored. The remaining risk is on your device: malware or a malicious extension could read the page, which no web tool can prevent.
Sixteen random characters is comfortable for almost any account. Twelve is the practical minimum for a random password, and eight is only acceptable for a low-value account with rate limiting and two-factor authentication. For a master password, use 20 or more, or a passphrase of five to six random words.
It is the number of bits needed to describe the number of possible passwords. Each extra bit doubles the search space, so 80 bits is about a million billion billion possibilities. Above roughly 75–80 bits, guessing is impractical against a well-designed system; the weak point becomes reuse, phishing or a breach elsewhere.
Because many sites still require it, and a purely random 16-character password has a small chance of containing no digit at all. Taking one from each class removes that failure case. It slightly constrains the distribution, but the entropy cost is under a bit at normal lengths.
Not for strength. Length does far more work: a 20-character lowercase password has more entropy than an 8-character password with every symbol. Symbols help against sites that cap length or use weak hashing, but they also cause problems when a site mishandles them. Prefer length first, then add classes as required.
For anything you have to memorise, yes. Four to six randomly chosen words from a large list are easier to remember and, at five words from a 7,776-word list, about 64 bits — comparable to a 10-character random password and far more memorable. Use the generator here for everything a password manager stores.
No. It exists only in the page's memory while the tab is open. Pressing Generate replaces it, and closing the tab discards it. Save it in a password manager before you navigate away, because there is no history to recover it from.
Related tools
Written and maintained by Md. Nur Hossain Repon.