Password & Passphrase Generator

Create strong random passwords or easy-to-type passphrases using your browser’s cryptographically secure random generator. See the strength in bits of entropy. Passwords are generated on your device and never sent anywhere.

— · 0 bits of entropy · average time to guess at 10 billion guesses per second: —

Include

How to use the generator

A new password appears as soon as the page loads. Use the Password tab for a random string of characters, or the Passphrase tab for a sequence of random words. Change any option and a fresh value is generated immediately; press Generate new (or Ctrl/⌘ + Enter) for another. Copy places it on your clipboard, ready to paste into a sign-up form or your password manager. If someone can see your screen, press Hide to mask it.

Need several at once, for example when setting up accounts for a team? Choose a number from How many and each extra password appears in a list with its own copy button.

Password or passphrase: which should you use?

Both are strong when generated randomly; they suit different situations.

What “bits of entropy” means

Entropy measures how many possibilities an attacker would have to try. Each extra bit doubles that number. A password chosen at random from a pool of N characters with length L has L × log2(N) bits. For example, 12 characters from the 88-character pool gives 12 × 6.46 ≈ 77.5 bits, while 16 lowercase letters gives 16 × 4.7 ≈ 75 bits. Length matters more than complexity: adding characters increases strength faster than adding symbol types.

The meter grades results roughly as follows:

EntropyRatingSuitable for
under 40 bitsVery weakNothing important
40–59 bitsWeakLow-value accounts protected by rate limiting
60–79 bitsGoodMost online accounts
80–99 bitsStrongEmail, banking, master passwords
100+ bitsVery strongEncryption keys and anything long-lived

The “time to guess” figure assumes an attacker has stolen a password database and can test ten billion guesses per second, a realistic speed for modern GPUs against fast, unsalted hashes. Websites that store passwords properly with slow algorithms such as bcrypt or Argon2 are far harder to attack, and online login forms are slower still, so the estimate is deliberately pessimistic.

Important: entropy only describes passwords that are randomly generated, like the ones here. A password you invent yourself, such as Summer2024!, might look complex but follows patterns attackers try first, so its real strength is far lower than its length suggests.

How the randomness works

KeySmith uses crypto.getRandomValues, the browser’s cryptographically secure pseudo-random number generator, seeded by your operating system. It does not use Math.random(), which is predictable and unsuitable for secrets. Each character or word is chosen with rejection sampling: random numbers that would make some characters slightly more likely than others are thrown away and redrawn, so every option has exactly the same probability. When “at least one of each type” is enabled, one character from each selected group is placed first and the final password is shuffled with a secure Fisher–Yates shuffle, so the guaranteed characters do not sit in predictable positions.

Practical tips

Common password myths

Examples

Here is what different settings produce (these examples are public, so do not use them):

Frequently asked questions

Are the generated passwords sent to your server?

No. They are created by JavaScript in your browser using crypto.getRandomValues and exist only on your screen and clipboard. Nothing is transmitted, logged or saved, and the generator works offline once the page has loaded.

How long should my password be?

For a random password with mixed character types, 16 characters or more is a strong choice for most accounts and 20+ for critical ones. For passphrases, use at least five words, or six or more for a master password.

Is a passphrase really as secure as a random password?

Yes, as long as the words are chosen randomly and you use enough of them. Six random words from the 7,776-word EFF list give about 78 bits of entropy, comparable to a 12-character random password with all character types, while being much easier to remember.

Why do you use the EFF wordlist?

The Electronic Frontier Foundation designed its large wordlist for passphrases: the words are common, easy to spell, avoid offensive terms and have unique first three letters, which reduces typing mistakes. Its 7,776 entries also match five dice rolls, so the entropy is easy to calculate.

What does “avoid look-alikes” remove?

It removes characters that are easily confused when read or written down: uppercase I and O, lowercase l and o, the digits 1 and 0, plus the pipe, backtick and quote characters. This slightly reduces entropy per character, so consider adding a character or two of length.

How accurate is the time-to-crack estimate?

It is a deliberately pessimistic estimate: the average time to find the password by trying half of all possibilities at ten billion guesses per second. It applies only to randomly generated passwords like the ones here, not to passwords people make up.

Should I write my passwords down?

A password manager is the best option. If you must write one down, such as an emergency copy of your master passphrase, keep the paper somewhere physically secure and not with the device it unlocks.