Skip to content

Passphrase generator

Generate a passphrase of random common words: easier to remember and type than a random password, with its strength stated honestly.

Runs in your browser. Nothing you paste is sent to us.

Settings

1 to 20. Six words is a sound default; five is the least we would use.

Passphrases

69.4 bits of entropy 3,032 words in the list

Each word is picked at random from a built-in list of 3,032 common English words, so each adds 11.57 bits. The entropy assumes the attacker knows the list and your settings; only the random picks are secret.

How to use it

  1. Choose the number of words. Six is a sound default.
  2. Choose what goes between the words.
  3. Capitalize the words or add a digit if a password policy asks for them.
  4. Copy a passphrase, or press Generate again.

What to know

Each word is picked uniformly at random from a built-in list of about 3,000 common English words, so each one adds about 11.6 bits. Six words give about 69 bits.

The entropy assumes the attacker knows the word list and your settings. Only the random choices are secret, which is why a passphrase you make up yourself is much weaker than one picked at random.

Keycloak’s password policies can require uppercase letters, digits or special characters. Capitalizing every word, adding a digit and using a symbol between words meets those rules without making the phrase hard to remember.

What a passphrase is

A passphrase is a password made of several words, such as orbit-maple-violin-harbor-tender-quiz. When the words are picked at random, a passphrase is strong, and much easier to remember and type than a string of random characters.

The idea is old and well tested. The Diceware method, published in 1995, uses dice to pick words from a numbered list. This tool does the same with your browser’s cryptographic random generator in place of dice.

The strength of a passphrase comes from the random picks, not from the words being unusual. That is the part most people get wrong when they make one up themselves.

How passphrase entropy works

If a word list has W words and each word is picked uniformly at random, each word adds log2(W) bits. A passphrase of n words has n × log2(W) bits.

This tool’s built-in list has 3,032 common English words of 3 to 8 letters, with no duplicates. Each word adds log2(3,032) ≈ 11.57 bits.

WordsEntropy with this listComparable random password
446 bits7 characters from 90
558 bits9 characters from 90
669 bits11 characters from 90
781 bits12 to 13 characters from 90
893 bits14 characters from 90

The numbers assume the attacker knows the word list and your settings, and only the random choices are secret. That is the safe assumption: the list is published in this page’s code.

What the options add

Capitalizing every word adds no entropy, because there is no choice involved. It only helps meet a policy that requires uppercase letters.

Adding a digit to one random word adds log2(10 × n) bits: one of ten digits, on one of n words. For six words that is about 5.9 bits.

The separator adds nothing either, since you choose it once for all passphrases. A symbol separator such as a hyphen or period helps meet a policy that requires special characters.

Why made-up phrases are weak

A phrase a person chooses is rarely random. Song lyrics, quotes, idioms and grammatical sentences are all far more predictable than random words. Attackers run large lists of known phrases and common word combinations.

Even when people try to pick words at random, they favor some words and avoid others. The only reliable way to get the entropy in the table is to let a random source choose, and then use the result unchanged.

Do not regenerate until you get a passphrase you like the look of. Picking among many results gives up a little entropy for each choice you make, and favors patterns.

What this tool does and does not do

  • It picks 1 to 20 words uniformly at random from a built-in list of 3,032 words, using crypto.getRandomValues with rejection sampling.
  • It shows the entropy based on the actual list size and your options.
  • It can capitalize words, add a random digit, and join words with a hyphen, space, period, underscore or comma.
  • It makes one, five or ten passphrases at a time, and stores none of them.
  • It does not use a published list such as the EFF word lists. Those lists are longer, and a longer list gives more bits per word.

How to generate a passphrase

  1. Set the number of words. Six is a sound default for an account password; use seven or more for a password manager’s master password.
  2. Choose a separator. Hyphens are easy to type on phones and work in most systems.
  3. If a password policy requires capitals or digits, tick the matching options.
  4. Copy the first passphrase shown, not the one you like best.
  5. Write it down on paper for the first few days if you need to, then destroy the paper once you remember it.

Where passphrases work best

Passphrases shine wherever a person must type a secret from memory.

