Skip to content

Strong Password Generator

Random passwords of 8–128 characters or passphrases of random words, with a strength meter based on real entropy. Nothing is sent or saved.

  • Free
  • No sign-up
  • Runs locally

Strong Password Generator tool

Runs in your browser; what you enter is not uploaded to our servers.

Updated · By

What this password generator does

This password generator creates strong random passwords and memorable passphrases in your browser, then shows how strong each one really is. Strength is not a guess based on how the password looks. It comes from the math of how the password was made: the number of equally likely results the generator could have produced, expressed as bits of entropy, and the average time a fast offline guessing setup would need to find it.

There are two modes. Random password builds 8 to 128 characters from uppercase and lowercase letters, numbers and 28 widely accepted symbols. Passphrase joins 3 to 10 words picked from a built-in list of 1,500 short English words, such as Maple-Orbit-Cozy7-Harbor-Sprint-Teal. You can make up to 20 at once, copy any one with a click, or copy the whole batch.

How to use it

  1. Pick a mode. Use Random password for anything a password manager will fill in for you. Use Passphrase for the few secrets you have to type from memory.
  2. Set the length. Drag the Length slider or type a number (8–128, default 16). In passphrase mode, choose the Number of words (3–10, default 6).
  3. Choose character types. Turn uppercase, lowercase, numbers and symbols on or off. Every type you select is guaranteed to appear at least once.
  4. Handle picky sites. Exclude ambiguous characters removes 0 O 1 l I | for passwords you must read or type. For a site's own rules, see the table in "Matching a site's password rules" below.
  5. Passphrase options. Pick a separator (hyphen, space, period, underscore or your own), capitalize each word, and optionally add one random digit. Each phrase shows its length in characters, so you can check it against a site's maximum.
  6. Generate and copy. Results update the moment you change a setting. Press Generate new for a fresh set, Hide to mask them on a shared screen, and Copy next to the one you want.

If your settings make a password impossible (say, "no repeats" at a length longer than the available characters), the tool explains why instead of quietly producing something weaker.

How the strength meter works

A randomly generated password has entropy of:

bits = length × log2(size of character set)

For passphrases the "characters" are whole words:

bits = words × log2(size of word list)

Each bit doubles the number of possibilities. On average an attacker has to try half of them, so the tool estimates:

average time = 2^(bits − 1) ÷ 10,000,000,000 guesses per second

Worked example. The default password is 16 characters from 90 possible characters (26 + 26 + 10 + 28). That is 16 × log2(90) = 16 × 6.49 ≈ 103.9 bits. Because the tool also guarantees at least one character of each type, it removes the passwords that miss a type and counts what is left exactly, which gives 103.6 bits: about 1.6 × 10^31 possible passwords. At ten billion guesses per second, finding one takes on average about 25 trillion years.

The labels are: Weak under 48 bits, Fair 48–63, Strong 64–79 and Very strong 80 or more. At the assumed speed, 48 bits falls in about 4 hours, 64 bits takes about 29 years and 80 bits about 1.9 million years.

Why 10 billion guesses per second?

The real speed depends on how the site stored your password. In hashcat's published benchmark for a single RTX 4090 graphics card, it tests about 164 billion MD5 guesses per second, 22 billion SHA-256 guesses, and only about 184,000 bcrypt guesses at a low cost setting (most sites use a higher, slower one). Ten billion per second sits between those extremes, so treat the estimate as a reference point, not a promise. If you want a safety margin, multiply the speed by 100: the default 16-character password still needs an average of about 250 billion years, while 8 random characters from all four types fall in about 17 minutes instead of 1 day.

Password strength by length

These are the exact figures the tool shows for 8, 12, 15, 16, 20 and 32 characters, at 10 billion guesses per second. The exact count leaves out passwords that miss a selected type, so it sits slightly below the simple formula: 8 characters from all four types read 50.8 bits, not 51.9.

LengthAll four types (90 characters)Letters and numbers only (62)
850.8 bits, Fair, 1 day47.1 bits, Weak, 2 hours
1277.4 bits, Strong, 321 thousand years71.2 bits, Strong, 4.5 thousand years
1597.0 bits, Very strong, 266 billion years89.2 bits, Very strong, 1.1 billion years
16 (default)103.6 bits, Very strong, 25 trillion years95.1 bits, Very strong, 71 billion years
20129.6 bits, Very strong, about 10^21 years119.0 bits, Very strong, about 10^18 years
32207.7 bits, Very strong, about 10^44 years190.5 bits, Very strong, about 10^39 years

Length does more than extra character types: 16 lowercase letters give 75.2 bits, more than 12 letters and numbers (71.2). These figures only hold for passwords a machine picked at random. Summer2025! also has 11 characters from four types, but it sits near the top of every guessing list because people choose it.

  • 8 characters only when a site accepts nothing longer, and with two-factor authentication turned on.
  • 12 characters is a minimum some sites set, and it rates Strong with or without symbols.
  • 15 characters is NIST's minimum when a password is the only login factor.
  • 16 characters, the default, for everyday logins a password manager fills in. Use a different one for every site.
  • 20 or more for very important accounts such as email and banking.
  • 32 letters and numbers for database passwords, API secrets and environment variables. With no symbols, there is nothing to quote or escape in shell scripts, URLs and config files.

