Password Generator
Generate strong, random passwords right in your browser. Choose the length and character types — nothing is ever sent to a server.
Example
This is a sample result, not your calculation. Enter your own values to replace it.
Choose your settings, then generate a password.
Password Strength: —
Password Entropy: —
Settings changed. Generate again to apply them.
Check the settings
How to use the password generator
- Set the password length — type it in the box or drag the slider, which move together. Anywhere from 4 to 128 characters.
- Choose which character types to include: lower case, upper case, numbers and symbols.
- Optionally exclude the ambiguous characters, the brackets, or repeated characters.
- Press Generate, then Copy to place the password on your clipboard, or Regenerate for another one from the same settings.
If you change a setting after generating, the password on screen is marked as out of date and Copy is disabled until you press Generate again — so you never copy a password that no longer matches what is on the form. Clear puts every setting back to its default. You must keep at least one character type selected, and with repeated characters switched off the length cannot exceed the number of characters available.
How it generates a password
Each character is chosen with the browser's Web Cryptography API
(crypto.getRandomValues), which provides cryptographically strong randomness
rather than the predictable kind used for ordinary shuffling. The generator guarantees at
least one character from every type you selected, fills the rest from the combined pool,
then shuffles the whole thing so those guaranteed characters are not stuck in fixed
positions. Each draw is taken by rejection sampling rather than a remainder, so no
character is very slightly more likely than another.
Everything happens on your device. Nothing you generate is transmitted to a server, logged or stored, so the password exists only in your browser until you copy it.
What makes a password strong
Two things: length and variety. Every character you add multiplies the number of possible passwords, and every character type you enable widens the pool each position is drawn from. Length is the more powerful lever — adding characters strengthens a password faster than swapping in the odd symbol — which is why 16 characters is a good floor wherever a site allows it.
How the strength meter works
The meter estimates entropy in bits — a measure of how unpredictable the password is. It multiplies the length by the number of bits each character contributes, which depends on the size of the pool you are drawing from:
entropy (bits) = length × log2(pool size)
The pool is the one actually drawn from, after your exclusions — not the one on offer. With repeated characters switched off each position has one fewer choice than the last, so the bits are summed as log2(pool) + log2(pool − 1) + … instead, which is genuinely a little lower.
| Character type | Characters in the pool |
|---|---|
| Lowercase | 26 |
| Uppercase | 26 |
| Digits | 10 |
| Symbols | 32 |
| All four together | 94 |
| All four, ambiguous and brackets excluded | 70 |
More bits means a stronger password. The meter rates anything below 40 bits Weak, 40–59 Fair, 60–89 Strong, and 90 bits or more Very strong.
A length and strength reference
Using all four character types (a pool of 94) unless noted, entropy climbs quickly with length:
| Length & types | Approx. entropy | Rating |
|---|---|---|
| 8, lower case only | 37.6 bits | Weak |
| 8, all four types | 52.4 bits | Fair |
| 10, all four, both exclusions on | 61.3 bits | Strong |
| 12, all four types | 78.7 bits | Strong |
| 16, all four types | 104.9 bits | Very strong |
| 20, all four types | 131.1 bits | Very strong |
The jump from an 8-character lowercase password to a 16-character mixed one is the difference between something a modern machine can grind through and something it cannot.
Common mistakes to avoid
- Reusing a password across accounts — one breach then exposes all of them.
- Basing it on a word, name or date, which guessing tools try first no matter how you decorate it.
- Predictable substitutions like
P@ssw0rd— attackers know every one of them. - Going too short to save typing; length is where the real strength lives.
- Changing passwords on a fixed schedule with no cause, which tends to push people toward weaker, patterned variations.
Storing passwords safely
A strong password only helps if you can keep it unique per account, which is more than anyone can memorise. Pair the generator with a reputable password manager to store them, and turn on two-factor authentication wherever it is offered. Change a password when there is a reason — a breach or a phishing scare — rather than on a timer. If you need random numbers rather than passwords, use the random number generator.
Read more
Frequently asked questions
Are these passwords safe to use?
Yes. Passwords are generated in your browser using the Web Cryptography API, which provides cryptographically strong randomness. Nothing you generate is transmitted to or stored on any server.
What makes a strong password?
Length and variety. A longer password with a mix of uppercase, lowercase, digits and symbols has far more possible combinations, making it exponentially harder to guess. Aim for at least 16 characters where allowed.
What do the exclusion options do?
They take characters out of the pool. "Exclude Ambiguous Characters" drops the ones you cannot tell apart on a screen or over the phone — i, I, l, 1, L, |, o, O, 0 and the quote-like punctuation. "Exclude Brackets" drops < > ( ) [ ] { }, which can break shell commands, CSV files and some password fields. "No Repeated Characters" uses each character at most once, which caps the length at the size of the pool. Each of them shrinks the pool, so the entropy shown falls to match.
What does the strength meter measure?
It estimates entropy in bits — a measure of unpredictability based on the character set and length. More bits means a stronger password. Above about 90 bits is considered very strong.
Should I reuse passwords?
No. Use a unique password for every account and store them in a reputable password manager, so a breach of one service cannot compromise the others.
How long should a password be?
Aim for at least 16 characters wherever a site allows it. Length matters more than complexity: a long password has exponentially more combinations, so adding characters strengthens it faster than swapping in the odd symbol.
How often should I change my password?
Current guidance (including from NIST) is to change a password only when there is a reason to — a breach, a phishing scare, or a shared password — rather than on a fixed schedule. Forced routine changes tend to push people toward weaker, predictable variations.
Related calculators
- Age Calculator Calculate exact age in years, months and days from a birth date.
- Date Calculator Add or subtract days from a date, or find the days between two dates.
- Time Calculator Add, subtract and convert units of time.
- Hours Calculator Calculate hours worked between two times, minus breaks.
- GPA Calculator Compute grade point average from course grades and credit hours.
- Grade Calculator Find the grade you need and your weighted course average.
About this calculator
Method reviewed for accuracy on July 17, 2026
Built on transparent, unit-tested formulas that run entirely in your browser — see how we build our calculators.
Embed this calculator on your site — free
Add this free, mobile-friendly Password Generator to your own website. Paste the code where you want it to appear — it stays up to date automatically, and the frame resizes to fit.
Please keep the attribution link — it's what keeps these tools free to use and embed.