Security checks

Password Generator

Generate a cryptographically secure random password with your chosen length and character set. See entropy in bits and strength rating — then understand why length matters more than complexity for resistance to brute-force attacks.

Last reviewed May 18, 2026 by ToolSpilo Editorial Team.

Review method: Reviewed against implemented password-generation behavior and defensive security guidance.

Calculator tool

How this calculator works

Use the explanation to understand the formula, assumptions, and practical limits behind the calculator result.

Password Entropy Formula

Entropy measures the unpredictability of a password — the amount of information an attacker must guess:

H=L×log2(N)H = L \times \log_2(N)
  • HH = entropy in bits
  • LL = password length (number of characters)
  • NN = character set size (number of possible characters)

Each additional character multiplies the search space by NN; each additional bit doubles it. Length is the dominant variable.

Character Set Sizes

Character SetNNEntropy per Character
Digits only (0–9)103.32 bits
Lowercase letters (a–z)264.70 bits
Lower + uppercase (a–z, A–Z)525.70 bits
Alphanumeric (a–z, A–Z, 0–9)625.95 bits
Full printable ASCII + symbols94–956.57 bits

Worked Example — 16 Character Password

Character SetEntropyStrength
Digits only16 × 3.32 = 53 bitsWeak
Lowercase only16 × 4.70 = 75 bitsModerate
Alphanumeric16 × 5.95 = 95 bitsStrong
Full ASCII16 × 6.57 = 105 bitsVery strong

Strength Thresholds

Entropy (bits)StrengthContext
< 40Very weakTrivially brute-forced
40–60WeakMinutes to hours for offline attack
60–80ModerateAdequate for low-value accounts
80–100StrongRecommended for most accounts
100–128Very strongBanking, email, password manager
> 128Extremely strongResistant to foreseeable hardware advances

Why Length Beats Complexity

A 20-character lowercase-only password has 94 bits of entropy. An 8-character password with full symbols has only 53 bits. The longer password is dramatically more resistant to brute force — yet far easier to remember if it is a passphrase (four random words). NIST SP 800-63B (2017) guidance moved away from mandatory complexity rules and toward longer passwords and passphrases, blocking known compromised passwords instead.

Frequently asked questions

How long should a password be?

NIST SP 800-63B sets a minimum of 8 characters for user-chosen passwords, but longer passwords are materially stronger. A 12-character alphanumeric password has about 71 bits of entropy, while a 20-character password using every set available in this generator has about 127 bits. For high-value accounts such as email, banking, or a password manager, use a long unique password or passphrase and store it in a password manager instead of trying to memorize many shorter secrets.

Is it better to use a longer password or one with more character types?

Length has a greater impact per character than character-set expansion. Adding one character to the generator's 82-character set adds 6.36 bits of entropy; switching from lowercase only to all available sets adds about 1.66 bits per character. A 20-character lowercase passphrase (94 bits) is stronger than a 12-character password using every available set (about 76 bits), and it can be easier to remember. The practical advice: use a long unique password or passphrase first, then use extra character variety when a site requires it.

What makes a password generator 'cryptographically secure'?

Cryptographic security requires that each character be drawn from a true random or pseudorandom source with adequate entropy — specifically, a Cryptographically Secure Pseudorandom Number Generator (CSPRNG). Browser-based tools use window.crypto.getRandomValues(), which is backed by the operating system's CSPRNG. Non-cryptographic randomness (Math.random() in JavaScript, rand() in C) is predictable given sufficient output samples and must never be used for security-sensitive values. Generated passwords should also never be transmitted over the network — the generation and display must happen entirely in the browser.

Should I use a password manager instead of memorising passwords?

Yes — for all but one password (the password manager master password). Password managers generate and store a unique, high-entropy password for every account, eliminating password reuse — which is responsible for the majority of account takeovers following data breaches. The master password should be a 4–6 word random passphrase (e.g., 'correct horse battery staple' style) with high entropy and no personal references. Popular managers (Bitwarden, 1Password, Dashlane) use AES-256 encryption with zero-knowledge architecture, meaning even the provider cannot access your vault. The risk of using a password manager is lower than the near-certainty of credential reuse attacks.