Password Generator
Create strong, random passwords with the length and character sets you choose. Generation happens in your browser, and nothing is sent or stored.
Your password
Generated locally with a cryptographic random source—
Length is capped between 6 and 64 characters. Changing a checkbox affects the next password you generate, not the one already on screen.
Entropy by length and character set
| Length | a–z (26) | + A–Z (52) | + 0–9 (62) | + symbols (87) |
|---|---|---|---|---|
| 12 | 56 bits | 68 bits | 71 bits | 77 bits |
| 16 | 75 bits | 91 bits | 95 bits | 103 bits |
| 20 | 94 bits | 114 bits | 119 bits | 129 bits |
| 24 | 113 bits | 137 bits | 143 bits | 155 bits |
Values are length × log2(pool size), rounded to the nearest whole bit. Doubling the pool adds one bit per character; doubling the length doubles the total.
Strength is about how many guesses an attacker needs
A random password is strong when the number of possible values is enormous and nothing about the person who chose it narrows the search. Entropy turns that idea into a number you can compare.
How password entropy is calculated
Entropy measures the size of the search space in bits. If every character is chosen independently from a pool of P symbols and the password has length L, the number of possible passwords is PL. In bits, that is the base-2 logarithm of that count.
entropy (bits) = L × log₂(P)
Pool sizes for the four checkboxes on this page: lowercase only is 26, adding uppercase gives 52, adding digits gives 62, and adding the 25 symbols used here gives 87. The logarithms are 4.70, 5.70, 5.95 and 6.44 bits per character respectively.
Worked example: a 16-character password using all four sets gives 16 × 6.44 = 103.1, or about 103 bits. The same 16 characters in lowercase only gives 16 × 4.70 = 75.2 bits. Both are random, but one has roughly 270 million times more combinations than the other, because every extra bit doubles the work.
Why length usually beats extra symbols
Adding a character multiplies the search space by the pool size. Adding a whole character to the pool only multiplies it by the ratio of the new pool to the old one. Going from 62 to 87 characters, for example, is a factor of about 1.4 per character, while adding one more character at 62 is a factor of 62.
| Password shape | Entropy | Comparison |
|---|---|---|
| 8 characters, all four sets | 52 bits | Short, even with symbols |
| 12 characters, lowercase only | 56 bits | Already stronger than the row above |
| 12 characters, all four sets | 77 bits | Comfortable for most accounts |
| 16 characters, lowercase only | 75 bits | Nearly matches 12 characters with symbols |
| 16 characters, all four sets | 103 bits | A strong default for important accounts |
| 24 characters, all four sets | 155 bits | Generous margin for long-lived secrets |
This is why a long passphrase of ordinary words can outperform a short jumble of symbols. The catch is that a passphrase is only strong if the words are chosen randomly; a memorable quote or a lyric is not random, and an attacker can guess it from a word list.
The guessing game, in orders of magnitude
Each additional bit doubles the number of candidates an attacker must try. A 40-bit password has about 1.1 × 1012 combinations; 60 bits has about 1.15 × 1018; 80 bits has about 1.2 × 1024. The absolute time depends on the attack — an online login form with rate limits is nothing like a stolen hash file tested on dedicated hardware — so bits are best used to compare designs, not to promise a specific cracking time.
The practical conclusion is stable across those scenarios: a password below about 60 bits is a weak choice for anything valuable, 80 bits is a reasonable floor, and 100 bits or more leaves room for the attacker to have better hardware next year.
What actually makes a password weak
Randomness is the property that matters, and most human-chosen passwords are not random. The predictable shortcuts are well known to attackers:
- Reuse across sites. One breach turns into many, because the same password unlocks several accounts.
- Personal data. Names, birthdays, pet names, teams and street names are the first candidates in a targeted guess list.
- Patterns and substitutions.
P@ssw0rd!still follows a dictionary word with the usual letter swaps. Symbol substitution does not add entropy that an attacker has not already modeled. - Keyboard walks and sequences.
qwerty,123456andabcdefappear in every breach corpus. - Short length. Eight random characters is 52 bits with the full set, which is low by current standards.
- Leaked values. A password that appears in a public breach list is compromised even if it looks complex.
A password generator removes the human pattern from the equation. What it cannot fix is reuse: every account needs its own value, which is why a password manager is part of the workflow.
Password policy myths worth retiring
| Common rule | Reality | Better practice |
|---|---|---|
| Change every 90 days | Encourages small, predictable variations | Change on evidence of compromise, not on a calendar |
| Must include one of each type | Produces Password1!-style patterns | Require length and block known-breached values |
| Symbols are mandatory | Symbols help only if the whole value is random | Let a generator choose from the full pool |
| Longer is always safer | True for random strings, false for reused phrases | Long and randomly generated, stored in a manager |
| Security questions add protection | Answers are often public or guessable | Treat them as a weak fallback, use a second factor |
NIST SP 800-63B, the digital identity guideline many organizations follow, recommends length over composition rules, screening new passwords against breach lists, and avoiding forced periodic rotation. Those recommendations line up with what the entropy math shows.
Using this generator safely
The page builds each password with crypto.getRandomValues(), which draws from the operating system's cryptographic source. Characters are then selected from the combined pool. The modulo step that maps a 32-bit value onto a pool of 87 or 62 characters is not perfectly uniform, but the bias is so small that it has no practical effect on strength.
Nothing is transmitted when you press Generate: the value is created in the page and written into the result field. Copy places it on the clipboard, where it stays until another copy replaces it. If you are on a shared machine, clear the clipboard after pasting into your password manager.
A sensible routine: choose 16 to 20 characters with all four sets for important accounts, save the value in a manager before leaving the page, and enable a second factor wherever it is offered. Passkeys, where supported, remove the password from the login entirely and are worth adopting alongside strong generated passwords.
Related Developer & Security Tools
| Tool | What does it do? | Action |
|---|---|---|
| Base64 Encoder & Decoder | Encode text to Base64 or decode a Base64 string back to plain text. | Base64 Codec → |
| Hash Generator | Create MD5, SHA-1, SHA-256 and SHA-512 hashes from text. | Hash Maker → |
| UUID Generator | Generate random UUID v4 values, one or many at a time. | UUID Maker → |
| Password Generator | Build strong random passwords with length and character options. | Current Page |
| Regex Tester | Test a regular expression against sample text and inspect the matches. | Regex Test → |
| JWT Decoder | Decode a JWT header and payload locally, without sending the token anywhere. | JWT Decode → |
Rate this Tool
Based on 0 user ratings.