Password Generator
Generate strong, random passwords using custom length and character sets for enhanced security.
How the Password Generator works
Use this Password Generator to create secure passwords. You can specify the password's length and the types of characters it will contain.
First, set the "Length" for your password. This number determines how many characters will be in the generated password. A longer password is generally more secure.
Next, choose a "Character set". You can select from three options. 'Letters' includes only uppercase and lowercase letters. 'Alnum' includes letters and numbers. 'All' includes letters, numbers, and special symbols. Selecting 'All' provides the strongest password. The tool uses your operating system's Cryptographically Secure PseudoRandom Number Generator (CSPRNG) to create each character.
Formula used
each character drawn from a set of 26–90 symbols using your OS’s CSPRNG
| Symbol | Meaning |
|---|---|
| length | number of characters |
| character set | letters, letters + digits, or all three classes |
Length matters more than symbol variety: every extra character multiplies the search space. Randomness comes from the operating system’s cryptographic generator, never from Math.random.
Inputs used: Length, Character set.
Worked example
Here is an example of how to generate a password:
- Set the "Length" to 16.
- Choose 'All' for the "Character set".
- The tool generates a password like "8CWcUT!FszgJeY8G" with a length of 16 characters.
Result:
- password: 0LAq4q%X6e@J1Cs5
- length: 16
Frequently asked questions
- What is a strong password?
- A strong password is long, uses a mix of character types (letters, numbers, symbols), and is unique for each account. It is difficult to guess or crack.
- How long should a password be?
- A password should be at least 12-16 characters long. Longer passwords offer greater security against brute-force attacks.
- Is this password generator secure?
- Yes, this generator uses your operating system's Cryptographically Secure PseudoRandom Number Generator (CSPRNG) to ensure the randomness and security of the generated passwords.
- What formula does the Password Generator use?
- It uses each character drawn from a set of 26–90 symbols using your OS’s CSPRNG, where length is the number of characters; character set is the letters, letters + digits, or all three classes.
- How do I read the result?
- Length matters more than symbol variety: every extra character multiplies the search space. Randomness comes from the operating system’s cryptographic generator, never from Math.random.