This password generator builds random passwords in your browser using the Web Crypto API (crypto.getRandomValues). Set a length from 4 to 64, tick the character sets you want, optionally exclude look-alike characters, and it returns a password containing at least one character from each chosen set, with a strength estimate.
How to use the Password Generator
- Set the lengthDrag the slider. Sixteen characters is a good default; go longer for important accounts.
- Choose character setsTick uppercase, lowercase, digits and symbols as the site allows. Exclude look-alikes if you will type the password by hand.
- Generate and copyPress the button for a fresh password, then copy it straight into your password manager.
How this password generator creates passwords
Every character comes from crypto.getRandomValues, the browser's cryptographically secure random source, not from Math.random, which is predictable and unsuitable for secrets. The password generator also avoids "modulo bias": when a random number does not map evenly onto the character pool it is thrown away and drawn again, so each character is exactly as likely as any other.
To make sure the result satisfies sign-up rules, one character is drawn from each set you ticked, the rest are drawn from the whole pool, and the positions are then shuffled with the same secure source.
Everything happens on your device. The password is never sent over the network, logged or stored, and it disappears when you close or reload the page.
How strong is a random password?
Strength is measured in bits of entropy: length × log2(pool size). With all four sets the pool has 86 characters, about 6.4 bits each.
- 8 characters: about 51 bits. Too weak for anything important.
- 12 characters: about 77 bits. Reasonable for most accounts.
- 16 characters: about 103 bits. Strong.
- 20 or more: beyond any realistic guessing attack.
Each extra character multiplies the number of possibilities by the pool size, so length beats complexity. A longer password from fewer sets can be stronger than a short one with every symbol.
Using generated passwords safely
Random passwords are hard to remember by design, so store them in a password manager and use a different one for every account. That way a breach at one site cannot unlock the others. Turn on two-factor authentication wherever it is offered.
The "exclude look-alikes" option removes characters such as capital I, lowercase l, the digit 1, capital O and zero. It slightly shrinks the pool, so add a character or two to compensate. To test a password you already use, try the password strength checker; for tokens and IDs, see the random string generator.
Frequently asked questions
Is this password generator safe to use?
Yes. Passwords are created in your browser with the Web Crypto API and are never transmitted, logged or saved. You can disconnect from the internet after the page loads and it still works.
How long should my password be?
Use at least 12 characters for everyday accounts and 16 or more for email, banking and your password manager. Length adds more strength than extra symbols.
What does "exclude look-alikes" do?
It leaves out characters that are easy to confuse, such as I, l, 1, O, 0, o and the vertical bar. That helps when you need to read a password aloud or type it by hand.
Are the passwords truly random?
They use crypto.getRandomValues, a cryptographically secure generator provided by your browser and operating system, with rejection sampling so that no character is favoured.
Can I get the same password again?
No. Nothing is stored, so once you leave the page a password cannot be recovered. Copy it into a password manager before you close the tab.
Last updated 24 November 2026 by the TheTechFolk team.