Password Generator
Generate strong, cryptographically secure passwords directly in your browser — nothing sent to any server.
Frequently Asked Questions
crypto.getRandomValues() API, which uses the operating system's cryptographically secure pseudo-random number generator (CSPRNG). This is the same source of entropy used by security-sensitive applications. No passwords are ever sent to a server.kX#9mLqP!r2vZw) maximizes entropy-per-character but is hard to memorize. A passphrase using the Diceware method (e.g., correct-horse-battery-staple) is longer in characters but easier to type and remember — 4 random words from a 7,776-word list gives ~51 bits per word or ~51 bits for 4 words... actually 4 words gives ~51 bits total (12.9 per word), so use 6+ words for strong security (~77 bits). For accounts you must type regularly, a passphrase wins; for everything else stored in a password manager, use a random password.
Summer2024! contains predictable patterns (capitalized word + year + symbol) that reduce the effective search space from billions of combinations to thousands. Attackers use pre-built lists of hundreds of millions of known passwords from data breaches. If any component of your password is a recognizable word, name, date, or common substitution (like @ for a), it is vulnerable. Always use passwords generated by a CSPRNG with no dictionary words.
Password1 → Password2). You should change a password immediately if: there is a data breach involving that service (check haveibeenpwned.com), you suspect it was seen by someone else, or you shared it temporarily. For most accounts, a long random unique password stored in a password manager is more effective than frequent rotation.
Authorization: Bearer …), and rotated programmatically. Unlike passwords, API keys are never hashed on the server side by bcrypt — they are either stored as a hash (SHA-256) for comparison or split into an identifier + secret, similar to how a username + password pair works.
About This Password Generator
This free password generator creates cryptographically random passwords with configurable length and character sets — uppercase letters, lowercase letters, digits, and symbols. All generation happens in your browser using the Web Crypto API; no passwords are transmitted or stored.
Strong passwords are long (12+ characters) and drawn from a large character set. Cryptographic randomness (not Math.random()) is essential for security — the Web Crypto API ensures the output is unpredictable.
When to use this tool
- Generating a strong master password for a password manager
- Creating random passwords for test and service accounts
- Meeting specific password policy character requirements
- Producing credentials for database users or API services
Standards & References
How the Password Generator Works
Every password is built from cryptographically secure random data — the same source of entropy used in security-critical software.
Build Character Pool
The selected character classes (uppercase, lowercase, digits, symbols) are combined into a pool string. Ambiguous characters (0 O l I 1) can be excluded to improve human readability.
Cryptographic Randomness
The browser's crypto.getRandomValues() fills a Uint32Array with OS-level random bytes. The value modulo the pool length selects a character — no predictable pattern is ever introduced.
Entropy Estimation
Strength is shown as entropy in bits: log₂(pool_sizelength). A 16-char password from all classes has ~105 bits — far beyond what any brute-force attack can realistically reach.
Common Use Cases
User Account Credentials
Generate unique passwords for every account you create — email, banking, work systems. Using the same password across services means one breach exposes everything.
Service & API Passwords
Database passwords, SMTP credentials, and admin panel access should all use long random passwords (24+ characters) since they're stored in config and never typed manually.
Temporary Passwords
When resetting a user's password, generate a temporary one here and immediately prompt the user to change it on next login. 12-character alphanumeric is a good balance of security and usability.
Wi-Fi Passphrases
WPA2/WPA3 passphrases should be at least 12 characters. A longer alphanumeric passphrase (20–32 characters) typed once into devices is both strong and manageable.
Encryption Keys & Secrets
App secret keys, JWT signing secrets, and encryption passphrases benefit from maximum randomness. Use 32+ characters with all classes, or use the Random String Generator for hex-encoded keys.
Bulk Account Setup
Use the count selector to generate up to 20 unique passwords at once — useful when provisioning multiple user accounts or testing environments that each require distinct credentials.
Related Developer Tools
Related Articles
View all articles
Why a Strong Password Isn't Enough: Credential Stuffing and the Case for Unique Passwords Everywhere
A password can be long, random, and never appear in any breach — and still get your account compromised, because the attack that actually breaks most accounts isn't guessing your password, it's trying a password that worked on a completely different site you used years ago. Here's how credential stuffing works, why password "strength" is irrelevant to this specific attack, and why a generator-plus-manager combination — making unique-per-site passwords practically achievable — directly closes this vector.
Passkeys: How FIDO2/WebAuthn Works and Why It's Replacing Passwords
Passkeys store a private key on your device and register only the public key with the website — there's nothing to phish, breach, or reuse. Here's how FIDO2/WebAuthn registration and authentication work, the difference between platform passkeys (iCloud, Google) and hardware keys, and the current state of passkey adoption.
Password Managers: How Zero-Knowledge Encryption Works and Which One to Choose
Credential stuffing is the main threat, and unique passwords are the defence — but only a password manager makes that practical at scale. Here's how zero-knowledge encryption works, Bitwarden vs 1Password vs KeePass compared, and how to set up recovery.
Why "P@ssw0rd1" Still Gets Cracked: What Password Strength Actually Means
Most passwords that "pass" complexity rules are still cracked in minutes. Here's how attackers actually work, what password entropy means, and why random generation beats human-chosen passwords every time.
Password Generator — Create Strong, Random Passwords Instantly
Learn what makes a password truly strong, why human-invented passwords fail, and how to use a free password generator to create cryptographically random credentials for every account.