Password Generator
Strong random passwords generated in your browser, with the entropy behind the strength rating.
Updated
Include
Your password
—
104bits
of entropy — rated very strong
- Strength
- Very strong
- Character pool
- 89 characters
- Time to crack
- 2 trillion years
Very strong
“Time to crack” assumes an offline attacker making 100 billion guesses a second against a fast hash — a deliberately pessimistic yardstick. A site that stores your password properly would take far longer. The real risk is reuse: a unique password per account matters more than any of these numbers.
In short
How long should a password be?
At least 15 characters when the password is the only thing guarding an account — what NIST SP 800-63B rev 4 requires of verifiers for single-factor passwords. This tool defaults to 16 random characters from a pool of 89, about 104 bits of entropy. Length beats complexity: every extra character multiplies it by 89.
Length only helps if the password is genuinely random, because a 15-character phrase you invented yourself carries far less unpredictability than its length suggests.
How to use the password generator
Set the length with the slider, tick the character sets you want, and a fresh password appears immediately — every change generates a new one. The defaults are 16 characters drawn from lowercase, uppercase, digits, and symbols, a pool of 89 possible characters at each position, which is a sensible starting point for almost any account. Copy it with the button, or press “New password” if you want a different one.
Nothing is generated on a server and nothing is transmitted: the password exists only in the page in front of you, it is never written into the URL, and closing the tab destroys it. That last point is worth taking seriously, because a generator that produces your password anywhere other than your own device has to be trusted with every password it has ever produced.
16
Default length
NIST asks 15+ for single-factor
89
Character pool
all four sets switched on
104 bits
Entropy at the defaults
very strong starts at 80
The randomness comes from your browser’s cryptographic generator, not from the ordinary random function most scripts reach for — that one is a fast, predictable-by-design pseudo-random number generator and has no business guarding an account. Characters are also picked by rejection sampling rather than by taking a random byte modulo the pool size, because the modulo shortcut makes the first few characters of the alphabet measurably more likely to appear.
The same randomness, a different job
The random number generator draws from the same cryptographic source and uses the same rejection sampling, for draws and ranges rather than for passwords.
Open the random number generator →The strength reading is entropy in bits: how much genuine unpredictability the settings produce. The tool bands that figure into five ratings, from very weak up to very strong, with the thresholds set here.
- Very weak
- below 28 bits
- Weak
- below 36 bits
- Fair
- below 60 bits
- Strong
- below 80 bits
- Very strong
- 80 bits and above
None of this matters as much as using a different password everywhere. The practical answer is a password manager — it remembers a unique long password per account so you never have to, which is the only realistic way to make every account independent of every other one.
NIST SP 800-63B, revision 4, points the same way: it tells verifiers to screen new passwords against blocklists of known-compromised values and to force a change only when there is evidence of compromise, not on a calendar.
Do
- Set the length first, before touching the character sets.
- Add two or three characters when a site refuses one of the sets.
- Paste the result straight into a password manager entry.
- Read the entropy figure rather than how messy the string looks.
Don't
- Untick symbols and keep the same length out of habit.
- Try to memorise or write down a generated 16-character string.
- Quote a crack time without saying which attacker it assumes.
- Reuse one generated password across several accounts.
Entropy, the rating this tool assigns, and the estimated time to exhaust the search space, by password length with all four character sets switched on.
| Length | Entropy | Rating | Estimated time to crack |
|---|---|---|---|
| 4 characters | 26 bits | Very weak | Instantly |
| 6 characters | 39 bits | Fair | 2 seconds |
| 8 characters | 52 bits | Fair | 5 hours |
| 10 characters | 65 bits | Strong | 5 years |
| 12 characters | 78 bits | Strong | 39 thousand years |
| 14 characters | 91 bits | Very strong | 310 million years |
| 15 characters (NIST single-factor minimum) | 97 bits | Very strong | 28 billion years |
| 16 characters (default here) | 104 bits | Very strong | 2 trillion years |
| 18 characters | 117 bits | Very strong | Longer than the age of the universe |
| 20 characters | 130 bits | Very strong | Longer than the age of the universe |
| 24 characters | 155 bits | Very strong | Longer than the age of the universe |
| 32 characters | 207 bits | Very strong | Longer than the age of the universe |
| 64 characters (the maximum here) | 414 bits | Very strong | Longer than the age of the universe |
What does the time-to-crack figure assume?
Alongside it sits a time-to-crack estimate that assumes an offline attacker making 100 billion guesses per second against a fast hash such as MD5 or SHA-1 — a deliberately pessimistic yardstick, not a forecast.
Real offline cracking rates vary enormously with the hashing algorithm the site chose: a password stored with bcrypt, scrypt, or Argon2 slows the same hardware down by orders of magnitude, while a password guessed through a rate-limited login form is a completely different problem measured in guesses per minute rather than per second.
Full guide
How Long Should a Password Be?
Eight characters with every symbol you can find: 5 hours. Twelve lowercase letters and nothing else: 6 days.
Read the full guide →The formula, worked line by line
Strength is measured in bits of entropy — how much unpredictability a randomly generated password actually carries. It depends on exactly two things: how long the password is, and how many characters it could have been drawn from at each position. Nothing else about the string matters, which is why a capital letter on the front and an exclamation mark on the end buy almost nothing.
Because entropy is a logarithm, the two levers behave very differently. Widening the pool adds bits per character in a slow logarithmic way, while adding characters multiplies the whole search space each time. Going from 62 characters to 89 in the pool adds about half a bit per position; adding one character to the length adds a full 6.48 bits at that pool size, more than twelve times as much.
pool size = 26 lowercase + 26 uppercase + 10 digits + 27 symbols = 89
entropy (bits) = length × log₂(pool size)
expected guesses = 2^(bits − 1) — half the space, on average
expected time to crack = 2^(bits − 1) ÷ 100,000,000,000 guesses per second- Pool
- 26 + 26 + 10 + 27 = 89 characters
- Bits per character
- log₂(89) = 6.4757
- Length
- 16 characters
- Entropy
- 16 × 6.4757 = 103.61 bits
- Displayed
- 104 bits, very strong
For the crack time the tool halves the space, since an attacker expects to find the answer halfway through on average: 2^102.61 ÷ 100,000,000,000 is about 7.7 × 10^19 seconds, or roughly 2 trillion years. Drop to 8 characters and the same arithmetic gives 51.81 bits and about 5 hours — the entire difference is eight characters.
Every crack time on this page assumes one specific attacker: an offline one, working from a stolen password file with no rate limit, at 100,000,000,000 guesses per second against a fast hash of the MD5 or SHA-1 class. State that assumption whenever you quote one of these numbers, because offline cracking rates vary enormously with the algorithm the site used.
The same hardware pointed at bcrypt with a sensible work factor, or at scrypt or Argon2, manages a minuscule fraction of that rate, so the real figure for a well-built site is far larger than the one shown. An online attacker guessing through a login form that locks out or throttles is not in the same universe at all. The figure here is a floor to design against, not a forecast of how long anyone would actually take.
“Verifiers SHALL require passwords used as a single factor to be a minimum of 15 characters, SHALL NOT impose composition rules requiring mixtures of character types, and SHALL NOT require subscribers to change passwords periodically — only when there is evidence of compromise.”
This is also why the old advice — eight characters with a capital, a digit, and a symbol — has been retired. Eight characters from the full 89-character pool is only 52 bits, which this tool rates merely fair, and the composition rules that came with it pushed people towards predictable substitutions that guessing software already models.
Revision 4 also requires new passwords to be screened against a blocklist of commonly used, expected, or compromised values. A generated password satisfies all of that by construction, because it was never a human choice in the first place.
Questions people ask
How long should a password be?
Sixteen characters is the default here and a good answer for most accounts — with all four character sets on that is about 104 bits, well past the very strong threshold. NIST SP 800-63B, revision 4, sets 15 characters as the minimum a verifier should require when the password is the only authentication factor, and 8 characters only when it is one factor of several. Twelve is a reasonable floor if a site limits you. Since you will not be typing these from memory anyway, there is little reason not to go longer: every extra character multiplies the search space by the full pool size.
Are symbols necessary?
Helpful, but much less important than length. Turning symbols off drops the pool from 89 to 62, which costs about half a bit per character — meanwhile each character you add is worth roughly 6.5 bits. A 20-character password with no symbols comes to about 119 bits, comfortably ahead of a 16-character one that has them at 104. So if a site refuses symbols, add length instead of arguing with it. This is the same reasoning behind NIST SP 800-63B, revision 4, telling verifiers not to impose composition rules at all: mandating a symbol produces predictable placements rather than genuine unpredictability.
Is this password generator safe to use?
The password is generated in your browser and never leaves it: nothing is sent to a server, nothing is logged, and it is not written into the page URL, so no shareable link can carry it. The randomness comes from your browser’s cryptographic generator rather than an ordinary random function, and characters are drawn by rejection sampling so that no character in the pool is more likely than any other. Once you have copied it into your password manager, close the tab. If you want extra assurance, generate the password with the network disconnected — nothing here needs a connection once the page has loaded.
Why is a generated password better than one I choose myself?
Because entropy measures the process, not the string. A generated 16-character password really was one of 89^16 equally likely possibilities. A password you invented is drawn from a far smaller and heavily lopsided set: people favour real words, names, dates, keyboard runs, capitals at the front, digits and symbols at the end, and the same handful of letter-for-symbol substitutions. Cracking software is built around exactly those patterns, so a self-chosen password that looks 12 characters strong is often worth a small fraction of the bits its length implies. The generated one has no pattern to model.
Is a strong password enough on its own?
No, and it is rarely the weak link. Accounts are far more often lost to reuse — one breached site handing an attacker a password that works everywhere else — or to phishing, where the strength of the password is irrelevant because you typed it in yourself. A unique password per account kept in a password manager, plus two-factor authentication wherever it is offered, does more for you than any number in this tool. NIST SP 800-63B, revision 4, reflects this too: it drops mandatory periodic rotation and instead tells verifiers to screen passwords against known-breached lists and force a change only on evidence of compromise.
Sources
Where the constants and formulas on this page come from. Each line names the figure it backs.
That verifiers must require at least 15 characters for single-factor passwords, must not impose composition rules, must not force periodic changes, and must screen new passwords against blocklists of compromised values.
NIST SP 800-63B-4, Digital Identity Guidelines: Authentication and Authenticator Management — NIST, Revision 4, final, July 2025
Related guides
Utilities
How Long Should a Password Be?
Eight characters with every symbol you can find: 5 hours. Twelve lowercase letters and nothing else: 6 days.
August 15, 2026 · 10 min read
Utilities
Putting JSON in a URL: Validate, Minify, Percent-Encode, or Base64url?
A decision guide for flattening, encoding, checking, and safely transporting JSON in a query string.
August 11, 2026 · 9 min read
Math
How to Add Fractions With Different Denominators — and Why the Rule Works
1/2 + 1/3 done the wrong way gives 2/5 — smaller than the 1/2 you started with. A sum must beat both addends, and that check is free.
August 16, 2026 · 10 min read