Password Generator
Generate strong random passwords with customizable length and character sets.
Utility
Password Generator
Generated on April 24, 2026
?What is the Password Generator?
A password generator creates cryptographically secure random passwords using your browser's Web Crypto API — the same random-number source used by banks and encryption libraries. You can customize the length (6 to 64 characters) and choose which character sets to include: uppercase letters, lowercase letters, numbers, and special symbols. A built-in strength meter shows how resistant the generated password is to brute-force attacks. Generated passwords are never transmitted or stored; they exist only in your browser and on your clipboard once you copy them, ready to save into your password manager.
The Formula
The Web Crypto API's crypto.getRandomValues fills an array with cryptographically-strong random values — unpredictable even if past outputs are known, unlike Math.random which is seed-based and unsuitable for security. Each random value is mapped into the allowed character set. Entropy per character equals log₂(charset size); for the full 94-character printable set at 16 characters, total entropy is about 105 bits — far beyond the reach of current and foreseeable brute-force hardware.
Practical Examples
A 16-character mixed-set password like K3v@9Pn$bXj!7Lq2 provides ~105 bits of entropy — unbreakable with current computing power.
A 20-character alphanumeric (letters + digits only) like a7Nk3Rm9PqBx5WvG2LzY gives ~119 bits — extremely strong.
An 8-character lowercase-only password like hfjkqoda has only ~38 bits — crackable by modern GPUs in under a day.
Best practice is to store every generated password in a reputable password manager (Bitwarden, 1Password, iCloud Keychain) rather than memorizing or writing them down.
Master passwords for vaults should be memorable but long — a 5-word Diceware passphrase like 'correct horse battery staple smile' provides strong entropy and is easier to remember than a random string.
For websites that reject special characters, use alphanumeric-only mode with 20+ characters to maintain strong security.