Password generator

Generate strong random passwords or memorable passphrases, with an honest estimate of how long each would take to crack. You can also check a password you already use and see exactly what makes it weak.

  • Generate
  • Runs in your browser. Nothing is uploaded
 

Space new C copy
Bulk
Check a password

Each weak part is marked: common words, years, keyboard runs and repeats. Attackers try these long before random guesses. Nothing you type leaves your browser.

How strong is strong enough?

Password strength is measured in bits of entropy: each extra bit doubles the number of guesses needed. For a random password, it’s the length × log2(number of possible characters). Crack times below assume an offline attack at 100 billion guesses a second.

PasswordEntropyTime to crack
8 characters, all sets52 bits5 hours
12 characters, letters and digits71 bits5 centuries
16 characters, all sets103 bitslonger than the age of the universe
20 characters, all sets129 bitslonger than the age of the universe
4 random words41 bits14 seconds
6 random words62 bits274 days

Length beats complexity. Adding characters adds far more strength than adding symbol types, and long passwords are easier to type than short, complicated ones.

Checking a password you already use

Entropy formulas only work for random passwords. Human-made passwords follow patterns, and attackers try those patterns first. The checker looks for them and marks each one in the password:

  • Common passwords from breach lists, like password1 or qwerty.
  • Dictionary words, including ones with symbols swapped in (p@ssw0rd). Those swaps are the first thing cracking tools try.
  • Years and dates, like birthdays.
  • Keyboard runs and sequences like qwerty, asdf and 1234.
  • Repeats like aaa or abcabc.

Each pattern counts as only a few guesses, so the realistic strength is shown alongside, with crack times for both an offline attack and a rate-limited online one. The check runs in your browser and the password isn’t stored or sent anywhere.

Options explained

  • No look-alikes removes characters that are easy to confuse, like l, 1, I, O and 0. Useful when a password will be read aloud or typed from paper. It costs a little entropy, which the meter accounts for.
  • Passphrase separators, capitals and a number help meet site rules. They add little strength; adding a word adds more.
  • Bulk generates a list at once, for seeding test accounts or setting up devices.

Generating passwords in code

# macOS / Linux: 24 random characters
openssl rand -base64 18

# Python
import secrets; secrets.token_urlsafe(18)

// Node.js
crypto.randomBytes(18).toString('base64url')

Never use Math.random() or Python’s random module for passwords; they’re predictable. Need a random ID rather than a secret? Use the UUID generator. Hashing passwords? See the hash generator notes on why plain hashes aren’t enough.

Questions people ask

How long should a password be?
At least 16 random characters for anything important, or 5 to 6 random words for a passphrase you need to remember. A random 16-character password from all character sets has about 103 bits of entropy, far beyond what anyone can guess.
Is a passphrase as secure as a random password?
If the words are chosen randomly, yes. Each word from our 1,296-word list adds about 10.3 bits, so 6 words gives about 62 bits. It’s the randomness that matters: a phrase you made up, like a song lyric, is much weaker.
Are these passwords generated securely?
Yes. They use crypto.getRandomValues, the browser’s cryptographically secure random source, with no bias towards any character. Nothing is sent over the network or stored.
How is the crack time worked out?
We assume a well-funded attacker who has stolen a database of fast hashes and can make 100 billion guesses a second, and show the average time to find the password. Against a website login that limits attempts, it would take vastly longer.
Should I use a password manager?
Yes. The only way to have a different strong password for every account is not to remember them. A password manager generates and fills them for you; you only need one strong passphrase to unlock it. Turn on two-factor authentication or passkeys wherever you can.
↑↓ move↵ openesc close