NIST's digital identity guidelines (SP 800-63B, revision 4, finalized in 2025) ask for at least 15 characters when a password is the only login factor (8 when it is paired with another factor), recommend that services accept at least 64 characters including spaces, and forbid composition rules such as "one uppercase, one symbol". They also forbid forced periodic password changes and require new passwords to be checked against lists of known-compromised ones. In short: length and randomness over complexity. NIST's full password rules, including expiry, blocklists and what a sign-in page should accept, are summarized in How long should a password be? What NIST says.

Passphrases: passwords made from random words

A passphrase is easier to type and remember than random characters. To make one:

  1. Switch to the Passphrase tab.
  2. Set the Number of words (6 by default).
  3. Pick a separator. Capitalize words and Add a number cover sites that demand an uppercase letter and a digit.

The xkcd comic "Password Strength" (number 936) made the case memorably: Tr0ub4dor&3 looks complex but follows a common pattern (dictionary word, predictable substitutions, digit and symbol at the end) and carries about 28 bits. Four truly random words, as in "correct horse battery staple", carry about 44 bits and are far easier to remember.

Each word from this tool's 1,500-word list adds log2(1,500) ≈ 10.55 bits, the same as about 1.6 random characters from the full 90-character set. Diceware lists such as the EFF's 7,776-word list give 12.9 bits per word; this list trades about 2.4 bits per word for shorter, easier words, so add one extra word. The added digit can follow any word, which adds about 6 bits to a six-word phrase:

WordsWithout the digitWith the digit (default)
442.2 bits, Weak, 4 minutes47.5 bits, Weak, 3 hours
552.7 bits, Fair, 4 days58.3 bits, Fair, 220 days
6 (default)63.3 bits, Fair, 18 years69.2 bits, Strong, 1.1 thousand years
773.8 bits, Strong, 27 thousand years79.9 bits, Strong, 1.9 million years
884.4 bits, Very strong, 41 million years90.7 bits, Very strong, 3.2 billion years

Six words plus the digit (69.2 bits, Strong) suit everyday secrets you type from memory, such as a computer login. For a password manager's master password or your email, use 8 words (84.4 bits), which clears the tool's 80-bit advice; 7 words plus the digit reads 79.9, just under it.

How long the phrase is. The words are 3 to 7 letters, 5.2 on average, so six words with a one-character separator and the digit come to 24–48 characters, about 37 on average. Wi-Fi passphrases stop at 63 characters, and eight words plus the digit can reach 64, so use 7 or fewer words with a single-character separator there.

Sites that cap length at 12 to 16 characters. Even three of the shortest words with separators take 11 characters, 12 with the digit, and rate Weak (31.6 bits, or 36.5 with the digit). Under a cap like that, use Random password instead: 12 random characters from all four types give 77.4 bits.

The generator must choose the words. A phrase you invent, like a song lyric, has a fraction of the entropy, because the strength comes from the random choice. That is also why the tool does not turn a sentence you type into a password: a sentence you picked has no randomness for the meter to measure.

How the randomness works

Every random choice comes from crypto.getRandomValues, the browser's cryptographically secure pseudorandom number generator (CSPRNG), seeded by the operating system and used by browsers to create encryption keys. Math.random is never used; it is not designed to be unpredictable.

Two details keep the output unbiased:

  • No modulo bias. Turning a random 32-bit number into a choice among 90 characters with a plain remainder would make some characters slightly more likely. The tool discards the few values that would cause this (rejection sampling), so every character is exactly equally likely.
  • "One of each type" without shortcuts. Many generators place one character of each type and fill in the rest, which subtly changes the odds. This tool draws a completely random password and simply draws again if a selected type is missing. Every valid password is equally likely, which is why the entropy figure can be exact.

Which setting for which job

  • Website logins and developer secrets: see the length list in "Password strength by length" above.
  • Password manager master password: an 8-word passphrase (84.4 bits). You will type it often, so pick a separator that is easy to type.
  • Home Wi-Fi (WPA2/WPA3 personal): the passphrase must be 8–63 characters. A 5- or 6-word passphrase with spaces is easy for guests to read aloud and type on a TV remote. Turn on Exclude ambiguous characters if you use random characters instead.
  • IT onboarding: generate 20 temporary passwords at once with ambiguous characters excluded and require a change at first sign-in.

Matching a site's password rules

Rule the site showsWhat to set
At least 8 characters, upper and lower case, and a numberUppercase, Lowercase and Numbers on; symbols optional. Each selected type is guaranteed. Use 12 or more: 8 letters and numbers read 47.1 bits (Weak), 12 read 71.2 (Strong).
No special charactersSymbols off.
Must include a special characterSymbols on. At least one is guaranteed.
Only certain symbols allowedType the symbols the site does not list into Never use these characters.
Maximum 16 (or 20) charactersType the maximum into the Length box.
No repeated charactersTurn on No repeated characters.
Must start with a letterThere is no setting for this. Set How many to generate to 5 and copy one that starts with a letter.

