Password Generator
Generate results with the Password Generator — set your parameters and get cryptographically-random output instantly.
Password Generator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser — no data is sent to any server.
Formula: Entropy = log2(pool_size^length)
Worked example — Extremely strong password — infeasible to brute-force with current hardware
Reviewed for accuracy by Daniel Agrici, Founder & Lead Developer · Editorial policy
Password Generator Formula
Entropy = log2(pool_size^length)
Password entropy measures the unpredictability of your password. A larger character pool and longer length each multiply the entropy exponentially.
Password Generator — Worked Examples
Example 1: 16-char password with all character types
Problem:Length: 16, uppercase + lowercase + numbers + symbols enabled
Solution:Pool: 88 chars (26 uppercase + 26 lowercase + 10 digits + 26 symbols). Entropy = log2(88^16) ≈ 103 bits
Result:Extremely strong password — infeasible to brute-force with current hardware
Password Generator — Frequently Asked Questions
How secure is a randomly generated password?
A randomly generated password using cryptographic randomness (like the Web Crypto API) is extremely secure. Unlike human-chosen passwords, it has no patterns, dictionary words, or predictable sequences. Each character is independently random, making brute-force attacks computationally infeasible for passwords of sufficient length.
What makes a password strong?
Two factors dominate password strength: length and character variety. Length matters most — each additional character multiplies the number of possible combinations. Character variety expands the pool: using uppercase, lowercase, digits, and symbols increases the pool from 26 to 88 characters in this generator. A 16-character password using all four types has over 100 bits of entropy.
What is password entropy and how is it calculated?
Password entropy measures unpredictability in bits. It is calculated as: Entropy = log2(pool_size ^ length). For a 16-character password drawn from this generator's 88-character pool (all character types), entropy = log2(88^16) ≈ 103 bits. Each additional bit doubles the difficulty to guess. Treat entropy as a rough comparison tool rather than a certified grade: no widely adopted standard defines an official bit threshold above which a password counts as strong, and NIST's SP 800-63B abandoned entropy-based strength rating in its 2017 revision in favour of generous length limits and screening candidate passwords against known breached lists. What actually determines whether a given entropy figure is enough is how the password is stored and attacked — a slow, memory-hard hash buys far more safety than a handful of extra bits.
Should I use a password manager?
Yes. A password manager lets you use a unique, long, random password for every account without memorizing them. This prevents credential reuse attacks — the most common cause of account breaches. Store generated passwords in a reputable manager such as Bitwarden, 1Password, or KeePass rather than reusing simpler passwords.
How long should a secure password be?
NIST Special Publication 800-63B recommends a minimum of 8 characters but modern best practice is 16+ characters. At 16 characters with mixed character types, entropy exceeds 100 bits, which is infeasible to crack with current hardware. For high-value accounts (banking, email), 20+ characters is advisable.
What is modulo bias and does it weaken this generator?
Mapping a random 32-bit integer onto a pool with the remainder operator is only perfectly uniform when the pool size divides 2^32 exactly. With the full 88-character pool it does not: 88 x 48,806,446 = 4,294,967,248, leaving 48 spare values, so 48 of the 88 characters are favoured by about one part in 49 million. That skew is far too small to measure, let alone exploit. Generators that must be provably uniform use rejection sampling, discarding the leftover range instead.
What is the difference between an online and an offline password attack?
An online attack guesses against a live login, so the server sets the pace through rate limits, lockouts and monitoring, and even a modest password survives. An offline attack follows a database breach: the attacker holds the password hashes and can guess as fast as their hardware allows. The speed then depends on the hash, since a memory-hard function such as Argon2 or bcrypt with a high work factor is millions of times slower to test than a bare SHA-256. Entropy is your defence only in the offline case.
How many Diceware words equal a 16-character random password?
A Diceware word is chosen by five dice rolls from a list of 6^5 = 7,776 entries, so each word contributes log2(7776) = 12.93 bits. Six words give about 77.5 bits and seven about 90.5 bits. To match the roughly 103 bits of a 16-character string from this generator's 88-character pool you need eight words. The passphrase is far longer to type but much easier to recall, which is why it suits master passwords and disk encryption keys.
What should I do when a site bans symbols or caps the password length?
Compensate with length wherever the site allows it. Dropping symbols shrinks the pool from 88 to 62 characters, worth log2(62) = 5.95 bits each, so 18 alphanumeric characters still deliver about 107 bits, more than a 16-character mixed string. A hard length cap is the real problem: 12 alphanumeric characters yield only about 71 bits. Treat capped accounts as weaker by design, keep the password unique to that site, and turn on multi-factor authentication.
Why is entropy a property of the generator rather than of the password itself?
Entropy measures how many equally likely outputs the process could have produced, so any one string it returns is exactly as strong as any other. A result that happens to spell a word is no weaker, because an attacker cannot know the generator was biased toward it. The practical corollary is to keep the first output: rejecting results that look insufficiently random shrinks the set of reachable passwords and lowers the real entropy below the figure shown.
Password Generator — Background & Theory
History of the Password Generator
References
Related Calculators
🔐Password Strength Checker
Check how strong your password is
🧮Hamming Distance Calculator
Calculate hamming distance with inputs, formulas, and instant results.
🧮K Mer Counter Calculator
Calculate k mer counter with inputs, formulas, and instant results.
🧮Melting Temperature Calculator
Calculate melting temperature with inputs, formulas, and instant results.
🧮Restriction MAP Calculator
Calculate restriction map with inputs, formulas, and instant results.
🧮Reverse Complement Calculator
Calculate reverse complement with inputs, formulas, and instant results.