Skip to content
All calculators

Password Generator

Create strong, random passwords with custom length and character sets.

Password Generator formula. Password entropy in bits = length × log2(charset_size). Lowercase-only (26 chars) at 12 characters = 12 × log2(26) ≈ 56 bits. Mixed case + digits + symbols (87 chars in the default pool) at 16 characters = 16 × log2(87) ≈ 103 bits — strong enough to defeat any offline cracking attempt.

Example. With all 4 character classes enabled at 16 characters, the generator produces passwords like 'K7#mQ2$vL9&pX5@n'. This password has an alphabet size of 87 (26 upper + 26 lower + 10 digits + 25 symbols), giving entropy = 16 × log2(87) ≈ 103 bits — equivalent to a 1-in-10^31 chance of being guessed.

Options

Generated Password

,p2Cpb1BhB6{L$pm

Strength

Strength
Strong
103.1 bits of entropy
Strength meter
Alphabet size
87 chars
Possible combinations
103 bits
Time to crack (offline)
centuries

Entropy = length × log₂(alphabet size), where the alphabet is exactly the character sets you ticked above. Thresholds: under 28 bits is weak, 28–35 fair, 36–59 good, 60–127 strong, and 128+ very strong. A 16-character password from all 87 characters in the default pool has about 103.1 bits of entropy. Passwords use crypto.getRandomValues with rejection sampling (never Math.random) and are never logged or transmitted.

What is the Password Generator?

A strong password generator creates random, high-entropy passwords using a configurable mix of uppercase letters, lowercase letters, digits and symbols — protecting your accounts from brute-force and dictionary attacks.

Password Generator formula

Password entropy in bits = length × log2(charset_size). Lowercase-only (26 chars) at 12 characters = 12 × log2(26) ≈ 56 bits. Mixed case + digits + symbols (87 chars in the default pool) at 16 characters = 16 × log2(87) ≈ 103 bits — strong enough to defeat any offline cracking attempt.

How to use the Password Generator calculator

  1. 1Set the desired password length (16+ characters recommended).
  2. 2Tick the character classes to include: uppercase, lowercase, digits, symbols.
  3. 3Optionally exclude ambiguous characters (l, I, 1, O, 0) for readability.
  4. 4Click Generate to create a new random password.
  5. 5Copy the result and paste it into a password manager — never reuse it across sites.

Example calculation

With all 4 character classes enabled at 16 characters, the generator produces passwords like 'K7#mQ2$vL9&pX5@n'. This password has an alphabet size of 87 (26 upper + 26 lower + 10 digits + 25 symbols), giving entropy = 16 × log2(87) ≈ 103 bits — equivalent to a 1-in-10^31 chance of being guessed.

Frequently asked questions

What makes a strong password?
Length, randomness and uniqueness. Use at least 12–16 characters drawn from a mix of uppercase, lowercase, digits and symbols, generated by a cryptographic random source. Never reuse passwords across accounts.
How long should my password be?
Aim for 16+ characters with all character classes enabled, which gives ~100 bits of entropy — well beyond the reach of any modern GPU cracking rig. Length matters more than complexity: a 20-char lowercase password is stronger than an 8-char complex one.
How is password entropy calculated?
Entropy (bits) = length × log2(charset_size). A 12-character password using all 87 characters in the default pool (26 upper + 26 lower + 10 digits + 25 symbols) has 12 × 6.44 ≈ 77 bits of entropy. Each additional bit doubles the cracking difficulty.
Are random passwords safer than passphrases?
Both can be very secure. Random passwords are shorter for the same entropy; passphrases (4–6 random words) are easier to type and remember. For a password manager, use random passwords — you copy-paste them anyway.
Should I use a different password for every site?
Yes, always. If one site is breached, attackers try the leaked password against your other accounts (credential stuffing). A password manager plus this generator makes unique-per-site passwords effortless.