Password Generator

Cryptographically secure passwords with strength analysis and entropy calculation.

Up to 128 chars Entropy bits Crack time pwa
characters
Generated Password
...
Password Strength
Entropy
0
bits
Charset Size
0
characters
Crack Time
@ 1B/sec
Total Combinations

A secure password generator uses the Web Crypto API (crypto.getRandomValues) to randomly pick from a character set of your chosen letters, numbers, and symbols. An 8-character password can be cracked in under 1 hour; a 12-character password takes centuries; a 16-character password is computationally infeasible with current hardware. Always use at least 12 characters for any important account.


Understanding Password Security

Why Length Beats Complexity

A common misconception is that a short password with many special characters is more secure than a long, simpler one. In reality, length is the single most powerful factor in password strength. Every additional character you add multiplies the total number of possible combinations by the full charset size. A 20-character password using only lowercase letters (2620 combinations) is astronomically harder to crack than an 8-character password using every character type (958). When choosing between "P@$$w0rd" and "correct-horse-battery-staple", always choose the longer phrase.

Security Formula:
Entropy = Length × log₂(Charset Size)
Combinations = Charset Size ^ Length
Crack Time (sec) = Combinations / Guesses per Second
Recommended Entropy: ≥ 80 bits for general use, ≥ 128 bits for high-security

Entropy Explained Simply

Entropy, measured in bits, is the mathematical measure of unpredictability in your password. Each bit of entropy doubles the number of guesses required. A password with 40 bits of entropy requires about 1 trillion guesses — which sounds enormous until you realize that modern GPUs can make 10 billion guesses per second. At 80 bits, even the most powerful cracking rigs would take longer than the age of the universe. This tool calculates your password's entropy using the formula: Entropy = Length × log₂(CharsetSize). Using all four character sets (uppercase, lowercase, numbers, and symbols) gives you a charset of 95, which translates into a much higher entropy per character compared to using just digits.

Why You Need a Password Manager

Generating a strong password is only half the battle — you also need to store it securely. Reusing passwords across sites is the leading cause of account compromise: when one site is breached, attackers immediately try the leaked password on hundreds of other services (a technique called credential stuffing). A password manager like Bitwarden (open source), 1Password, or KeePass solves this by generating and storing a unique strong password for every account. You only need to remember one master password. This single habit eliminates your exposure to the most common attacks online. Pair a password manager with two-factor authentication (2FA) on critical accounts for layered defense.

Avoid Common Patterns

Many users try to create memorable passwords by using predictable patterns: replacing "a" with "@", appending "1!" at the end, or using dictionary words with leet-speak substitutions. Attackers know all these tricks. Modern cracking tools come loaded with rule-based mutation engines that apply thousands of substitution patterns automatically to dictionary words. "P@$$w0rd123!" may look complex but is trivially cracked in seconds. The safest approach is to always use a cryptographically random generator like this tool, never craft passwords by hand, and store them in a dedicated password manager. Random is always better than memorable when a machine is remembering for you.

Password Length Benchmarks

Length Strength Crack Time (95-char set, 1B/sec) Use Case
8 charsWeak< 1 hourNever use
12 charsGoodCenturiesGeneral accounts
16 charsStrongHeat death of universeEmail, banking
20 charsParanoid∞ (practical)Master passwords

Frequently Asked Questions

How long does it take to crack an 8-character password?

A simple 8-character password is weak and can often be cracked in less than 1 hour.

Is a 12-character password secure?

Yes, a random 12-character password is good and would take centuries to crack.

How strong is a 16-character password?

Extremely strong. It would take until the heat death of the universe to crack at 1B guesses/sec.

Are the passwords generated on your server?

No. We use your browser's Crypto API to generate passwords locally. We never see them.

Why is length better than complexity?

Length increases entropy exponentially, making brute-force attacks mathematically unfeasible.

What is the formula for Password Generator?

It uses crypto.getRandomValues for true randomness, mapped against a selected charset, calculating entropy as N * log2(charsetSize).