Password Generator

Random passwords with custom character sets.

Length: 16

How to Use the Password Generator

  1. **Set your password length** — drag the slider or type a number (8–128 characters). Longer passwords are exponentially stronger; 16+ characters is recommended for most accounts.
  2. **Choose your character sets** — toggle on/off uppercase letters (A–Z), lowercase letters (a–z), digits (0–9), and/or special symbols (!@#$%^&*). Include all four for maximum strength.
  3. **Click 'Generate'** — the tool instantly creates a cryptographically random password using your selected options.
  4. **Check the entropy display** — the calculated entropy (in bits) tells you how strong the password is. Aim for at least 72 bits for standard accounts and 100+ bits for critical ones.
  5. **Copy your password** — click the copy icon to send it to your clipboard, then paste it directly into your password manager or registration form.

Password Entropy Formula

H = L × log₂(N)

The security of a generated password is measured by its entropy in bits. Entropy quantifies how unpredictable the password is: higher entropy means more guesses are needed to crack it by brute force.

Entropy is calculated as:

H = L × log₂(N)

where H is entropy in bits, L is the password length (number of characters), and N is the size of the character pool (alphabet). Each additional character or larger alphabet multiplies the number of possible passwords, increasing security exponentially.

  • H — Password entropy in bits. Higher values mean a stronger, harder-to-crack password. Security experts generally recommend ≥ 72 bits for important accounts.
  • L — Password length — the total number of characters in the generated password (e.g., 12, 16, 32).
  • N — Alphabet size — the total number of distinct characters available for selection. For example: 26 lowercase only, 52 upper+lower, 62 alphanumeric, or 95 all printable ASCII characters.
  • log₂ — Logarithm base 2. It converts the total number of possible passwords (N^L) into a bit count, which is a standard unit for measuring entropy.

Worked Example: Entropy of a 16-Character Password

Password length L = 16 characters; character set includes uppercase (26) + lowercase (26) + digits (10) + symbols (32) = N = 94 characters
H = L × log₂(N)
H = 16 × log₂(94)
log₂(94) = ln(94) / ln(2) = 4.5433 / 0.6931 ≈ 6.5546
H = 16 × 6.5546 ≈ 104.87 bits

Result: H ≈ 104.9 bits of entropy

What Your Result Means

A 16-character password drawn from 94 printable ASCII characters yields approximately 104.9 bits of entropy. This means there are 94¹⁶ ≈ 3.72 × 10³¹ possible passwords — far beyond the reach of any modern brute-force attack. Even at one trillion (10¹²) guesses per second, exhausting the search space would take roughly 1.18 × 10¹² years — many times longer than the age of the universe. This password is considered extremely strong for any use case.

Understanding Password Generator

What Makes a Password Strong?

A strong password has two key properties: length and randomness. Length increases the number of possible combinations exponentially, while true randomness (no dictionary words, no patterns) ensures an attacker cannot shortcut the search.

Character Set Sizes

| Character Set | N (Alphabet Size) | |---|---| | Lowercase only (a–z) | 26 | | Upper + Lowercase | 52 | | Alphanumeric (A–Z, a–z, 0–9) | 62 | | All printable ASCII (+ symbols) | 95 |

Entropy Benchmarks

  • < 40 bits — Very weak, crackable in seconds.
  • 40–55 bits — Weak, crackable in hours.
  • 56–72 bits — Moderate, crackable with sustained effort.
  • 73–100 bits — Strong, suitable for most online accounts.
  • > 100 bits — Very strong, suitable for encryption keys and master passwords.

Why Randomness Matters

Humans are notoriously bad at choosing random passwords. We gravitate toward words, names, and predictable substitutions (e.g., '@' for 'a'). A computer-generated random password — like those produced by this tool — samples each character independently and uniformly, guaranteeing the full theoretical entropy.

Password Managers

The best practice is to generate a unique, high-entropy password for every account and store them in a reputable password manager (e.g., Bitwarden, 1Password, KeePass). You only need to remember one strong master password.

How This Generator Works

The generator uses a cryptographically secure pseudo-random number generator (CSPRNG) — not the weaker Math.random() often found in web apps — to pick each character from your selected alphabet. This ensures the output is suitable for real-world security use.

Common Mistakes

  • **Using short passwords** — An 8-character password has only ~52 bits of entropy with all character types; 12–16+ characters is strongly preferred.
  • **Omitting symbol characters** — Removing symbols shrinks N from ~94 to 62, cutting entropy by about 10 bits per character.
  • **Reusing generated passwords** — A strong password is only as good as its exclusivity. Use a different generated password for every account.
  • **Storing the password insecurely** — Never save generated passwords in plain text files, emails, or notes apps. Use a dedicated password manager.
  • **Disabling uppercase or digits to meet 'simpler' requirements** — Some sites discourage symbols but allow mixed case. Always use the largest character set the site permits.
  • **Confusing password length with strength when patterns exist** — A 20-character password of repeated 'abc' has near-zero entropy. True strength requires randomness, not just length.

Common Questions About Password Generator

What is the difference between a passphrase and a random password?

A passphrase is a sequence of random words (e.g., 'correct-horse-battery-staple') that is long and memorable. A random character password maximizes entropy per character but is harder to memorize. Both can be equally strong; passphrases of 5–6 random words achieve 65–78 bits of entropy using the Diceware method.

How often should I change my passwords?

Modern guidance (NIST SP 800-63B) recommends against mandatory periodic password changes unless there is evidence of compromise. Instead, use a unique strong password per site and change it only if a breach is suspected or confirmed.

What is a CSPRNG and why does it matter for passwords?

A Cryptographically Secure Pseudo-Random Number Generator (CSPRNG) produces output that is statistically indistinguishable from true randomness and cannot be predicted even if previous outputs are known. Using a CSPRNG (like the browser's Web Crypto API) ensures your generated password has the full theoretical entropy — unlike weaker generators that could introduce patterns.

How many possible passwords exist for a 12-character alphanumeric password?

With N = 62 (26 upper + 26 lower + 10 digits) and L = 12, the total is 62¹² ≈ 3.23 × 10²¹ possible passwords. That corresponds to H = 12 × log₂(62) ≈ 71.5 bits of entropy — borderline strong.

Frequently Asked Questions

How long should my password be?

For most online accounts, 16 characters is a good minimum. For high-value accounts (email, banking, password manager master password), use 20–32 characters. NIST guidelines (SP 800-63B) emphasize length over complexity rules.

Is it safe to generate passwords in a browser?

Yes, provided the generator uses the Web Crypto API (window.crypto.getRandomValues), which is a cryptographically secure source of randomness. GodCalculator's generator never sends your password to a server — all generation happens locally in your browser.

What is a good password entropy score?

72 bits or more is considered strong for standard accounts. For critical credentials like master passwords or encryption keys, aim for 100+ bits. Our worked example shows that a 16-character, full-character-set password achieves ~104.9 bits.

Should I include symbols in my password?

Yes, whenever the site or app permits it. Including symbols expands the alphabet from 62 (alphanumeric) to ~94 characters, adding roughly 6–10 bits of entropy depending on length — equivalent to adding 1–2 extra characters.

Can this password generator be used for Wi-Fi passwords, PINs, or API keys?

Absolutely. Adjust the character set to match the requirement — for a numeric PIN select digits only, for an API key use alphanumeric or full ASCII, and for a WPA2 passphrase use any mix of characters up to 63 characters long.

Related Calculators

Sources

Only sources that have been reviewed are shown. Unverified citations are never published.

Spotted a calculation error?Report an Error
How this calculator works:MethodologyReport an Error

Report an issue or suggest a feature

Spotted an inaccuracy or have an idea to improve this calculator? Let us know.

We use cookies to operate the site, and — with your consent — to show advertising and measure usage. You can change your choice anytime in Cookie Settings.

Manage options