Password managers and two-factor authentication

A strong password only helps if it is unique: reuse means a breach at the weakest site exposes all the others. A password manager generates, stores and fills a different random password for every account, and you remember just one passphrase.

Add two-factor authentication wherever it is offered, starting with email, banking and the password manager itself. Passkeys or a hardware security key are strongest, then an authenticator app; SMS codes can be intercepted through SIM swaps but beat nothing. With a second factor, a stolen password alone is not enough to sign in.

Common password myths

  • "Swapping letters for symbols makes it strong." P@ssw0rd is on every guessing list; guessing tools apply these substitutions automatically.
  • "Complexity matters more than length." Each extra character multiplies the possibilities; one mandatory symbol barely does. That is how 16 plain lowercase letters out-score 12 letters and numbers.
  • "Change your password every 90 days." Forced rotation produces predictable patterns. Change a password when it may have been exposed.
  • "If it looks random, it is random." Keyboard walks like qwerty123 and personal details look messy but are some of the first things tried.
  • "An online generator can see my password." Some could. This one runs entirely on your device; go offline and it keeps working.

Privacy and limitations

Everything happens in your browser. No password is sent over the network, logged, or written to storage; refreshing the page produces new ones. Only your settings (mode, length, toggles) are remembered in this browser's local storage.

The time-to-guess figure is an educational estimate at a fixed 10 billion guesses per second. Real attacks are far slower against sites that use bcrypt or Argon2, faster with many graphics cards against MD5 or NTLM, and instant if the password has already leaked, because entropy no longer matters once an attacker has the password itself. The strength meter rates the generator's output, so it cannot score a password you typed yourself. A generated password is only as safe as where you keep it: use a password manager, not a text file or a sticky note.

Frequently asked questions

Is it safe to use an online password generator?

It is safe when the password is created on your device and never transmitted. This generator runs entirely in your browser using crypto.getRandomValues, the same cryptographically secure random source browsers use for encryption keys. Nothing is sent to a server or written to storage; only your settings are remembered. You can check this by loading the page, switching off your internet connection and generating as many passwords as you like.

How long should a strong password be?

For a random password stored in a password manager, 16 characters using letters, numbers and symbols gives about 104 bits of entropy, which is far beyond any practical guessing attack. Use 20 or more for very important accounts. NIST's current guidance asks for at least 15 characters when a password is the only login factor, and at least 8 when it is combined with a second factor such as an authenticator app.

Is a passphrase better than a random password?

A passphrase is better when you must remember or type the secret, such as a computer login or your password manager's master password. Six random words from this tool's 1,500-word list plus one digit give 69.2 bits, and eight words give 84.4 bits, enough for a master password, while staying easy to type. For everything a password manager fills in for you, a random character password is shorter for the same strength.

What does entropy in bits mean?

Entropy measures how many equally likely passwords the generator could have produced. Each extra bit doubles that number. It is calculated as length × log2(character set size) for random passwords, or words × log2(word list size) for passphrases. A 16-character password from 90 characters has about 2^104 possibilities. Entropy describes the generation method, so it only applies to passwords a machine picked at random, not ones a person invented.

How is the time-to-guess estimate calculated?

The tool divides half the number of possible passwords (the average an attacker must try) by 10 billion guesses per second. That is a middle-of-the-road rate for an offline attack on a stolen database: one high-end graphics card tests about 22 billion SHA-256 or 164 billion MD5 guesses per second, but only around 184,000 bcrypt guesses. Treat it as security education, not a guarantee. Even at 100 times the speed, the default 16-character password needs about 250 billion years.

Why does a website reject my generated password?

Some sites still limit length (often 16, 20 or 32 characters) or refuse certain symbols such as < > or quotation marks, so a password that breaks either rule is turned away. The rules table on this page shows the setting that meets each common rule. If a site caps passwords at a very short length, protect the account with two-factor authentication as well.

Should I change my passwords regularly?

No, not on a schedule. NIST SP 800-63B tells organizations not to force periodic password changes, because people respond with predictable tweaks such as Summer2025! becoming Fall2025!. Change a password when there is evidence it was exposed: a breach notification, a phishing incident, or reuse on a site that leaked. A unique random password per site, plus two-factor authentication, matters far more than rotation.

How do I remember strong random passwords?

You don't need to. Store them in a password manager (Bitwarden, 1Password, KeePassXC, Apple Passwords or your browser's built-in manager) and memorize only one strong passphrase that unlocks it, plus your device login. For those one or two secrets, use the Passphrase mode (eight words for the master password) and practice typing them for a few days until they stick.

Guides on this topic

All guides

Published · Updated · Built and tested by · How we test

Found a bug or have an idea? Tell us