Password Generator
Generate strong, random passwords with customizable length and character options.
Settings
Output
What is Password Generator?
Password Generator draws characters locally using the browser’s cryptographic random source, crypto.getRandomValues. You choose the length and allowed character groups. Rejection sampling avoids modulo bias when random bytes are mapped to characters. If secure randomness is unavailable, the page reports an error and does not fall back to Math.random.
How to use Password Generator
Set Length to 16, enable lowercase letters, uppercase letters and numbers, and choose Generate password. Expect exactly 16 characters drawn from those groups; there is no fixed expected password. Enable Special characters to allow the displayed set !@#$%&*?. Select the result to copy it; the page does not automatically save it to an account or send it to a server.
When is Password Generator useful?
As a simple settings check, use length 8 with only Numbers enabled. The result should contain exactly eight digits. This is a format test, not a recommendation to use an eight-digit password. Enabled groups define the pool; the result is not guaranteed to contain at least one character from every selected group. Regenerate or choose another method if the destination requires that rule.
Example
Turn off all groups and generate to see the character-selection error. Length must be a whole number from 4 through 64; an empty field, fraction or out-of-range value is rejected. A new generation replaces the previous result. Random draws can theoretically repeat, so a changed result is not itself a statistical quality test.
Practical notes
Password strength depends on length, allowed choices and how the password is used; the minimum accepted length is not a security recommendation. Use a distinct password for each account and keep chosen credentials in a trusted password manager. Generation happens in browser memory without a password-generation API or new external library. The Web Crypto reference describes the random source.