Password Generator
Generate strong random passwords with the length and character types you choose.
Strong Password Generator
Random passwords, passphrases and PINs created locally in your browser.
About the Strong Password Generator
This free tool creates random passwords, memorable passphrases and numeric PINs directly in your browser. Randomness comes from the Web Crypto API (crypto.getRandomValues), the cryptographically secure generator built into modern browsers, rather than Math.random(), which is not designed for security. Characters are drawn without modulo bias, and every character type you select is guaranteed to appear at least once.
Nothing you generate is transmitted, stored or logged. There is no account, no limit and no tracking of the passwords themselves. Alongside each result you get an entropy figure and a rough crack-time estimate so you can see why length matters more than complexity.
How to Use
- 1Choose a type: Password for password-manager accounts, Passphrase for things you must type from memory, PIN for numeric codes.
- 2Set the length and the character types. 16 characters with all four types is a good default.
- 3Watch the strength meter and entropy. Aim for 80 bits or more for important accounts.
- 4Click Copy and paste it straight into your password manager or the sign-up form. The value is not saved here.
Key Features
- Cryptographically secure randomness, with no modulo bias
- Passwords from 8 to 64 characters with a guarantee of every selected type
- Passphrase mode with an adjustable word count and separator
- Exclude look-alike characters (l, 1, O, 0) and awkward symbols
- Entropy in bits and a crack-time estimate for every result
- Bulk generation of up to 20 at once, with show and hide
- Free, no sign-up, and works offline after the page loads
What Makes a Password Strong?
Password strength is measured in entropy: the number of bits of unpredictability. A password with N bits of entropy takes about 2N guesses to find by brute force, and every extra bit doubles the work. Entropy comes from two things only: how many characters you use, and how many different characters each position could be, provided each one is picked at random.
That is why a human-chosen password is weaker than it looks. People follow patterns, such as a capital first letter and digits at the end, and attackers check those patterns first. A randomly generated password has no pattern to exploit. The table below shows the entropy of random passwords and how long an attacker making ten billion guesses per second would need on average.
| Character set | Shorter | Medium | Longer |
|---|---|---|---|
| Digits only (10) | 4 chars, 13 bits instantly | 6 chars, 20 bits instantly | 8 chars, 27 bits instantly |
| Lowercase letters (26) | 8 chars, 38 bits 10 seconds | 12 chars, 56 bits 55 days | 16 chars, 75 bits 69,094 years |
| Upper + lower + digits (62) | 8 chars, 48 bits 3 hours | 12 chars, 71 bits 5,112 years | 16 chars, 95 bits 75.5 billion years |
| All printable symbols (about 90) | 8 chars, 52 bits 2 days | 12 chars, 78 bits 447,483 years | 16 chars, 104 bits 29359.3 billion years |
Estimates assume purely random characters and a fast offline attack on a weakly protected password database. Sites that use slow hashing such as bcrypt or Argon2 are far harder to attack.
Passwords vs. Passphrases vs. PINs
Passwords
Best for accounts managed by a password manager. A 16 to 20 character random string is strong and you never have to remember it.
Passphrases
Several random words joined together. Each word from our 206-word list adds about 7.7 bits, so five words give roughly 38 bits. Ideal for your master password or device login.
PINs
Short numeric codes with very little entropy. Acceptable only where the system locks you out after a few wrong tries.
Common Password Mistakes
Reusing one password everywhere
When one site is breached, attackers try the leaked email and password combination on banks, email and social networks. This is called credential stuffing and it is the most common way accounts are taken over. Use a different password for every account.
Using personal information
Names, birthdays, phone numbers, pet names and favourite teams are the first things an attacker guesses, and many of them can be found on your public profiles. Random generation removes the pattern completely.
Predictable substitutions
Swapping an a for @ or an o for 0 in a dictionary word (p@ssw0rd) fools nobody. Cracking tools apply these substitutions automatically. Length and true randomness matter far more than clever tricks.
Short passwords with many symbols
Every extra character multiplies the number of guesses needed, while a larger character set only adds a small amount. A 16-character password with letters and digits is stronger than an 8-character one with every symbol.
Storing passwords in notes or chats
Plain text notes, spreadsheets and messaging apps are easy to search and easy to leak. Use a password manager, which stores passwords encrypted behind one strong master password.
Skipping two-factor authentication
Even a perfect password can be phished. Turn on two-factor authentication, preferably with an authenticator app or a hardware key, for email, banking and any account that can reset others.
Best Practices for Staying Secure
- Use a reputable password manager so every account can have a unique, random password without you memorising any of them.
- Protect the manager itself with a long passphrase of five or more random words and turn on two-factor authentication.
- Enable two-factor authentication on your email first. Email can reset almost every other account.
- Change a password straight away if a service reports a breach, and check whether your address appears in known leaks.
- Do not change passwords on a fixed schedule without a reason. Frequent forced changes lead to weaker, predictable choices; change them when there is evidence of compromise.
- Be careful on shared computers: copy the password, paste it, and clear the clipboard afterwards.
Frequently Asked Questions
Is this password generator safe to use?+
Yes. Passwords are generated entirely in your browser using the Web Crypto API (crypto.getRandomValues), the same source of randomness browsers use for cryptography. Nothing is sent to our servers, stored, or logged. You can even disconnect from the internet after the page loads and it will keep working.
How long should my password be?+
For most accounts, 16 characters with a mix of character types is a strong choice. For your email, password manager master password and financial accounts, consider 20 characters or more, or a passphrase of five to six random words. Anything under 12 characters is increasingly easy to crack with modern hardware.
What does the entropy figure mean?+
Entropy, measured in bits, describes how unpredictable a password is. Each extra bit doubles the number of guesses an attacker needs. Under 40 bits is weak, 60 bits is reasonable for low-value accounts, and 80 bits or more is very strong. We calculate it from the length and the size of the character pool, assuming every character is chosen at random.
How accurate is the crack time estimate?+
It is a rough illustration, not a guarantee. We assume an attacker with a stolen password database can make ten billion guesses per second and needs to search half the possibilities on average. Real speeds depend on how the site stores passwords: a well-designed site using bcrypt, scrypt or Argon2 slows attackers by many orders of magnitude, while a poorly designed one may be much weaker than the estimate.
Should I use a password or a passphrase?+
Passwords are best when a password manager will remember them for you. Passphrases, such as five unrelated words, are easier to type and remember, which makes them ideal for things you must enter by hand: a device login, your password manager master password or disk encryption. Our word list has about 206 words, so each word adds roughly 7.7 bits of entropy.
Why exclude similar or ambiguous characters?+
Characters such as l, 1, I, O and 0 look alike in many fonts, which causes mistakes when you read a password aloud or type it from paper. Excluding them slightly reduces entropy but makes the result easier to transcribe. Excluding ambiguous symbols helps when a site or a shell script does not accept quotes, brackets or slashes.
Do you save the passwords I generate?+
No. Generated values exist only in your browser tab. When you refresh or close the page they are gone, so copy a password into your password manager or the site's sign-up form before leaving.
Is a PIN as secure as a password?+
No. A six-digit PIN has only a million possibilities, about 20 bits of entropy. PINs are only appropriate where the system limits the number of attempts, such as a phone lock screen or a bank card. Never use a PIN to protect something an attacker can try offline.
More Free Tools
More free tools
PDF to Word
Convert PDF files into editable Word documents, including scans with OCR.
Open tool ImageImage Compressor
Reduce image file size and choose your own quality level. JPG, PNG and WebP.
Open tool DeveloperQR Code Generator
Create QR codes for links, text and Wi-Fi, then download them as images.
Open tool