Password Generator
Random passwords from your browser’s crypto, never a server.
- Local by default
- No signup
- AI is opt-in
Generated in this tab with crypto.getRandomValues(). Nothing is sent over the network, and nothing is kept after you close the page.
Create random passwords with your browser's cryptographic random number generator. Set the length, choose character sets, skip look-alike characters, and copy as many as you need. Nothing is transmitted, logged or stored.
What makes a password strong
A password is strong when an attacker who already holds the hashed value cannot guess the original fast enough to matter. That has two inputs: how many possible passwords the attacker has to try, and how fast they can try them. Length and randomness raise the first number; the site you log into controls the second by choosing a slow password hash such as Argon2id, scrypt or bcrypt.
Nearly all real-world password breaches come from reuse, phishing and plaintext leaks rather than from someone brute-forcing a random 20-character string. That is why the single most valuable habit is a unique password per site, kept in a password manager, with two-factor authentication turned on for anything that matters.
Length beats complexity. Going from 12 to 20 random characters adds far more guessing work than adding a symbol to a 12-character password, and it is easier to type on a phone.
How the randomness is produced
This page uses crypto.getRandomValues(), the browser API that draws from the operating system's cryptographically secure random number generator. It is the same primitive used for session tokens and encryption keys. Math.random() is deliberately not used: it is a fast statistical generator with a predictable internal state, which is fine for animations and unsuitable for anything an attacker would want to guess.
Mapping random numbers onto a character set has a subtle trap. Taking a 32-bit value modulo 94 is very slightly biased toward the first characters of the alphabet, because 2^32 is not an exact multiple of 94. Over enough passwords that skew is measurable. This tool rejects values above the largest multiple of the pool size and draws again, so every character is equally likely.
Shuffling works the same way. When the "one character from every selected set" option is on, the generator places one guaranteed character from each set and fills the rest from the combined pool, then shuffles the result with a Fisher–Yates pass driven by the same secure random source. The guaranteed characters therefore do not always land in the same positions.
All of this happens in the tab. There is no request to a server, no analytics call on the generated value, and no clipboard access until you press a copy button.
Reading the entropy estimate
The line under the results reports entropy in bits, calculated as length × log2(pool size). A 20-character password drawn from all 94 printable ASCII characters (letters, digits and symbols) is about 131 bits. The same length using letters and digits only is about 119 bits. A 12-character password over all 94 characters is only about 79 bits.
- Roughly 60 bits is weak for anything long-lived; it is crackable by a well-funded offline attacker.
- 80–100 bits is reasonable for typical accounts when the password is unique and the service hashes it properly.
- Above 128 bits, guessing is no longer the weak link. Phishing, reuse and a compromised device become the realistic risks.
The estimate assumes each character was chosen independently and uniformly, which is exactly what this generator does. It also assumes the attacker knows your settings. If they do not, the real work is higher — but do not count on that. The figure is a lower bound for a random password, not a measurement of how hard your particular password is for a human to shoulder-surf.
Character sets, symbols and site rules
Current NIST guidance (SP 800-63B) tells services to favour length, block known-breached passwords, and avoid forcing composition rules, because forced rules push people toward predictable patterns such as Password1!. Many services have not caught up and still reject passwords without a digit or a symbol, or silently cap length at 16 or 20 characters. If a site refuses what you generated, raise the length and keep all four sets enabled rather than shortening it.
Turning off a character set shrinks the pool, and the entropy line will show it. Dropping symbols costs about 0.9 bits per character; dropping everything except lowercase costs more than 2.3 bits per character. Shortening is nearly always the more expensive change.
When to exclude ambiguous characters
Excluding I, l, 1, O and 0 removes five characters from the pool. The cost is small, and it removes a real annoyance when you have to read a password off one screen and type it into another — a router admin page, a TV login, a shared workstation. It also avoids the classic support ticket where a password reset fails because a lowercase L looked like a one.
If the password goes straight from a password manager into a paste field, leave the option off and keep the extra characters. Ambiguity only matters at the moment a human transcribes it by eye.
What this page does not do
- It does not check whether a password has appeared in a breach. That requires a network lookup, and this tool never sends the value anywhere. Check the password in your manager or on the service instead.
- It does not store, sync or remember anything. Reload the page and the previous values are gone.
- It cannot guarantee that a specific site will accept the result. Some services still reject symbols, spaces or long values, and that rule lives on their side.
- It does not replace a password manager. Generated values are only useful if you can retrieve them later; a manager also keeps them unique per site.
- It does not generate passphrases or mnemonic phrases. Those trade entropy per character for memorability, which is a different tool.
One practical caution: generating a password in a browser tab is safe only if the tab is genuine. Bookmark this page rather than reaching it through a search result or a link in an email, and check the address bar before you trust any page that asks you to create credentials.
Frequently asked questions
Is it safe to generate passwords on a website?
It is safe when the page generates values locally and does not transmit them. This page uses crypto.getRandomValues() in the tab, makes no network requests with the result, and does not store anything. The main risk with any password page is a look-alike domain, so verify the URL and bookmark it.
How long should a generated password be?
Twenty characters with all four character sets is a good default and gives about 131 bits of entropy. For services that allow it, 24 to 32 characters costs nothing but typing. If a site caps length at 16, keep every character set on to recover some of the lost entropy.
Why is Math.random() not used?
Math.random() is not designed to be unpredictable. Its output comes from a fast algorithm with limited internal state, and observing enough values can let an attacker predict the rest. Cryptographic keys, session tokens and passwords need a CSPRNG, which is what crypto.getRandomValues() provides.
Does the "one from each set" option make the password weaker?
It slightly reduces the number of possible outputs and can make the format more predictable to someone who knows the setting, but it is still generated from a secure random source and the loss is small at normal lengths. It exists because many services still require a digit or a symbol. Turn it off if you control the rules and want maximum entropy.
Are these passwords stored or sent anywhere?
No. Everything runs in your browser. Generated values are not written to localStorage, cookies or any server, and the page makes no network request when it creates them. Closing or reloading the tab discards them.
Should I use symbols if a site might reject them?
Start with all sets enabled and try. If the service rejects the password, check its stated rules; most reject only a few specific characters rather than all symbols. If you must drop symbols, increase the length by several characters to compensate.
Can I use this for API keys or secrets?
It can generate a random string of any supported length, but API keys usually have provider-specific formats, prefixes and checksums. Use the provider's key generator. For shared secrets such as HMAC keys, random hex or Base64 with at least 32 bytes of entropy is the common choice.