Free tool · Generators
Password generator
Choose a length and the kinds of characters you need, and get a random password at once, with its strength in bits. It is made in your browser and never stored or sent.
- Free
- No sign-up
- Runs in your browser
102.3 bitsStrong: 16 characters from a pool of 85
EXAMPLE-ONLY-not-a-password
Example only. Your browser makes a fresh password when the page loads.
- Strong
- 1 password
- Never leaves this device
- Length
- 16 characters
- Pool size
- 85 characters
- Possible passwords
- 6.33 x 10^30
- Entropy
- 102.3 bits
Entropy = length x log2(pool size). 16 x log2(85) = 102.6 bits. Every chosen set must appear, which removes the passwords that miss one: 102.3 bits exactly.
How to use the Password Generator
- Set the Length with the number box or the slider. Longer is stronger.
- Tick the Characters to use: lowercase, uppercase, numbers and symbols.
- Under Rules, keep Use every chosen set at least once if a site demands one of each, and tick Skip look-alikes if you will read or type the password by hand.
- Pick How many passwords, then press Generate new passwords. Use Copy next to a password, or Copy all.
How do I generate a strong password?
A strong password is one that nobody can guess, and the only reliable way to get one is to let a random number generator pick every character. This tool draws each character from the pool you chose using your browser's cryptographic random generator, crypto.getRandomValues. A draw that would favour some characters over others is thrown away and made again, so every character in the pool is exactly as likely as every other.
Strength is counted in bits of entropy. The formula is length x log2(pool size). With all four sets ticked the pool is 85 characters (26 lowercase, 26 uppercase, 10 digits and 23 symbols), so a 16-character password has 16 x log2(85) = 102.6 bits. Each bit doubles the number of guesses an attacker would need on average, so 102 bits means more than 10^30 possible passwords. When Use every chosen set at least once is on, passwords that miss a set are not allowed, which removes a few possibilities; the tool counts them exactly and shows 102.3 bits for the same settings.
How long should a password be?
Length does more than anything else. Eight lowercase letters give 8 x log2(26) = 37.6 bits, which is weak. Twelve lowercase letters give 56.4 bits, sixteen give 75.2, and twenty give 94.0. For comparison, eight characters from all 85 give only 51.3 bits, so a longer password of plain letters beats a short one with every symbol. The page labels the result with a rule of thumb: under 40 bits weak, 40 to 59 fair, 60 to 79 good, 80 to 127 strong, 128 and above very strong. The labels are a guide to the size of the guessing space, not a promise about any attacker.
NIST's digital identity guidelines (SP 800-63B) set a floor of 15 characters for a password that is the only login factor, and tell sites to accept passwords of at least 64 characters. If a site lets you, use 16 or more. For a password manager's master password, a random passphrase of several words is easier to type from memory.
Should I use symbols and numbers?
Use them when a site requires them, and otherwise add length first. Going from twelve lowercase letters (56.4 bits) to twelve letters and digits (71.5 bits) and then to all four sets (76.9 bits) helps, but adding four more lowercase letters to the first password (16 characters, 75.2 bits) gets almost the same gain with no symbols to type. NIST tells sites not to force mixtures of character types, but many sites still do, which is why Use every chosen set at least once is on by default.
Symbols cause trouble on some sites that reject certain characters. This generator uses a conservative set, !@#$%^&*()-_=+[]{};:,.?, and leaves out quotes, backslash, slash, angle brackets and the pipe. If a site still refuses a symbol, untick Symbols and add length instead. Skip look-alikes removes I, l, 1, O, 0 and o, which cuts the pool from 85 to 79 characters and costs about 1.7 bits at 16 characters.
Are online password generators safe, and how do I remember the result?
A generator is safe to use only if the password is made on your device and never sent anywhere. This page makes passwords with JavaScript in your browser. Nothing you tick or generate is stored, put in the address bar or sent to a server. You can check that in your browser's network panel, and the tool keeps working with the connection switched off once the page has loaded. Anything shown on a screen can be seen over your shoulder or in a screenshot, so generate where nobody is watching.
Do not try to memorise a random 16-character password. Save it in a password manager, or paste it straight into the site's sign-up form and use the manager's autofill later. Use a different password for every account, so that one leak does not open the others, and turn on two-step sign-in where it is offered. The tool is built to make passwords, and it is not a place to keep them: close the page and the passwords are gone.
Use it with
- Passphrase Generator: memorable word-based passwords.
- Random PIN Generator: random numeric PINs.
- Username Generator: available-style username ideas.
Questions
How do I generate a strong password?
Set a length of 16 or more, keep lowercase, uppercase, numbers and symbols ticked, and press Generate. Every character is picked at random with your browser's cryptographic random generator.
How long should a password be?
Sixteen characters or more for important accounts. NIST's SP 800-63B sets 15 characters as the minimum for a password used alone. At 16 characters from all four sets this tool gives about 102 bits of entropy.
Are online password generators safe?
Only if the password is made on your own device. This one runs in your browser, stores nothing and sends nothing, and you can confirm that in the network panel of your browser tools.
Should I use symbols and numbers?
Use them if the site asks. Otherwise, extra length adds more strength per character you type than extra character types do. Four more lowercase letters add about as much as digits and symbols together.
How do I remember a random password?
You do not need to. Keep it in a password manager and let it fill the password in. For the one password you must remember, use a passphrase of several random words instead.
What does entropy in bits mean?
It is the base-2 logarithm of the number of passwords the generator could have made. Each extra bit doubles that number. The formula is length x log2(pool size).
Sources
How this page was made: the tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations were drafted with AI help and checked against the tool's own output.