Password generator

Generate strong, cryptographically random passwords instantly. Customise length and character sets. Your password is generated entirely in your browser and never sent to any server.

Click Generate
Password strength
664

Why strong passwords matter

A weak password is the single most common entry point for account compromises, data breaches, and identity theft. Studies consistently show that over 80% of hacking-related breaches involve stolen or weak passwords. Despite this, the most commonly used passwords worldwide remain "123456", "password", and "qwerty" — strings that can be cracked in under a second by modern brute-force tools.

A strong password has three key properties: length (longer is exponentially harder to crack), randomness (predictable patterns are exploited by dictionary attacks), and character diversity (mixing uppercase, lowercase, numbers, and symbols dramatically increases the search space for attackers). This generator uses the browser's crypto.getRandomValues() API — a cryptographically secure random number generator — to ensure passwords are genuinely random rather than pseudo-random.

How password strength is calculated

Password strength is measured by entropy — the number of bits required to represent the password in information theory. Entropy is calculated as the logarithm base 2 of the total possible password combinations. A 16-character password using all four character sets (uppercase, lowercase, numbers, symbols) draws from a pool of 94 characters, producing 94^16 possible combinations — approximately 10^31. At a billion guesses per second, that would take longer than the age of the universe to crack by brute force.

The strength meter in this tool classifies passwords as: Weak (under 40 bits), Fair (40–60 bits), Good (60–80 bits), Strong (80–100 bits), and Very Strong (over 100 bits). For any account that matters, aim for at least Strong. For master passwords and encryption keys, Very Strong is recommended.

Password generator use cases for developers

Beyond personal security, developers use password generators constantly. Generating random API keys and secret tokens for environment variables. Creating initial passwords for test user accounts in seed data scripts. Generating database passwords during infrastructure setup. Creating one-time passwords for testing email verification flows. Populating password fields with realistic test data that passes validation rules requiring mixed character types. This generator handles all these use cases with configurable length and character set options.

Using a password manager

The only practical way to use unique strong passwords for every account is a password manager. Generate a different strong password for every service you use, store them in a password manager (1Password, Bitwarden, or your browser's built-in manager), and use a single very strong master password to protect the vault. This approach makes you immune to credential stuffing attacks — where attackers use passwords from one breach to access other services.

API access

GET https://api.toolpad.in/api/v1/generators/password?length=16&symbols=true&count=10

Is my generated password stored anywhere? +
No. Password generation happens entirely in your browser using JavaScript. The generated password is never transmitted to any server, stored in any database, or logged anywhere. You can verify this by watching your browser's network tab — no outbound requests are made when you generate a password.
What makes a password truly random? +
This generator uses window.crypto.getRandomValues(), which is the browser's cryptographically secure pseudo-random number generator (CSPRNG). Unlike Math.random() which is deterministic and predictable, crypto.getRandomValues() draws from the operating system's entropy pool, making it suitable for security-sensitive applications.
How long should my password be? +
For most online accounts, 16 characters is sufficient. For high-value accounts (email, banking, password manager master password), use 20+ characters. For encryption keys and API secrets, 32+ characters is recommended. Length matters more than complexity — a 20-character lowercase-only password is stronger than a 10-character mixed-case password.
Should I include symbols in my password? +
Symbols significantly increase password strength by expanding the character set. However, some systems don't accept all symbols or have specific requirements. If a system rejects your password, try generating one with only uppercase, lowercase, and numbers first, then add symbols if the system requires them.
What is the difference between a password and a passphrase? +
A password is a random string of characters. A passphrase is a sequence of random words (e.g., "correct horse battery staple"). Passphrases are easier to remember and can be equally secure if they are long enough. For passwords you need to type regularly without a password manager, a passphrase may be more practical.