Password Generator
Generate cryptographically secure passwords with customizable length and character types. Includes passphrase mode, entropy calculation, strength meter, and estimated crack time. Uses Web Crypto API.
Password Gen
Results update instantly as you type
Enter Values
Character Set Size
82
Embed Code
Copy and paste this HTML snippet into any web page to embed this calculator directly.
<iframe src="http://127.0.0.1:54963/embed/engineering/password-generator?ref=embed" title="Password Generator" width="100%" style="max-width:600px; border:none; height:500px;" loading="lazy"></iframe>
Direct Link
Share this link to let others open the calculator in their browser.
@T*4bS;P@M+h6jn@
Strong — resistant to brute-force
Time to Crack (Brute Force @ 1B guess/sec)
132499741565915 years
Estimated time for an attacker to try every possible combination
Password Composition
Security Audit Tips
- 12+ characters recommended
- 80+ bits for strong security
- Use uppercase, lowercase, numbers, and symbols
The Formula
Entropy (E) = Password Length (L) × log₂(Character Set Size (S)). Higher entropy means exponentially stronger resistance to brute-force attacks. Each additional bit of entropy doubles the number of guesses an attacker must try. For example, a password with 40 bits of entropy requires about 1 trillion guesses (2^40), which a modern GPU cluster can crack in seconds. A password with 80 bits of entropy requires about 1.2 × 10^24 guesses — essentially uncrackable by brute force with current technology.
Variable Definitions
Entropy (bits)
A measure of password strength. Each bit of entropy doubles the number of guesses required for a brute-force attack. 60+ bits is decent, 80+ is strong, 100+ is extremely strong.
Password Length
The total number of characters in the password. Every extra character multiplies the guess space by S (the character set size), making length the single most important factor for password strength.
Character Set Size
The number of possible characters for each position in the password. Lowercase alone = 26, + uppercase = 52, + digits = 62, + symbols = 95+. Mixing types dramatically increases S.
How to Use This Calculator
- 1
Select at least one character type to include in your password (lowercase, uppercase, digits, symbols).
- 2
Adjust the password length slider — each additional character multiplies the number of possible passwords.
- 3
Choose "Random String" for maximum security or "Passphrase" for a password of random words that is easier to remember.
- 4
Enable "Avoid Ambiguous Characters" to exclude easily confused characters like O/0 and I/l/1.
- 5
Review the calculated entropy (bits) and estimated time-to-crack to decide if the password is strong enough.
Password entropy (bits) = Length × log₂(Character Set). Higher entropy means exponentially more guesses needed to crack.
Understanding the Concept
Password strength is measured in bits of entropy. A password with N bits of entropy requires roughly 2^N guesses to crack via brute force. Modern password-cracking hardware — including GPU clusters and purpose-built ASICs — can attempt billions of guesses per second against unsalted, unhashed passwords, and millions per second against properly hashed passwords using algorithms like bcrypt, argon2, or PBKDF2. This is why we recommend passwords with at least 80 bits of entropy for important accounts like email and banking. Using a mix of character types (uppercase, lowercase, digits, symbols) dramatically increases the character set size S from 26 (lowercase only) to 95+ (all types). Increasing length L has a multiplicative effect on total entropy. For memorability, passphrases composed of 4-6 random words from a large dictionary offer 44-66 bits of entropy depending on word count, which is comparable to a moderately strong random string but significantly easier to remember and type. For maximum security, a long random string of 16+ characters is still the gold standard.
Frequently Asked Questions
Sources & References
Related Calculators
Reviews
No reviews yet. Be the first to share your experience with Password Generator.
Write a Review
