What is Password Generator?
How It Works
Choose your desired password length using the slider and select which character types to include. The generator builds a character pool from your selections, then uses crypto.getRandomValues() to produce cryptographically random indices into that pool. It guarantees at least one character from each selected type appears in the result. The strength meter scores the password based on length, character diversity, and pool size.
Formula
Character pool = selected character types combined Entropy (bits) = length ร logโ(pool size) Pool sizes: Uppercase only: 26 Uppercase + lowercase: 52 All alphanumeric: 62 All + symbols: ~91
Formula Explained
Password strength is measured by how many possible combinations exist. A pool of 62 characters (A-Z, a-z, 0-9) with a 16-character password gives 62^16 โ 4.77 ร 10^28 combinations. At 1 billion guesses per second, that would take over 1.5 billion years to brute-force. Adding symbols increases the pool to ~91 characters, making it exponentially harder.
Example
Length 12, all types: X0nf~G!8O7<] (entropy ~78 bits โ Strong) Length 16, all types: k#9Lm$Wp2!qR@xYz (entropy ~105 bits โ Very Strong) Length 8, lowercase only: qmxftrwb (entropy ~38 bits โ Weak)
Tips & Best Practices
- โUse at least 16 characters for important accounts (email, banking, social media).
- โNever reuse passwords โ each account should have a unique password.
- โStore passwords in a password manager, not in a text file or sticky note.
- โEnable two-factor authentication (2FA) wherever possible for an extra layer of security.
Common Use Cases
- โขCreating strong passwords for new account signups
- โขGenerating API keys and tokens for development
- โขResetting compromised passwords with secure alternatives
- โขTeaching password security concepts in workshops
- โขCreating Wi-Fi passwords that are both secure and shareable