Password Generator
Make random passwords with your browser's secure generator and unbiased sampling: choose length and character sets and see the exact entropy in bits.
Settings
Passwords
Press Generate. Passwords are made in this browser and are not saved anywhere.
Theoretical randomness
129.7bits
log₂ of the exact number of 20-character strings over 90 symbols that contain every chosen set (129.8 bits without that rule = 20 × log₂ 90).
- This describes the generator, assuming an attacker knows exactly how it works. It is not a cracking-time promise — that depends on how a site stores passwords and the attacker’s hardware.
- It no longer applies if you edit the password, reuse it, or it leaks in a breach.
- Screen and clipboard exposure are still possible; use a password manager and clear the clipboard after use.
Passphrase instead
Several random words are easier to type and remember than a string of symbols, at the same strength when there are enough of them. Words come from the EFF Large Wordlist (7,776 words).
Word list: EFF Large Wordlist for Passphrases, © Electronic Frontier Foundation, used under CC BY 3.0 US (eff.org/dice).
How to use this calculator
- Set the length (8–256) and the character sets. Optionally leave out look-alike characters or any characters a site rejects.
- Keep “Include at least one character from every chosen set” on if a site demands it, choose how many passwords you want, then press Generate.
- Passwords appear masked: Reveal one to check it and press Copy to put it on the clipboard. Clear removes them from the screen.
- Prefer words? Under “Passphrase instead”, choose 4–12 words, a separator and capitals, then Generate passphrases.
How it works
Randomness comes only from the browser's Web Crypto generator (crypto.getRandomValues). If it is unavailable the tool refuses rather than falling back to an insecure source.
Each character is chosen without modulo bias: for an alphabet of N symbols a 32-bit value v is accepted only when v < ⌊2³²/N⌋·N, then v mod N picks the character. To include every chosen set, whole candidates missing a set are thrown away and redrawn, which keeps every valid password equally likely.
Bits shown = log₂(number of possible passwords): L × log₂ N when any string is allowed, or log₂ of the exact count of strings containing every set when that rule is on. It describes the generator, not a cracking time.
Passphrases draw each word uniformly from the EFF Large Wordlist (7,776 words, CC BY 3.0 US) with the same unbiased sampling, so n words carry n × log₂ 7,776 ≈ 12.9 bits each — six words ≈ 77.5 bits. The separator and capitals are fixed styling and add nothing.
Worked example
16 characters from 62 letters and digits. Lowercase, uppercase and digits give N = 62 symbols, so a fully random 16-character password carries 16 × log₂ 62 ≈ 95.3 bits. Requiring all three sets lowers that slightly (to about 95.2 bits) because strings missing a set are excluded. A 2-symbol alphabet at length 16 is exactly 16 bits.
Common mistakes
- Going too short — length adds bits faster than extra symbol types do.
- Reusing one password on several sites — the bits only protect a password that stays secret and unique.
- Editing a generated password by hand — the randomness figure no longer applies to what you typed.
Frequently asked questions
Are passwords saved?
No. They exist only in this page while it is open: they are not stored, not put in the address bar, not kept in a history and not sent anywhere. Copying puts one on your clipboard only when you press Copy.
Why no cracking-time promise?
How fast a password can be guessed depends on how a service stores it and on an attacker's hardware, neither of which this page can know. The bits figure is the honest part: how many equally likely passwords the generator could have produced.
What happens without secure randomness?
Generation stops with a message. The tool never substitutes Math.random or any other predictable source.
Related tools
- Password Entropy Calculator
- Random Number Generator
- UUID Generator
- Hash Generator
- Bandwidth Calculator
- Data Usage Calculator
Explore more in Networking, IT & Sysadmin.
Cite this tool
Zerdly. (2026). Password Generator. Retrieved from https://www.zerdly.com/tools/password-generator/
Tip: Enter any known values to calculate the remaining results.
Designed to run locally in your browser. Tool inputs are not intentionally stored by Zerdly unless stated otherwise.



