Password Generator
Generate random passwords from 8 to 64 characters with optional numbers and symbols, using crypto.getRandomValues with no modulo bias. Nothing leaves your browser.
The interactive tool loads here when JavaScript runs.
About this toolWhat is the Password Generator?
The Password Generator creates random passwords from 8 to 64 characters long using upper and lower case letters, with optional numbers and symbols. Each character is chosen with the browser's cryptographically secure random number generator (crypto.getRandomValues).
With every option on, characters come from a set of 88: 52 letters, 10 digits and 26 symbols (!@#$%^&*()_+-=[]{}|;:,.<>?). Each character is picked independently, so a password is not guaranteed to contain a digit or a symbol; regenerate if a site insists on one of each.
Nothing is stored or sent anywhere. The password exists only in your browser until you copy it into your password manager. The share button copies a link with your length and option settings, never the password itself.
- Length from 8 to 64 characters
- Optional numbers and symbols, 88 characters with both on
- Cryptographically secure randomness via crypto.getRandomValues, without modulo bias
- One-click copy and shareable settings link (the password itself is never put in the link)
- Generated locally in your browser
Updated
How to use the Password Generator
- Drag the length slider. Aim for at least 16 characters for important accounts.
- Tick Numbers (0-9) and Symbols if the site allows them.
- Click Generate Password.
- Copy the result straight into your password manager.
Worked examples
The default settings
Input
Length 16, numbers and symbols on
Output
A 16-character password from 88 possible characters, about 103 bits of entropy
16 x log2(88) is about 103.3 bits, far beyond what any offline guessing attack can cover.
A site that rejects symbols
Input
Length 20, symbols off, numbers on
Output
A 20-character password from 62 characters, about 119 bits
Dropping symbols but adding four characters of length gives more entropy than the 16-character default.
Background and insight
For years, password advice focused on complexity rules: at least one capital, one digit, one symbol, changed every 90 days. In 2017 NIST rewrote its Digital Identity Guidelines (SP 800-63B) and dropped most of that. The current advice is to favour length, screen new passwords against lists of known breached passwords, and stop forcing periodic changes unless there is evidence of compromise.
The reasoning is about entropy. Each randomly chosen character from a set of N symbols adds log2(N) bits. With the 52 letters alone, a 16-character password has about 91 bits of entropy. Adding the 10 digits and 26 symbols on this page raises the set to 88 characters, or about 6.5 bits each, for about 103 bits. Length grows entropy faster than adding symbol types, and long random passwords are not something people need to remember anyway, because a password manager does that.
The word "random" matters. Ordinary Math.random() in JavaScript is not designed to be unpredictable; crypto.getRandomValues is. This generator uses the latter and rejects random bytes that would cause modulo bias, so each character in the set is equally likely.
Common use cases
New accounts
Create a unique password for every service so one breach cannot open the rest.
Service credentials
Generate database, API or admin passwords for development and staging environments.
Rotating a compromised password
Replace a leaked password with a fresh random one immediately.
Shared team settings
Copy a settings link so teammates generate passwords with the same length and character options.
Tips and limitations
- Some symbols (& < > " ') break shell scripts, connection strings or XML configs. For machine credentials, turn Symbols off and add length.
- Avoid passwords for anything you must type on a TV or phone keyboard; a long passphrase of random words is easier there.
- A random password is only as safe as where you keep it. Store it in a password manager, not a note or a chat message.
- Turn on two-factor authentication for important accounts. A strong password does not help against phishing.
- If a site caps length at something short like 12, use every character it allows.
Sources and further reading
- NIST SP 800-63B: Digital Identity Guidelines, Authentication and Lifecycle Management, NIST. The 2017 revision that favoured length and breach screening over complexity rules
- NIST SP 800-63B-4: Authentication and Authenticator Management, NIST. The current revision of the same guidance
- Crypto: getRandomValues() method, MDN Web Docs. The cryptographically secure random source the generator uses
Frequently asked questions
How long should a random password be?
At least 16 random characters for important accounts. NIST SP 800-63B requires sites to accept at least 8 characters but recommends allowing 64 or more, and every extra random character multiplies the work for an attacker by the size of the character set.
Are symbols necessary in a strong password?
They help, but length helps more. Symbols raise each character from about 5.95 bits to about 6.46 bits; one extra character adds the same again. If a site rejects certain symbols, untick Symbols and add a few characters of length instead.
Is it safe to generate passwords in a browser?
Yes, when the generator uses crypto.getRandomValues and runs locally, as this one does. Nothing is transmitted or stored, and the settings link only carries length and options. Avoid generators that build passwords on a server or with Math.random().
Should I change my passwords regularly?
Current NIST guidance says no, unless there is evidence a password has been exposed in a breach or phishing attack. Forced rotation tends to produce predictable patterns such as Summer2025! becoming Autumn2025!. Change a password immediately when it may be compromised.
Why does a generated password sometimes have no digits?
Each character is chosen independently from the whole set, so a 16-character password with numbers and symbols on has roughly a 15% chance of containing no digit. That does not weaken it. Regenerate if a site requires at least one digit.
Is there an in-depth guide to the Password Generator?
Yes. “Strong Passwords, Explained: Length, Entropy and What NIST Actually Recommends” covers the background, how it works, common pitfalls and worked examples. Read the full guide.
Related Tools You May Like
Free, in-browser tools that pair well with this one.