Password Generator
Cryptographically random passwords with a live strength gauge and crack-time timeline.
How Password Generator calculator works?
The Password Generator calculator works in 4 steps: it reads your settings, builds a character pool, picks each character with a cryptographic random number generator and scores the result in bits of entropy. Every step runs inside your browser on the pttooz platform, and no password reaches a server.
- 1
Read the settings
The generator reads 2 inputs: a length from 4 to 64 characters and up to 4 character sets — uppercase (26), lowercase (26), digits (10) and symbols (28).
- 2
Build the character pool
The selected sets join into 1 pool. All 4 sets give a pool of 90 characters. “Avoid look-alikes” removes 7 characters (I, l, 1, O, 0, o, |) and cuts the pool to 83.
- 3
Pick random characters
The Web Crypto API (
crypto.getRandomValues) draws every character with rejection sampling, which gives each character an equal chance. The generator places 1 character from each selected set, fills the rest from the full pool and shuffles the result with the Fisher–Yates algorithm. - 4
Score the password
Entropy equals length × log₂(pool size). Crack time assumes an offline attack at 10 billion (10¹⁰) guesses per second. A typed password gets an estimate: repeated characters, sequences such as “abc” and common words such as “qwerty” lower the score.
Password Generator formula
The Password Generator uses 2 formulas: entropy E = L × log₂(N) and average crack time T = 2E ÷ 2 ÷ R. Pool size N is the sum of the selected character sets.
Password entropy
- E
- Entropy in bits
- L
- Password length in characters
- N
- Pool size: 26 + 26 + 10 + 28 = 90 with all 4 sets
Average time to crack
- T
- Time in seconds
- 2ᴱ
- Total combinations, equal to Nᴸ
- ÷ 2
- An attacker finds the password after half the combinations on average
- R
- Guess rate: 10¹⁰ (10 billion) guesses per second
Password Generator conversion chart
The Password Generator conversion chart converts password length into entropy bits and average crack time for 3 character pools: lowercase only (26), letters and digits (62) and all 4 sets (90). Cell color follows the strength band.
| Length | Lowercase a–z (26) | Letters + digits (62) | All 4 sets (90) |
|---|---|---|---|
| 6 chars | 28.2 bitsInstantlyWeak | 35.7 bits3 secondsWeak | 39.0 bits27 secondsFair |
| 8 chars | 37.6 bits10 secondsFair | 47.6 bits3 hoursFair | 51.9 bits2 daysFair |
| 10 chars | 47.0 bits2 hoursFair | 59.5 bits1 yearFair | 64.9 bits55 yearsStrong |
| 12 chars | 56.4 bits55 daysFair | 71.5 bits5.1K yearsStrong | 77.9 bits447.5K yearsStrong |
| 14 chars | 65.8 bits102 yearsStrong | 83.4 bits19.6M yearsVery strong | 90.9 bits3.6B yearsVery strong |
| 16 chars | 75.2 bits69.1K yearsStrong | 95.3 bitsLonger than the age of the universeVery strong | 103.9 bitsLonger than the age of the universeVery strong |
| 20 chars | 94.0 bitsLonger than the age of the universeVery strong | 119.1 bitsLonger than the age of the universeVery strong | 129.8 bitsLonger than the age of the universeVery strong |
| 24 chars | 112.8 bitsLonger than the age of the universeVery strong | 142.9 bitsLonger than the age of the universeVery strong | 155.8 bitsLonger than the age of the universeVery strong |
| 32 chars | 150.4 bitsLonger than the age of the universeVery strong | 190.5 bitsLonger than the age of the universeVery strong | 207.7 bitsLonger than the age of the universeVery strong |
Times assume an offline attack at 10 billion guesses per second against a fast hash. Slow password hashes such as bcrypt and Argon2 cut the guess rate by several orders of magnitude.