About Password Generator: Guide & Practical Notes
Humans are notoriously predictable at inventing passwords—favoring capitalized words, birth years, and trailing exclamation marks (`Spring2026!`) that cracking rigs guess in seconds.
Creates cryptographically random passwords between 4 and 128 characters using `crypto.getRandomValues()` with unbiased rejection sampling, optional ambiguous-character exclusion, and live entropy readout.
How to Use Password Generator Step by Step
- Choose Password Length (16+ recommended for important accounts).
- Toggle Uppercase, Lowercase, Numbers, Symbols, and optionally Exclude ambiguous characters (`0, O, I, l, 1`).
- Click Generate Password and copy it directly into your password manager.
Worked Example
Generate an 18-character high-entropy account password.
Inputs: Length = 18, all 4 character sets enabled (88-char pool)
Result: 18 random characters with ~116.3 bits of theoretical entropy
Guarantees at least one character from each selected pool, then shuffles positions using CSPRNG Fisher-Yates.
Unbiased Web Crypto Rejection Sampling
Using `random % pool.length` introduces slight modulo bias when 2³² is not evenly divisible by the alphabet size. This generator discards out-of-bounds draws via rejection sampling so every symbol is uniformly probable.
Common Real-World Uses
- Creating unique passwords for banking, cloud consoles, and email logins
- Generating readable temporary passwords (excluding `0/O` and `1/l/I`) for onboarding
- Comparing password length vs. pool entropy tradeoffs
Common Mistakes to Avoid
- Generating a 6-character password with symbols instead of a 16+ character password (length dominates security).
- Reusing one generated password across multiple websites.
Supported Formats, Scope & Limitations
Always store generated passwords in a trusted password manager and pair critical accounts with multi-factor authentication (MFA).
Privacy & Local Processing
100% browser-local Web Crypto execution—never sent over the network or logged.
Frequently Asked Questions
Why does excluding ambiguous characters matter?
Characters like `0` vs `O` or `1` vs `l` vs `I` are easy to misread when typing recovery codes or sharing one-time secrets aloud.
Is this safer than `Math.random()` generators?
Yes. `Math.random()` is a non-cryptographic PRNG; `crypto.getRandomValues()` draws from the operating system CSPRNG.
Want to understand why common human patterns fail cracking wordlists? Test synthetic patterns in our Password Strength Checker.