Password Generator
Generate a strong, random password with a custom length and character types — created securely in your browser.
Password
h^Bx)iKvKK-#)pV)
Strong password
- Free — No signup required
- Instant — Results update as you type
- Private — Processed in your browser
A strong password is one an attacker cannot guess faster than you can change it, and the only reliable way to get one is to let a random source pick every character. This generator does that with the browser's cryptographic random number generator and shows you why the settings you choose matter.
How it works
Choose a length from 8 to 64 and tick the character classes to draw from: 26 uppercase letters, 26 lowercase, 10 digits and 18 symbols (!@#$%^&*()-_=+[]{}). The classes you select are joined into a single pool. For each position the tool requests a 32-bit random value from crypto.getRandomValues, the Web Crypto API's cryptographically secure source, and maps it onto the pool. Reducing a 32-bit value onto a pool of at most 80 characters introduces a bias on the order of one part in fifty million, negligible for this purpose.
A password is generated as soon as the page loads and again each time you move the slider, toggle a class or press Regenerate. It is displayed and copied locally; nothing is transmitted or logged. Regenerate as many times as you like; there is no cost and no history.
The strength label is a rough heuristic based on length and on how many classes actually appear in the generated string. Because every character is chosen independently, a short password can occasionally come out without any digit or symbol even though those classes were selected; the label reflects what was produced, so regenerate if it reads lower than expected.
The arithmetic of guessing
Strength is measured in bits of entropy: log₂ of the number of equally likely passwords. For a length n drawn from a pool of p characters that is n × log₂(p).
| Settings | Pool | Entropy |
|---|---|---|
| 8 chars, lowercase only | 26 | 37.6 bits |
| 12 chars, letters and digits | 62 | 71.4 bits |
| 16 chars, all four classes | 80 | 101 bits |
| 24 chars, all four classes | 80 | 152 bits |
Each extra character adds the same number of bits, while adding a class raises the per-character figure only slightly: going from 62 to 80 symbols adds 0.37 bits per character. Length beats complexity. Sixteen characters of any mix are far stronger than eight characters that satisfy every rule.
Around 80 bits is out of reach of offline brute force with current hardware for any password hashed with a slow function; 100 bits and above is comfortable. Where a site limits length, use every character it allows.
Using the result
Generated passwords are only practical with a password manager, which is also the answer to the one weakness randomness cannot fix: reuse. A unique random password per site means a breach at one service exposes nothing else. Turn on multi-factor authentication where offered; it protects you when a password leaks through no fault of your own.
If you must memorise a password, a passphrase of five or six random dictionary words has comparable entropy to a 12-character random string and is much easier to hold in your head. This tool does not generate passphrases, but the same principle applies: the words must be chosen at random, not by you.
Some sites reject particular symbols. Untick the symbols class or regenerate until the result passes rather than editing characters by hand, which reintroduces human patterns.
Command-line equivalent
openssl can produce random bytes and encode them as text; the output uses the Base64 alphabet rather than a custom pool:
openssl rand -base64 18 # 24 characters, 144 bits
Learn more
Passwords are one factor among several in an authentication system; identity and access management explains how credentials, MFA, single sign-on and account lifecycle fit together in an organisation. On the server side, how passwords must be hashed and what counts as a broken authentication design are covered in the OWASP Top 10. For random identifiers that are not secrets, use the UUID generator.
FAQ
- Is this password generator secure?
- Yes. It uses the Web Crypto API's crypto.getRandomValues, a cryptographically secure random number source built into your browser — not Math.random(), which is not safe for security purposes.
- Are generated passwords sent to a server or stored anywhere?
- No. Passwords are generated and displayed entirely in your browser and are never transmitted or logged.
- How long should my password be?
- Most security guidance recommends at least 12-16 characters with a mix of uppercase, lowercase, numbers and symbols. Longer passwords are exponentially harder to guess or brute-force.