Password Generator
Create strong, random passwords with letters, numbers, and symbols. Choose the length and character types, and generate as many as you like. Nothing leaves your browser.
About Password Generator
This tool generates strong, random passwords[9] suitable for securing online accounts, applications, and data. It creates passwords using a cryptographically secure method, combining user-selected character sets including uppercase and lowercase letters, numbers, and symbols. The generation process occurs entirely within your browser, ensuring that the generated secrets are never transmitted over the internet or stored on any server. The primary goal is to produce passwords with high entropy, making them resistant to modern cracking techniques.
The security of a password is not determined by its complexity alone, but by its password strength[11], a measure quantified by entropy[7] and expressed in bits. Entropy measures the unpredictability of the password. It is calculated as the base-2 logarithm of the total number of possible passwords: `log2(R^L)`, where `R` is the size of the pool of unique characters and `L` is the password length. This generator utilizes the browser's native Web Cryptography API[15], which provides a Cryptographically-Secure Pseudorandom Number Generator (CSPRNG)[4]. This ensures that the selection of each character is statistically independent and uniformly distributed, a critical property for resisting predictive attacks.
Strong, random passwords provide a crucial defense against common credential attacks. A brute-force attack[2] attempts every possible combination of characters; increasing password length exponentially increases the time required for such an attack to succeed. High entropy from a large, randomized character set thwarts dictionary attacks[6], which test common words and simple variations. Furthermore, properly generated random passwords are not susceptible to attacks based on precomputed hash values, such as those using rainbow tables[13], especially when systems correctly implement a unique salt[14] for each stored password hash[5].
Modern password guidance has evolved significantly since the early days of computing on systems like the Compatible Time-Sharing System[3] at the Massachusetts Institute of Technology[8]. The National Institute of Standards and Technology[17] (NIST) provides authoritative recommendations in its Special Publication NIST SP 800-63B[18], "Digital Identity Guidelines: Authentication and Lifecycle Management". This standard de-emphasizes arbitrary composition rules (e.g., forcing a mix of character types) and password rotation policies. Instead, it prioritizes length, allowing for longer passphrases[12], and mandates checking new passwords against lists of known-compromised credentials. For machine-generated secrets intended for storage in a password manager[10], using maximum length and character set variety remains the optimal strategy.
How to Use
- Specify the desired password length using the slider or input field.
- Select the character sets to include: uppercase (A-Z), lowercase (a-z), numbers (0-9), and symbols.
- Click the 'Generate Password' button to create a new, random password.
- Use the 'Copy' button to securely copy the generated password to your clipboard.
- Paste the password into the required field and save it in a trusted password manager[10].
Frequently Asked Questions
What makes a password 'strong'?
A password's strength is formally measured in bits of entropy[7], which reflects its unpredictability. It is a function of length (L) and the size of the character set (R), calculated as `log2(R^L)`. Each bit of entropy doubles the average effort required for a brute-force attack[2]. Therefore, increasing length is the most effective way to improve password strength[11].
Is this online password generator safe to use?
Yes. This tool performs all generation logic exclusively on your device (client-side). It uses the `window.crypto.getRandomValues()` method from the standard Web Cryptography API[15], which is a CSPRNG[4] designed for security-sensitive applications. Your password is never sent over the network or seen by any server.
Should I prioritize length or complexity (using symbols, numbers)?
Current guidance from NIST SP 800-63B[18] prioritizes length over forced complexity rules. A very long password using only letters can be stronger than a short one with all character types. For passwords you must memorize, a long passphrase[12] is often better. For passwords generated by a tool and stored in a password manager[10], using maximum length and all available character types provides the highest possible entropy.
What is the difference between a password and a passphrase?
A password is traditionally a short, arbitrary string of characters, while a passphrase[12] is a sequence of words that forms a sentence or phrase. As famously illustrated in the webcomic xkcd on password strength[16], a four-word passphrase can be significantly harder to crack and easier for a human to remember than a typical complex password like "Tr0ub4dor&3".
How does password length affect security against brute-force attacks?
The relationship is exponential. If your character set has 94 characters, a password of length 8 has 94^8 (about 6 quadrillion) possibilities. A password of length 16 has 94^16 possibilities, which is the square of the previous number. This exponential growth in the search space makes brute-force attacks computationally infeasible for sufficiently long passwords.
Why are computer-generated random passwords better than human-created ones?
Humans are notoriously bad at creating randomness. We subconsciously use patterns, familiar words, birthdates, or simple substitutions that are well-known to attackers and are primary targets for dictionary attacks[6] and hybrid attacks. A CSPRNG[4] generates passwords with high statistical randomness, containing no such human biases or patterns.
What is a cryptographic <a href="https://en.wikipedia.org/wiki/Salt_(cryptography)">salt</a>?
A salt is a unique, random string of data that is added to a user's password before it is processed by a cryptographic hash function[5]. The resulting hash, along with the salt, is what's stored in a database. Salting ensures that even if two users have the identical password, their stored hashes will be different. This mitigates attacks using pre-computed hash lists, such as rainbow tables[13].
What characters are included in the 'symbols' set?
The symbol set is typically composed of punctuation and special characters from the ASCII[1] standard, such as `!@#$%^&*()_+-=[]{}|;:'",.<>/?~`. This specific set is chosen for broad compatibility with most websites and systems. However, be aware that some systems may have stricter character limitations, for instance, those related to character encoding or restrictions defined in standards like RFC 3986[19] for Uniform Resource Identifiers.
Sources (19)
- Wikipedia: ASCII
- Wikipedia: Brute-force attack
- Wikipedia: Compatible Time-Sharing System
- Wikipedia: Cryptographically-secure pseudorandom number generator
- Wikipedia: Cryptographic hash function
- Wikipedia: Dictionary attack
- Wikipedia: Entropy (computing)
- Wikipedia: Massachusetts Institute of Technology
- Wikipedia: Password
- Wikipedia: Password manager
- Wikipedia: Password strength
- Wikipedia: Passphrase
- Wikipedia: Rainbow table
- Wikipedia: Salt (cryptography)
- Wikipedia: Web Cryptography API
- Wikipedia: xkcd Password strength
- NIST: National Institute of Standards and Technology
- NIST: Special Publication 800-63B
- IETF: RFC 3986
About Matt George
I'm Matt George, a software engineer in the startup space. I run my own shop building software for early-stage founders, and I love making free tools and experiences that people actually use. Enjoy using Password Generator!