Password manager and vault master passwords

The one password a manager cannot store for you is its own. A seven or eight word passphrase gives 80 to 90 bits with this list, and is something people can actually remember.

Device and disk encryption

Disk encryption passwords are typed at boot, often on a keyboard without a password manager. They also protect data an attacker can copy and attack offline, so they need real strength.

User passwords under a policy

Keycloak realms often enforce a password policy: a minimum length, digits, uppercase letters and special characters. A passphrase with capitalized words, a digit and a hyphen separator meets those rules and stays memorable. Six words with hyphens come to about 40 characters on average, so even a strict length rule is no problem.

Check the policy’s maximum length too. Some systems cap passwords, and a long passphrase can hit that limit.

Temporary passwords read aloud

When a help desk must tell a user a first password, words are far easier to read over a chat or on paper than random characters. Mark such a password temporary, as Keycloak allows, so the user must replace it at first sign-in.

Common mistakes

  • Using too few words. Four random words is about 46 bits, which is not enough if a password hash is ever stolen.
  • Choosing the words yourself, or swapping a generated word for one you like better.
  • Using a famous phrase or a line from a song. These are on attackers’ lists.
  • Leaving out the separator and then forgetting where the words break. That is a memory problem, not a security one, but it leads to lockouts.
  • Reusing the same passphrase on several sites.

Security notes

NIST SP 800-63B advises that systems accept long passwords, at least 64 characters, and allow spaces. A system that rejects spaces or truncates long passwords works against passphrases; use a hyphen or period separator there.

A passphrase is still a password. It should be stored by the server with a slow, salted hash, and it should be paired with a second factor on any account that matters.

Nothing here is sent to a server. The word list is part of this page, and the picks happen in your browser.

Best practices

  • Use six words or more for accounts, seven or more for master passwords.
  • Accept the first result. Do not shop for one that looks nicer.
  • Keep the words in the order given.
  • Use a passphrase only where you must remember a secret. Everywhere else, let a password manager generate and remember random passwords.
  • Turn on a second factor wherever it is offered.

How the word list was chosen

A good passphrase list balances size against usability. More words mean more bits per word, but rare or long words are harder to remember and type.

  • Common English words that most readers know: animals, plants, food, places, tools, everyday verbs and adjectives.
  • Lowercase letters only, 3 to 8 letters long, so phrases stay short and type well on phones.
  • No duplicates, so every entry adds a real choice. The entropy shown is computed from the actual count.
  • Words that are unpleasant, violent or easily misread were left out where we noticed them.

The list is part of this page’s code. Publishing it costs nothing in security, because the entropy figure already assumes the attacker has it.

Questions

Frequently asked questions

How many words should a passphrase have?

Six random words is a sound default for an account password. Use seven or eight for a password manager’s master password or for disk encryption. With this tool’s list, six words give about 69 bits and eight give about 93.

Is a passphrase more secure than a password?

Not by nature. A random passphrase and a random password of the same entropy are equally hard to guess. The passphrase is easier to remember and type, which helps people use a strong one.

Does adding capital letters make a passphrase stronger?

Not when every word is capitalized, because no choice is involved. Random capitalization would add a little, but it makes the phrase harder to remember. Add another word instead.

Can I use spaces between the words?

Yes, if the system accepts spaces. NIST guidance says systems should allow them, but some do not, and some trim leading or trailing spaces. A hyphen or period is the safer choice.

What is Diceware?

A method for making passphrases by rolling dice to choose words from a numbered list. Its strength rests on the dice being random, just as this tool’s rests on the browser’s random generator.

Is it safe if the attacker knows the word list?

Yes. The entropy shown already assumes the attacker knows the list. Security comes from the number of possible combinations, not from keeping the list secret.

Why does a longer word list give more bits per word?

Each word is one choice among W words, worth log2(W) bits. Doubling the list adds one bit per word. A list of 7,776 words gives about 12.9 bits per word, compared with 11.6 here.

Rather not run Keycloak yourself?

We run it for you on a cluster of your own, with backups, upgrades and written support. Starter and Premium begin with a 7-day trial.