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)
1256 bits68 bits71 bits77 bits
1675 bits91 bits95 bits103 bits
2094 bits114 bits119 bits129 bits
24113 bits137 bits143 bits155 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.

Rate this Tool

0.0/5

Based on 0 user ratings.

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 shapeEntropyComparison
8 characters, all four sets52 bitsShort, even with symbols
12 characters, lowercase only56 bitsAlready stronger than the row above
12 characters, all four sets77 bitsComfortable for most accounts
16 characters, lowercase only75 bitsNearly matches 12 characters with symbols
16 characters, all four sets103 bitsA strong default for important accounts
24 characters, all four sets155 bitsGenerous 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.

Entropy at 87 characters 77 12 103 16 129 20 155 24 password length in characters

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, 123456 and abcdef appear 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 ruleRealityBetter practice
Change every 90 daysEncourages small, predictable variationsChange on evidence of compromise, not on a calendar
Must include one of each typeProduces Password1!-style patternsRequire length and block known-breached values
Symbols are mandatorySymbols help only if the whole value is randomLet a generator choose from the full pool
Longer is always saferTrue for random strings, false for reused phrasesLong and randomly generated, stored in a manager
Security questions add protectionAnswers are often public or guessableTreat 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 →

Frequently Asked Questions

Sixteen characters with all four character sets gives about 103 bits, a solid default. Use 20 or more for email, banking and password-manager master credentials, where the value protects other accounts.

No. A 16-character lowercase password has about 75 bits, while 16 characters from all four sets has about 103 bits. Symbols help, but length and randomness do more of the work. Include symbols when a site requires them.

In this case the value never leaves your device: the script runs in the page and uses the browser's cryptographic random source. The remaining risks are local, such as someone watching the screen or a compromised browser extension.

A random 16-character string is not designed to be memorized. Use a password manager for those values, and reserve memorization for the manager's master password or a long randomly chosen passphrase.

It shows how many bits of randomness the settings provide, assuming independent random selection. More bits mean more possible combinations. It does not promise a cracking time, which depends on how the password is stored and how it is attacked.

When a site supports passkeys, they remove the shared secret that can be phished or reused. A generated password is still needed for sites without passkey support and for the account that stores your credentials.