DevTools Pro · All tools · About

Password Generator

About the Password Generator

This password generator creates strong random passwords from 4 to 128 characters long, using your browser's cryptographically secure random number generator. Choose which character sets to include, generate up to 50 at once, and a live strength meter shows the entropy in bits so you know how hard each password is to guess.

What makes a password strong?

Strength comes from unpredictability, measured as entropy: length × log2(pool size), where the pool is the number of characters the password could contain. Each extra bit doubles the number of guesses an attacker needs.

With all four sets enabled the pool here is 89 characters (26 uppercase, 26 lowercase, 10 digits and 27 symbols), worth about 6.5 bits per character. The default 16-character password therefore carries roughly 104 bits, far beyond any practical brute-force attack.

Password length vs complexity

Adding length raises entropy faster than adding character types. A 20-character password of only lowercase letters and digits has about 103 bits, while a 10-character password using every set has about 65 bits.

The strength meter labels anything under 40 bits as Weak, 40 to 59 as Fair, 60 to 79 as Strong and 80 or more as Very strong. For accounts that matter, aim for Very strong.

How this generator picks characters

Every character comes from crypto.getRandomValues, not Math.random. Rejection sampling removes modulo bias, so each character in the pool is exactly as likely as any other.

One character from each selected set is placed first, so every password is guaranteed to contain at least one of each type, and the result is shuffled with a Fisher-Yates shuffle. This satisfies sites that demand "at least one number and one symbol" without making positions predictable.

When to exclude look-alike characters

"Exclude look-alikes" removes characters that are easy to misread: l, I, 1, O, 0, o and the punctuation ; : , .. Use it when a password will be read aloud, printed or typed from a screen. It shrinks the pool slightly, so add a character or two to keep the same strength.

How to Use the Password Generator

  1. Drag the Length slider to set how many characters each password has (4-128).
  2. Switch Uppercase, Lowercase, Numbers and Symbols on or off. At least one set must stay on.
  3. Turn on "Exclude look-alikes" if the password will be typed by hand.
  4. Set How many (1-50) passwords to create. The list regenerates whenever you change a setting.
  5. Check the Strength label and entropy, then use the copy icon next to a password or Copy all. Click Generate for a fresh set.

Frequently Asked Questions

Are generated passwords sent or saved anywhere?
No. Passwords are generated in your browser and exist only on this page. Nothing is sent over the network or stored, so close the tab once you have copied what you need.
How long should my password be?
Use at least 16 characters for important accounts. With all sets enabled that is about 104 bits of entropy.
Are symbols really necessary?
Not if the password is long enough. Adding symbols raises entropy by about 0.5 bits per character here, while each extra character adds roughly 6 bits.
Why does a site reject my generated password?
Some sites limit length or allow only certain symbols. Lower the length or turn off Symbols and add a few characters to make up the difference.
Is this safer than Math.random-based generators?
Yes. Math.random is not designed for security and can be predictable. crypto.getRandomValues is the browser's cryptographically secure source.
Should I reuse a strong password on several sites?
No. If one site is breached, attackers try the same password everywhere else. Generate a separate password for every account.

Related tools