Secure Password Generator
Generate a random password from 8 to 128 characters using lowercase letters, uppercase letters, digits and symbols — any combination you choose. Each character is picked with your browser's Web Crypto random source and unbiased rejection sampling, so every allowed character is equally likely. The password is created on this page and isn't saved or sent anywhere.
- Free to use
- No account required
- Generated in your browser
Secure Password Generator
Was this tool helpful?
Good to know
- Useful for
- Creating a new, unique password for an account, a Wi-Fi network or a service, especially when you store it in a password manager.
- Accepts
- A length from 8 to 128 characters, the character types to use, and the optional ambiguous-character and each-type settings
- Produces
- One random password, hidden until you choose to show it, with a theoretical estimate of the settings' search space in bits
Privacy
Passwords are generated in your browser. They aren't uploaded, logged, sent to analytics, an AI service or a breach-checking service, and aren't saved in browser storage, cookies, the page address or a password history. Your settings aren't stored either, and reloading the page clears everything.
Limitations
- Character types: lowercase a–z, uppercase A–Z, digits 0–9 and the symbols !@#$%^&*()-_=+[]{};:,.? — no spaces, accented letters or other symbols. Some sites reject certain symbols; turn Symbols off for those.
- Avoid ambiguous characters removes 0, O, 1, I and l. That makes passwords easier to read, but the smaller character set slightly reduces the search space.
- The bits figure is a theoretical estimate of the generator's output space when an attacker knows your settings. It isn't a guarantee: it doesn't protect against password reuse, phishing, malware, a breached website or someone reading your clipboard or screen.
- Web Crypto provides cryptographically strong pseudorandom values from your browser and operating system. The tool can't protect you if your device or a browser extension is compromised.
- JavaScript can't guarantee that every copy of a string is erased from your browser's memory. Clear password and reloading remove it from the page.
Tips
- Length matters more than complexity: a longer password from fewer character types can have a larger search space than a short one with all four.
- Use a password manager so each account can have its own long, random password that you never need to remember.
- Don't reuse passwords. If one site is breached, a reused password puts every account that shares it at risk.
- Want to see whether a password you already use appears in known breach data? The separate Password Breach Checker (/security/password-leak-check) can tell you; nothing from this page is passed to it.
How to generate a strong password
- Choose a length with the slider or type a number from 8 to 128. The default is 20 characters.
- Tick the character types you want: lowercase letters, uppercase letters, digits and symbols.
- Optionally tick Avoid ambiguous characters, or require at least one character from each selected type if a site insists on it.
- Press Generate password. The password appears hidden; select Show password to read it.
- Copy it into your password manager or the site's sign-up form, then select Clear password when you're done.
Frequently asked questions
How do I generate a strong password?
Choose a long length — the default is 20 characters — keep the character types the site accepts, and press Generate password. Each character is chosen at random by your browser's Web Crypto generator, so the result has no pattern for anyone to guess. Use a different password for every account and keep them in a password manager.
How long should a secure password be?
Longer is generally better. NIST's current digital identity guidelines (SP 800-63B) ask websites to require at least 15 characters for passwords used as the only sign-in factor, and recommend that they accept passwords of at least 64 characters. This generator defaults to 20 and supports 8 to 128. Shorter lengths are available for sites with low limits, and the page notes when a length is below 15.
Does this generator use cryptographically secure randomness?
Yes. Every password comes from crypto.getRandomValues, the Web Crypto API's cryptographically strong random number generator, never from Math.random. Each 64-bit random value is mapped to a character with rejection sampling, which discards the few values that would make some characters more likely than others. If Web Crypto isn't available, you see an error and no password is created.
Do I need numbers and special characters in every password?
Not necessarily. NIST's current guidance tells websites not to impose composition rules such as requiring a mix of character types; length and uniqueness matter more. Some sites still require digits or symbols, so you can include any of them and optionally require at least one of each selected type. A long password from fewer types can have a larger search space than a short password with all four.
What does excluding ambiguous characters mean?
Avoid ambiguous characters removes characters that are easy to confuse when reading or typing: 0 (zero), O (capital o), 1 (one), I (capital i) and l (lowercase L). They're removed from the characters the generator picks from, not just hidden. It helps when you have to read or type a password by hand, but it doesn't make the password stronger — the character set gets slightly smaller.
Are generated passwords saved, uploaded or shared?
No. Passwords and settings stay on this page in your browser. They aren't uploaded, logged, sent to analytics or saved in browser storage, cookies, the page address or a history. Changing a setting, selecting Clear password or reloading the page removes the password from the page.
What happens when I copy a password?
Copy puts the password on your device's clipboard, and the page confirms only once the browser reports success. The clipboard is outside this page's control: the password can stay there, or in a clipboard history or sync feature, until something else replaces it. The tool doesn't clear your clipboard automatically, because that could erase something else you copied.
Should I check whether a password has appeared in a data breach?
A newly generated random password is very unlikely to appear in breach data, but checking passwords you already use is worthwhile. The separate Password Breach Checker on FreeToolsKit compares a password against the Have I Been Pwned dataset without sending the password itself. This generator never sends a password there automatically.
Related network and security tools
Related guides
- 8 min readHow Long Should a Password Be? Length, Character Sets and PassphrasesAt least 15 characters when a password is your only sign-in factor, 8 with MFA, and 16–20 random characters in a password manager. See the bits formula, tested generator settings and passphrases.
- 6 min readWhat to Do If Your Password Appears in a Data BreachA found password isn't proof your account was breached, but stop using it. Change email first, then reused logins, and add a passkey or 2SV.
- 10 min readHow to Verify a Download with a SHA-256 ChecksumCompare a download's SHA-256 hash with the publisher's checksum, see what a match proves and what it doesn't, what to paste from a SHA256SUMS line, and what to do when the checksums don't match.

