Intermediate

Password Generator & Strength Checker

Generate a random password and instantly see how strong it is in bits of entropy.

chars

Number of characters (1-256)

Character classes

Larger pools mean stronger passwords
Entropy
103.6bits

Higher entropy means a harder-to-guess password.

Generated password
I[Db=1*:w6EMB8*o
29%
29%
11%
30%
a–z
A–Z
0–9
!@#…
Character pool composition — pool size: 89
Strength rating
Strong
Character pool size
89
Estimated crack time
24,553,089.3 million years
Strength
81%
Step by step
  1. 1

    Character pool

    89
    Total symbols available from selected character classes.
  2. 2

    log₂(pool)

    log₂(89) = 6.4757
  3. 3

    Entropy (bits)

    16 × 6.4757 = 103.6
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

A password generator builds a random string from your chosen character classes and rates its strength using entropy E = L × log2(R) in bits, where L is length and R is the pool size. Longer passwords with more character types yield higher entropy and dramatically longer crack times.

Formula
Entropy E = L × log2(R), where L is length and R is the character pool size
How this is calculated

You pick a password length L and a set of character classes. Each class adds characters to the pool: lowercase letters contribute 26, uppercase 26, digits 10, and symbols about 32. The total pool size R is the sum of the selected classes. A password is built by drawing L characters uniformly at random from that pool.

Strength is measured as Shannon entropy, E = L × log2(R), expressed in bits. Each extra character adds log2(R) bits, so longer passwords and larger pools both increase entropy. The strength percentage compares E to a 128-bit reference (a common "very strong" target): Strength% = min(100, E / 128 × 100).

Crack time assumes an attacker guessing the full keyspace at 10 billion guesses per second, needing about half the 2^E combinations on average, so time ≈ 2^E / 2 / 1e10 seconds. This is a rough estimate: real attackers may be faster or slower, and reused or dictionary-based passwords fall far short of their theoretical entropy. The built-in generator uses Math.random, which is fine for casual use but not cryptographically secure for high-value secrets.

Frequently asked questions

Entropy is the number of bits needed to describe how unpredictable a password is. It equals length times log2 of the character pool size. More bits means exponentially more guesses are required to crack it.

Around 60 bits is reasonable for most accounts, 80+ bits is strong, and 128 bits is considered very strong and effectively uncrackable by brute force with current technology.

It uses Math.random for convenience, which is suitable for casual passwords but not for cryptographic keys. For high-value secrets, use a reputable password manager that relies on a secure random source.

Also known as

password generator
password strength
random password
password entropy
strong password
secure password generator
create password
random password generator

APA

TG we-Calculate Editorial Team. (2026). Password Generator & Strength Checker [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/password-generator

Chicago

TG we-Calculate Editorial Team. "Password Generator & Strength Checker." TG we-Calculate. 2026. https://we-calculate.com/calculator/password-generator.

IEEE

TG we-Calculate Editorial Team, "Password Generator & Strength Checker," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/password-generator

BibTeX

@misc{wecalculate_password_generator, title = {Password Generator & Strength Checker}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/password-generator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?