Text

Password generator

A long random password beats a clever short one. This page builds it locally and shows how much entropy you actually have.

How it works

Each character is chosen with crypto.getRandomValues, the browser’s cryptographic random source, not Math.random. The picker avoids the usual modulo bias, so every character in the pool is equally likely. The pool is whatever you tick: lowercase, uppercase, numbers, and the symbols !@#$%^&*()-_=+[]{}:,.?. Ambiguous characters (0, O, o, 1, l, I) can be left out so a password survives being read aloud.

Entropy is length × log2(pool size), in bits. It describes the generator, not whether the password appears in a leaked list. A 16-character password from the full unambiguous pool is strong by that measure. The page guarantees at least one character from each set you enabled, then shuffles them. Copy puts the password on your clipboard. The generator does not store it.

Formula

  • Entropy
    bits = length × log2(number of allowed characters)
  • Strength bands
    under 40 weak, 40–59 fair, 60–79 good, 80 or more strong

Worked examples

Eight lowercase letters

8 × log2(26) is about 38 bits. That is a weak password even though it looks random.

Sixteen mixed characters

With ambiguous characters removed, 16 characters from a pool of 78 is about 101 bits, which this page calls strong.

A passphrase, for comparison

Four common dictionary words are often easier to type and can be strong if the word list is large. This generator builds a random string, not a phrase. Use it where a service demands mixed characters.

Entropy with ambiguous characters removed and every set enabled
LengthPoolBitsLabel
87850Fair
127875Good
1678101Strong
2078126Strong
3278201Strong

Common questions

Does this password leave my browser?

Not by this page. It is generated with the Web Crypto API and shown only here. HandyTools HQ has no account system and no password database. Your browser’s clipboard, password manager, and the site you paste into are separate.

What does the strength bar measure?

Entropy from the length and the size of the character pool. It does not check the password against a dictionary or a breach list. “password123” typed by hand would score well on length and still be a terrible password. This generator does not build that kind of password.

How long should it be?

Use at least 16 characters with letters, numbers, and symbols for an account password. Longer is better when the service allows it. The slider goes to 64.

Why avoid 0, O, and l?

They survive randomness and then fail a human. If you have to read the password from a screen onto another device, dropping 0, O, o, 1, l, and I prevents the usual mix-ups. Leave them in when nobody will ever retype it by hand.

Can I use this for a production secret?

The randomness comes from the browser’s crypto API, which is the right source. For a server secret, many teams prefer a generator on the machine that will store it. Either way, store the result in a password manager rather than in a note titled passwords.