The Password Generator creates strong, random passwords in one click. Choose the length and characters you want, and get a password that is hard to guess.
Password Generator
Turn password settings into a hard number: entropy in bits, total combinations, and how long a brute-force attack would take on average.
Enter your values
Fill in the fields below — the result appears with every step shown.
Your result will appear here
Enter your values above, then press Calculate — or press Enter in any field.TinyExe · Password Result
Calculated locally in your browser
—
Name
—
Password length
—
Include uppercase (A-Z)
—
Include digits (0-9)
—
How this was calculated
What to do next
TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.
Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.
The short answer
A password drawn randomly from a pool of characters has entropy equal to its length times log base two of the pool size. Sixteen characters chosen from the full 94 printable characters give about 105 bits of entropy, or roughly 10 to the 31 combinations, which is far beyond practical brute force.
- Entropy = length x log2(pool size); 94 printable characters give 6.55 bits per character
- Each extra character multiplies the combination count by the full pool size
- Human-chosen passwords have far less real entropy than the formula, because choices are predictable
Character pool sizes
Reference values for this calculator.
| Character sets used | Pool size | Bits per character |
|---|---|---|
| Digits only | 10 | 3.32 |
| Lowercase letters | 26 | 4.70 |
| Lowercase + digits | 36 | 5.17 |
| Letters + digits | 62 | 5.95 |
| Letters + digits + symbols | 94 | 6.55 |
The formula
The exact formula this calculator uses — every variable in it is explained in the card below.
The formula
The generator builds the character pool from the sets you enable, then picks each character with crypto.getRandomValues and rejection sampling so every character in the pool is equally likely. The theoretical strength of the result is length x log2(pool size) bits of entropy.
Worked examples
Worked examples with the full working shown — try them in the calculator to check.
Example 1
Full character set, 16 characters
Length 16, pool 94
| Calculation | Steps |
|---|---|
| Entropy = 16 x log2(94) = 16 x 6.555 = 104.87 bits. Combinations = 94^16, about 3.7 x 10^31. | 104.87 bits — excellent strength band. |
Result
Example 2
Lowercase only, 12 characters
Length 12, pool 26
| Calculation | Steps |
|---|---|
| Entropy = 12 x log2(26) = 12 x 4.700 = 56.41 bits. | 56.41 bits — fair, but lengthening to 20 would pass 94 bits. |
Result
Example 3
Digits only, 8 characters
Length 8, pool 10
| Calculation | Steps |
|---|---|
| Entropy = 8 x log2(10) = 8 x 3.322 = 26.58 bits — a PIN-style space of 100 million. | 26.58 bits — weak; crackable offline in seconds. |
Result
How to use this calculator
Step 1
Choose a password length — 16 characters or more is a strong default.
Step 2
Work out your pool size from the character sets you will enable, using the reference table.
Step 3
Enter the length and pool size and press Calculate.
Step 4
Read the entropy in bits and the strength band.
Step 5
Generate the actual password with a reputable password manager using those settings, and store it there.
Frequently asked questions
How many bits of entropy does a password need?
Around 65 bits resists most online and casual offline attacks; 100 bits or more is effectively beyond brute force with current technology. A 16-character password drawn from all 94 printable characters has about 105 bits.
Is length or complexity more important?
Length wins. Each added character multiplies the search space by the whole pool, while adding a character set only enlarges the pool once. A long lowercase passphrase can beat a short symbol-heavy password.
Does this tool generate or store my password?
No. This definition calculates the strength (entropy) of generator settings; generation should be done by your password manager's built-in generator, which uses a cryptographic random source. Nothing is transmitted or stored here.
Why is a human-chosen password weaker than the entropy suggests?
Entropy maths assumes every character is chosen uniformly at random. Human choices are predictable — names, dates, patterns — so a 'random-looking' typed password has far less real entropy than the formula gives.
What is the average brute-force time shown based on?
An attacker guessing 10 billion passwords per second who must search, on average, half the combination space. Real rates vary with the hashing algorithm protecting the password, which is why slow hashes like bcrypt matter.
About this calculator
This password generator tool quantifies strength before you generate: given a password length and the size of the character pool it will be drawn from, it computes the entropy in bits, the total number of combinations, a strength band, and the average time a brute-force attacker at a stated guessing rate would need.
Entropy is the honest currency of password strength because it counts possibilities, not appearances. A password space of pool^length combinations contains log2(pool^length) = length x log2(pool) bits of entropy. Moving from 8 to 16 characters at a pool of 94 does not double the strength — it squares the combination count, adding about 52 extra bits, which is why length dominates every other password rule.
The character pool matters too, but only once: enabling symbols grows the pool from 62 to 94 and adds about 0.6 bits per character, worthwhile but secondary. The bigger trap is assuming the formula applies to passwords people invent. It does not — it describes machine-random passwords. A typed password like a pet's name plus a year sits in dictionaries attackers try first, whatever its length, which is why this tool is paired with the advice to let a manager generate the password.
For context, online attacks are rate-limited to a handful of guesses, so even 40 bits can survive there; the danger is an offline attack on a leaked hash database, where fast hardware tries billions per second. Planning for the offline case — 65 bits minimum, 100 bits for anything valuable — is the conservative, correct default.
Use it when setting a password policy, when choosing generator settings in a password manager, when auditing whether an old 8-character rule is still defensible (it is not), or when explaining to someone why a long passphrase beats a short complicated password.
How to calculate it yourself
Step 1
Count the character pool: 26 for lowercase, add 26 for uppercase, 10 for digits and about 32 for symbols as the sets you enable are added.
Step 2
Take log base 2 of the pool size to get bits per character (94 gives about 6.55).
Step 3
Multiply by the password length to get total entropy in bits.
Step 4
Raise the pool to the power of the length for the total combination count.
Step 5
Halve the combinations and divide by the attacker's guesses per second for average crack time.
Real-life examples
Setting up a password manager
Sam enables all character sets in a manager's generator and wonders whether the default length of 16 is enough for a banking login.
Entropy = 16 x log2(94) = 104.87 bits, and the average brute-force time at 10 billion guesses a second runs to billions of years.
Sam keeps 16 characters and spends the effort on a strong manager master password instead.
A small business password policy
An office manager checks whether the old rule of 8 characters with a symbol survives a leaked-database attack.
8 x log2(94) = 52.44 bits; at 10 billion guesses per second the average search is about 85 hours (roughly three and a half days).
The policy is rewritten to a minimum of 14 randomly generated characters, about 91.77 bits.
Ideas & use cases
- Compare policies numerically: run your current rule and a proposed rule and quote the entropy difference in a policy document instead of arguing from opinion.
- Passphrase check: a five-word passphrase from a 7,776-word list has 5 x log2(7,776) = 64.6 bits — enter length 5 and pool 7,776 to verify it here.
- Teach the length lesson: keep the pool at 26 and slide the length from 8 to 20 to show entropy climbing from 37.6 to 94 bits with lowercase alone.
Limitations & sources
- This tool calculates the entropy of generator settings; it does not itself generate, display, transmit or store a password, and the maths assumes a truly random generator. Use a password manager's generator for the password itself.
Sources: NIST SP 800-63B digital identity guidance on password length; entropy formula from standard information theory (Shannon)
