Skip to content

Password Generator - Generate Secure Random Passwords

20
4128

Characters

5
StrengthVery strong (130 bits)

Random passwords from your browser

Set a length from 4 to 128, pick the character sets (uppercase, lowercase, numbers, symbols), choose how many to make (up to 20) and click Generate. The meter shows the entropy in bits. Each password has its own Copy button.

The symbol set is !@#$%^&*()-_=+[]{}|;:,.<>?/~`. Some of those cause trouble in places that are not password fields: $ and ` in shell scripts and .env files, # in URLs and connection strings, & in query strings. For database passwords and secrets that end up in config, turn symbols off and use a longer password.

Generated passwords are only held in the page. Copy the one you want into your password manager before you close the tab or click Generate again.

Related Tools

Frequently Asked Questions

How are the passwords generated?
With crypto.getRandomValues, the browser's cryptographically secure random number generator, not Math.random. Each character is picked with rejection sampling, so no character is more likely than another. Nothing is sent to a server.
What does the entropy number mean?
It is length times log2 of the pool size: how many guesses an attacker would need, as a power of two, if they knew exactly how you generated it. All four sets give a pool of 91 characters, so 20 characters is about 130 bits. 80 bits is beyond any offline cracking rig today; 128 is the usual target for keys.
What length should I use?
16 or more for an account password you keep in a password manager, 20 or more for the password manager itself or your email. For API keys and secrets nobody types, 32 to 64 characters. If a site rejects symbols, add length instead: 22 letters and digits is about as strong as 20 with symbols.
Does every password include each character type?
Not guaranteed. Characters are drawn independently from the combined pool, so a short password might happen to have no digit. That is a side effect of picking each character at random. If a site insists on one of each, generate a few and pick one that passes, or increase the length.