About strong passwords
What makes a password strong
A password is strong when an attacker cannot guess it, even with a fast computer trying billions of guesses per second against a stolen password database. People are bad at this. We pick words, names, dates and keyboard patterns, and we swap a for @ in ways that cracking tools already try first. A password chosen at random by a machine has none of those patterns.
Use a different random password for every account and keep them in a password manager. Then a leak from one site cannot be replayed against your email or bank.
Length beats complexity
Strength is measured in bits of entropy: the length multiplied by log₂ of the number of characters it could be drawn from. Each extra bit doubles the number of guesses needed. Adding a character set helps a little; adding length helps a lot.
With all four sets on, this tool draws from 88 characters, about 6.5 bits per character. An 8-character password from that pool is about 52 bits. A 20-character password using only letters and digits (62 characters) is about 119 bits, which is far beyond any brute-force attack. That is why current NIST guidance (SP 800-63B) favours long passwords over rules that demand a symbol and a capital letter.
Where the randomness comes from
A password is only as random as its source. Math.random() in JavaScript is fast but predictable and should never be used for secrets. This tool uses crypto.getRandomValues(), the browser's cryptographically secure generator, for every character and for the final shuffle. It also places at least one character from each set you enabled, then shuffles the whole string with a Fisher–Yates shuffle, so those guaranteed characters do not always sit at the start.
What this tool does
Choose a length from 1 to 256 (16 is the default) and tick the sets you want: lowercase a–z, uppercase A–Z and special characters !@#$%^&*()-_=+[]{}|;:,.<>?. Digits 0–9 are always included, so with every box unticked you get a digits-only code. Each ticked set is guaranteed at least one character; a password shorter than the number of sets gets one from a random few of them. A new password appears as soon as you change a setting, and Generate makes another with the same settings.
Everything runs in your browser. The password is never sent to a server or saved. Only your settings are remembered in this browser.
Frequently asked questions
- How long should a password be?
- For an account you store in a password manager, 16 to 20 random characters is plenty. For a password you must type from memory, such as the manager's own master password, a long passphrase of several random words is easier to remember and just as hard to crack.
- Why does a website reject my generated password?
- Usually because of a special character the site does not allow, or a maximum length. Untick Special characters and make up the strength with extra length, or shorten the password to the site's limit.
- Is it safe to generate a password on a website?
- It is safe when the password is made in your browser and never sent anywhere, which is how this tool works. You can check by turning off your network connection: the tool keeps working.