Password Generator
Free password generator. Create strong, random passwords with uppercase, lowercase, numbers and symbols using secure crypto randomness. Instant, no signup.
About this tool
Weak and reused passwords are the number one reason accounts get hacked. A password generator creates long, random passwords that no human could guess and no attacker could crack in a reasonable time. It is the simplest upgrade you can make to your online security.
This tool builds every password with your browser's cryptographic random number generator, the same kind of randomness operating systems use for security keys. Nothing is sent to any server, nothing is stored, and each password is generated fresh on your device the moment you click the button.
By Azhar Hussain · Last updated: 7 November 2026
How to use
Pick a mode first. Password makes a random string from the character types you choose; Passphrase joins random words you can actually remember; PIN makes a digits-only code for unlocking a device. Sixteen characters is a great default for a password, and four words for a passphrase.
For passwords, choose the length and the character types, then decide about look-alike characters (I, l, 1, O, 0, o) and whether every selected type must appear at least once. The strength meter updates as you type — it shows the entropy in bits and how long an offline attacker would need. Pick a preset for common cases: Wi-Fi, banking, easy-to-type, maximum, or digits-only.
Click Generate Password and your new password appears instantly, with Copy, Copy all and Download .txt buttons for batches. Use the Copy button to copy it straight into a password manager or a signup form. Generate a fresh one for every important account and never reuse passwords across sites.
The math behind it
Password strength comes from entropy, which is just a measure of how many guesses an attacker would need. Each random character multiplies the possibilities: bits = length × log2(pool size). This tool's full pool is 87 characters — 26 uppercase, 26 lowercase, 10 digits and 25 symbols — so a 16-character password has 103.1 bits of entropy, or 87^16 combinations. Crack times on this page assume an offline attacker guessing 100 billion times a second, and count the average case (half the combinations).
The key word is random. Human-chosen passwords follow patterns, but this tool picks every character with crypto.getRandomValues and unbiased rejection sampling — never Math.random(), and never a plain modulo, which favours some characters over others. That unpredictability is what makes the result genuinely strong. One honest caveat: the bits shown are a pool-size estimate — forcing at least one of each type, or excluding look-alikes, trims the real entropy very slightly.
Reading the strength meter
The meter shows two numbers for your exact settings: the entropy in bits, and how long an offline attacker guessing 100 billion times a second would need on average. Bits come from the formula bits = length × log2(pool size), and the crack time counts half the combinations — the average case, not the worst case.
| Bits | Strength | What it means |
|---|---|---|
| Under 40 | Weak | Cracked quickly by an offline attacker — only OK for a throwaway password or a device PIN. |
| 40–60 | Fair | Fine for low-value accounts; add length for anything important. |
| 60–80 | Strong | Solid for everyday accounts. |
| 80–120 | Very strong | The right range for email, banking and anything important. |
| 120+ | Excellent | Far beyond what any offline attack can reach in practice. |
Worked examples: length, entropy and crack time
Every row below is worked out from the tool's own character pool (87 characters) and the 100-billion-guesses-a-second assumption — check any of them by hand with bits = length × log2(pool size).
| Password | Entropy | Crack time (offline, average) | Strength |
|---|---|---|---|
| 16 characters, all 4 types | 103.1 bits | about 1.7 trillion years | Very strong |
| 16 characters, letters + numbers only | 95.3 bits | about 7.6 billion years | Very strong |
| 15 characters, all 4 types | 96.6 bits | about 19.6 billion years | Very strong |
| 12 characters, letters + numbers | 71.5 bits | about 511 years | Strong |
| 12 characters, all 4 types | 77.3 bits | about 29.8 thousand years | Strong |
| 8 characters, lowercase only | 37.6 bits | about 1 second | Weak |
| 4-word passphrase (1,024-word list) | 40.0 bits | about 5 seconds | Fair |
| 4-word passphrase + digit | 43.3 bits | about 55 seconds | Fair |
| 6-digit PIN | 19.9 bits | less than a second | Weak |
The passphrase rows use this tool's 1,024-word list. A 4-word passphrase is only 40.0 bits — fine for something you must memorise, but add a fifth word (50.0 bits, about 2 hours) or a digit and a symbol for anything valuable.
How long should a password be? Length beats complexity
Each extra character multiplies the guesses an attacker needs, so length is the single most powerful lever you have. Here is what length alone does with this tool's 87-character pool:
| Length | Entropy | Crack time (offline, average) |
|---|---|---|
| 8 characters | 51.5 bits | about 5 hours |
| 12 characters | 77.3 bits | about 29.8 thousand years |
| 14 characters | 90.2 bits | about 225.5 million years |
| 15 characters | 96.6 bits | about 19.6 billion years |
| 16 characters | 103.1 bits | about 1.7 trillion years |
| 18 characters | 116.0 bits | about 12.9 quadrillion years |
| 20 characters | 128.9 bits | far beyond the age of the universe |
| 32 characters | 206.2 bits | far beyond the age of the universe |
NIST SP 800-63B Revision 4 (2025) — the current US federal guidance — says a password used on its own must be at least 15 characters, and at least 8 when a second factor is also used. Systems should accept at least 64 characters, must not force composition rules such as “one uppercase, one number, one symbol”, must not force scheduled password changes (change only when there is evidence of compromise), and must check new passwords against a list of common and breached ones. Length beats complexity: adding two characters strengthens a password far more than adding a symbol rule.
Generating a password for a site with strict rules
Some sites still enforce old-fashioned rules. Here is how to satisfy them without weakening your password more than you have to:
- Symbols not allowed: untick Symbols and add length. At 16 characters, dropping symbols takes you from 103.1 bits to 95.3 bits; two more characters — 18 in total — bring it back to 107.2 bits.
- Length capped: set the length to the site's maximum. A 12-character cap still gives 77.3 bits with all four types — Strong, and far better than a short “clever” password.
- Must contain a number or a capital: leave “Guarantee at least one of each selected type” on, so the password passes the site's check first time.
- Check the meter before copying: if it drops below Strong, protect the account with two-factor authentication as well.
Passphrases and PINs: when to use each
Passphrase — for the few passwords you must type from memory: your password-manager master password, or disk encryption. Four random words from this tool's 1,024-word list give 40.0 bits (about 5 seconds against a 100-billion-guesses-a-second offline attack), so use five words (50.0 bits, about 2 hours) or six (60.0 bits, about 67 days) for anything valuable, or add a digit and a symbol. Capitalising the words adds no entropy — it is fixed, not random. Never use a famous quote or song lyric: those are in every cracking dictionary.
PIN — digits only, for unlocking a device. A 6-digit PIN has 19.9 bits and is cracked in less than a second by an offline attacker, so never use one for an account an attacker could try offline. It is only safe as a device lock, where the device itself limits guesses.
Common use cases
- New account, or replacing a password after a breach: generate 16+ characters from all four types and store it in a password manager.
- Wi-Fi password: use the Wi-Fi preset (20 easy-to-read characters, no look-alikes), then share it with a QR code — see our QR Code Generator for a printable guest card.
- Database passwords, API credentials and application secrets: use the Maximum preset (32 characters, all types) — nobody types these, so length costs nothing.
- The one password you must type: your password-manager master password or disk encryption — use a passphrase of five or six words.
- Temporary passwords: new team members, password resets, short-term shared access — generate a batch of up to 50, send each through a different channel from the username, and force a change at first login.
Good password habits: do and don't
Do:
- Use a unique password for every account.
- Store them in a password manager.
- Turn on two-factor authentication wherever it is offered.
- Use the longest password a site allows.
- Change a password when there is evidence of a breach — not on a schedule.
Don't:
- Reuse a password across sites — one leak then exposes every account sharing it.
- Use personal information, dictionary words, 123456 or qwerty.
- Share passwords by email or text message.
- Write passwords on paper or sticky notes.
How it works — and our sources
Strength figures on this page are computed from the tool's own character pool (87 characters: 26 uppercase, 26 lowercase, 10 digits, 25 symbols) and the stated assumption of an offline attacker guessing 100 billion times a second — they are not copied from another site. Randomness comes from crypto.getRandomValues with unbiased rejection sampling, never Math.random() and never a plain modulo, which would favour some characters over others. The bits shown are a pool-size estimate, not an exact entropy guarantee for a constrained generator: forcing at least one of each type, or excluding look-alikes, trims the real entropy very slightly.
Length guidance follows NIST SP 800-63B Revision 4, Digital Identity Guidelines (US National Institute of Standards and Technology, 2025): 15 characters minimum for a password used alone, 8 with a second factor, at least 64 allowed, no forced composition rules, no scheduled rotation.
Frequently asked questions
Is it safe to use an online password generator?
How long should my password be?
What makes a password strong?
Are my generated passwords stored or sent to a server?
Can I use the same password for multiple accounts?
What is entropy, and how many bits do I need?
Passphrase or random password — which should I use?
Can I use a generated password for my bank account?
What does “exclude look-alikes” do?
Should I turn on symbols?
How many passwords can I generate at once — and can I get exactly 15 characters?
How often should I change my passwords — and what if I can't remember them?
Related tools
Random Number Generator
UUID Generator
Barcode Generator
QR Code Generator
Privacy Policy Generator
Random Name Generator
💬 Comments
Have a question about this page, or an idea to make it better? Share it below — your feedback helps everyone who uses this site.