Password Generator
Choose the character types and password length, then generate a password.
About this tool
Build a random password from the character sets you enable: digits,
letters in both cases, and symbols. Each character is drawn from
crypto.getRandomValues.
How to use
- Select at least one character type.
- Set the length, from 1 to 64.
- Click Generate password, then Copy.
The settings are remembered between visits; the generated password is not.
How characters are drawn
Bytes come from the browser CSPRNG, and a byte is used only when it falls
below the largest multiple of the alphabet size — anything above is
discarded and redrawn. Without that step, a plain
byte % alphabet.length would make the first characters of the
alphabet more likely whenever the size does not divide 256. The alphabets
here are 10, 52, 62 and 87 characters long, and none of them divide 256.
Because the draw is uniform, the strength of the result is decided by the alphabet size and the length:
- Digits only — 10 characters, about 3.32 bits each.
- Letters — 52 characters, about 5.70 bits each.
- Digits and letters — 62 characters, about 5.95 bits each.
- Everything — 87 characters, about 6.44 bits each.
A 16-character password using all three sets therefore carries roughly 103 bits of entropy.
Limits
- Characters are drawn independently, so an enabled set is not guaranteed to appear. A four-character password with symbols enabled may contain no symbol at all.
- Short passwords are weak regardless of how they were produced: eight characters from digits alone is only about 27 bits.
- There is no check against breach lists, no strength meter, and no passphrase or diceware mode.
FAQ
Is the generator cryptographically secure?
The randomness comes from crypto.getRandomValues and every
character in the alphabet is equally likely, so the draw itself is sound.
The resulting strength still depends on the length and on which sets you
enable.
What happens if I uncheck every character set?
Generation stops and the page asks for at least one set to be enabled.
Does reloading generate a new password?
No. Reloading clears the field; only the settings are restored.
Is the password stored or sent anywhere?
No. It is built in the page and never written to storage or transmitted.