Theoretical entropy
H = L × log₂(N)
Create one or several unbiased random passwords with crypto.getRandomValues: 8 to 128 characters, uppercase, lowercase, digits, symbols, optional exclusion of look-alike characters, entropy in bits and a strength level. Everything is generated in your browser.
Without I, l, 1, O, 0 and o, easy to mix up.
This generator creates random passwords of 8 to 128 characters from the character types you pick, up to 20 at a time. It is meant for anyone opening an account, rotating a credential or preparing initial logins, and it shows the resulting entropy so you can judge how strong the password really is.
Every character is drawn with crypto.getRandomValues, the cryptographic random generator of the Web Crypto API backed by the operating system, not with Math.random, which is predictable. To avoid modulo bias, the tool uses rejection sampling: a random value that would exceed the largest multiple of the alphabet size is discarded and drawn again. Without this, with 256 possible byte values and a 62-character alphabet, the first 8 characters would come up slightly more often than the others. The tool also guarantees that at least one character of each selected type appears, so a site will not reject the password for a composition rule.
The displayed entropy follows the formula length × log2(alphabet size). With uppercase, lowercase and digits the alphabet has 62 characters, about 5.95 bits per character, so a 20-character password reaches roughly 119 bits. Each extra character multiplies the number of combinations by the alphabet size, whereas adding symbols only brings a few tenths of a bit per character. The strength level is derived from this entropy; above 80 bits an exhaustive search is out of reach, and 128 bits leaves a comfortable margin even against very large resources.
Choose a length from 8 to 128 characters (20 by default). A new password is generated when the page opens and every time you change an option.
Turn uppercase, lowercase, digits and symbols on or off, exclude look-alike characters if needed and choose how many passwords to generate, from 1 to 20.
Review the entropy in bits and the strength level, then use the copy button to paste the password into your password manager or the sign-up form.
H = L × log₂(N)
Generate a unique password of 20 characters or more for an online account, then save it straight into your password manager so it is never reused anywhere else.
Turn on the exclusion of look-alike characters (I, l, 1, O, 0, o) when you have to copy the password by hand, for example a WPA2 Wi-Fi key of 8 to 63 characters or a streaming account on a smart TV.
Generate up to 20 passwords at once for test accounts or first-day access during onboarding, send them through a separate channel and require a change at first sign-in.
Input
Length: 20; Uppercase (A-Z), Lowercase (a-z) and Digits (0-9) on; Symbols off; Exclude look-alike characters offResult
Alphabet: 62 characters; theoretical entropy: 20 × log₂(62) ≈ 119.08 bits; random password.This one is, because generation happens entirely in your browser with crypto.getRandomValues and makes no network request: the password is neither transmitted nor stored. You can even go offline after the page has loaded and the tool keeps working.
NIST SP 800-63B-4 (2025) requires at least 15 characters for a password used on its own and 8 characters when it is combined with a second factor. For passwords kept in a manager, 20 characters or more is a good habit since you never have to remember them.
Entropy measures how many combinations an attacker would have to try: n bits means 2 to the power of n possibilities, and every extra bit doubles the effort. It is only meaningful for a truly random password like the ones generated here; a password chosen by a human is far more predictable than its theoretical entropy.
Depending on the font these characters are easily confused, which causes mistakes when the password is read from a screen, dictated or typed on another device. The option removes them from the alphabet; the entropy loss is small and one or two extra characters make up for it.
No. Length matters much more: symbols add only a few tenths of a bit per character, while one extra character adds almost 6 bits. Keep them if the site accepts them, but a long password without symbols is still very strong.
For accounts stored in a password manager, a random password of 20 characters or more is ideal. For what you must remember yourself, such as the manager’s master password, a passphrase of several randomly chosen words is easier to memorise; this tool only generates character passwords.
Related tools
Tools similar or complementary to this one.
Check how strong a password is: entropy, weak patterns, estimated time to crack and advice.
Create a modern password policy: length, blocklists, passphrases, expiration and attempt limits.
Derive a salted PBKDF2-SHA-256 or SHA-512 password hash, or verify a password against an encoded value.
Understand why length and uniqueness matter, how password managers, MFA and passkeys complement passwords, and how servers should store them.
Understand the layers that protect a website: HTTPS, HTTP security headers, CSP, SRI, authentication, passwords and integrity.
Learn why covering text is not enough, how secure PDF redaction removes sensitive information and why sanitization matters before sharing.
Understand how OAuth 2.0, PKCE, JWT, JWK and JWKS fit together: authorization, tokens, public keys and verification.