Password Generator
Generate strong passwords and memorable passphrases.
How to use the Password Generator
- 1Choose password, passphrase or PIN.
- 2Set the length and character sets you need.
- 3Copy the result, or generate a whole batch and download it.
About Password Generator
The Password Generator creates random passwords, memorable passphrases and numeric PINs. Passwords can be 4 to 128 characters long and draw from uppercase letters, lowercase letters, digits and symbols. You can leave out look-alike characters such as I, l, 1, O and 0, exclude any characters a system rejects, and require at least one character from every selected set.
Passphrases join 3 to 12 random words from a list of common English words, with a separator of your choice, optional capital letters and an extra number or symbol. PINs have 4 to 12 digits. For every result the strong password generator shows the entropy in bits, a strength rating and an estimate of how long an offline attack at 10 billion guesses per second would need on average. A batch mode creates up to 50 values at once to copy or download as a text file.
Use it when you sign up for a new account, set a Wi-Fi or router password, create service credentials for a server or need a passphrase for a password manager's master password. Developers and admins can also use the random password generator to fill test accounts with realistic credentials.
Frequently asked questions
How long should a password be?
Longer is better because every extra character multiplies the number of guesses. A random 16-character password from all four character sets has more than 100 bits of entropy, which is far beyond what offline attacks can try. For accounts you have to type often, a passphrase of five or six words is easier to remember.
What does password entropy mean?
Entropy measures how many guesses an attacker needs, in bits: length times log2 of the number of possible characters. Each additional bit doubles the work, so a 60-bit password takes about a million times longer to crack than a 40-bit one.
Is a passphrase as secure as a random password?
It can be. Each word picked at random from this generator's list of about 1,500 words adds roughly 10.6 bits, so six words give about 63 bits. That is less per character than a random password, but much easier to remember and type.
How are the passwords generated, and are they stored?
Every character and word is chosen with the browser's cryptographic random number generator (crypto.getRandomValues), without modulo bias. Generation happens on the page itself, and the results are neither sent anywhere nor saved.
Guides
- How Two-Factor Authentication Works (and Which Type to Use)What really happens behind those six-digit codes, how SMS, authenticator apps, security keys and passkeys compare, and how to avoid locking yourself out.
- How to Encrypt a File With a PasswordProtect a document before emailing it or storing it in the cloud: what strong encryption looks like, how to choose a password, and how to do it in your browser.
More in Developer Tools
Create QR codes for links, Wi-Fi and contacts with custom colors.
Get lorem ipsum and realistic test data as JSON, CSV or SQL.
Build regular expressions from simple rules and test them live.