Passphrase Generator

Published Updated

Get a passphrase of 4 to 8 words drawn at random from the 7,776-word EFF list, with a hyphen, space, period or no separator, optional capitals and a 2 to 4 digit number. Each word adds 12.9 bits; the default five give 64.6.

What the word count buys

Entropy is the word count times log2(7,776), which is 12.9 bits a word. Lengths use the list's own words, which run from 3 to 9 letters and average 7.0, with a hyphen between words:

WordsBitsShortestTypicalLongest
451.715 characters3139
5 (default)64.6193949
677.5234759
790.5275569
8103.4316379

A trailing number adds 3 to 5 characters, counting its separator. Note the bcrypt limit: Bcrypt Generator reads only 72 bytes, which the longest eight-word phrases exceed.

Where the words come from

The list is EFF's long wordlist for passphrases, described in EFF's article on its new wordlists. The bundled copy matched EFF's published file, 7,776 words in the same order, when compared line by line. It is licensed CC BY 3.0 US.

Each word is picked with crypto.getRandomValues. A word index needs 2 bytes, and values that would favour low numbers are thrown away and redrawn, about 5% of draws, so every word has the same chance. Words are drawn with replacement, so a repeat in five words has a chance of roughly 1 in 780.

What each option adds, in bits and in characters

Bits below are worked out from the tool's own code (lib/passphraseGenerator.ts) and list, in Node 22.23.1:

OptionWhat the code doesBits it addsCharacters it adds
Each wordPicks one of the 7,776 list words, each equally likely, repeats allowed12.923 to 9 letters, 6.99 on average
Separator (Hyphen, Space, Period or None)Your choice, the same between all words0, since you pick it1 per gap, or 0 with None
Capitalize each wordFirst letter of every word in upper case0, a fixed rule0
Add a random number2, 3 or 4 digits, each length one time in three, leading zeros allowed: 11,100 possible endings11.55 on average; 8.23 for the likeliest endings (each two-digit one has a 1 in 300 chance)3 to 5 with a separator, 2 to 4 with None

So the number adds less than one more word, which is why the bit figure under the passphrase counts words only. With no separator a phrase is shorter but not weaker in this list: EFF's article says no word in its list is the beginning of any other word, and our check of the bundled copy found none, so a phrase without separators splits back into words in only one way. The four entries with a hyphen of their own (drop-down, felt-tip, t-shirt, yo-yo) do not break that with the hyphen separator either, because their first part is not a list word.

Lengths without a separator, and the share of phrases over two common limits, computed from the full spread of the list's word lengths. NIST SP 800-63B-4, section 3.1.1.2 says verifiers "SHOULD permit a maximum password length of at least 64 characters", and the site's Bcrypt Generator reads 72 bytes:

WordsNo separator: shortest / average / longestOver 64 characters, one-character separatorOver 64 characters, no separatorOver 72 characters, one-character separator
412 / 28.0 / 360%0%0%
515 / 35.0 / 450%0%0%
618 / 42.0 / 540%0%0%
721 / 48.9 / 630.54%0%0%
824 / 55.9 / 7237.0%1.98%0.97%

The shares cover the words only; the optional number adds 2 to 5 more characters.

Is every word equally likely? The draw, tested in Node and four browsers

The word index comes from lib/secureRandom.ts. It takes 2 random bytes, a value from 0 to 65,535, from crypto.getRandomValues and keeps it only if it is below 62,208, which is 8 x 7,776; the remainder after dividing by 7,776 then picks the word, so every word owns 8 of the 62,208 accepted values. The other 3,328 values, 5.08% of draws, are thrown away and drawn again. Without that step the first 3,328 words in the list would each have 9 chances in 65,536 against 8 for the rest, making them 12.5% more likely.

We counted draws through that function in Node 22.23.1 and, inside the page, in Google Chrome 156, Chromium 153 (Playwright build, not Google Chrome), Firefox 155 and Playwright's WebKit build (not the Safari app). One run each:

RunWord drawsRedrawnChi-square, 7,775 degrees of freedom (p-value)Digit draws 0 to 9: chi-square, 9 degrees of freedom (p-value)
Node 22.23.17,776,0005.082%7,814.8 (0.37)1,000,000 draws: 16.1 (0.066)
Chrome 1561,000,0005.101%7,809.4 (0.39)200,000 draws: 4.8 (0.85)
Chromium 1531,000,0005.061%7,733.2 (0.63)200,000 draws: 14.7 (0.10)
Firefox 1551,000,0005.074%7,722.4 (0.66)200,000 draws: 4.2 (0.90)
WebKit build1,000,0005.070%7,763.0 (0.54)200,000 draws: 4.5 (0.87)

The chi-square test compares the count for each word with an even spread; a p-value close to 0 would suggest that some words came up more often than chance allows, and no run came near that. This checks the tool's own code path, not the quality of a browser's random number generator. In all four engines crypto.getRandomValues was a built-in (native) function and the test page counted as a secure context; the W3C Web Cryptography Level 2 draft (22 April 2025, section 10.1.1) says the method fills the array with "cryptographically secure random bytes". How each engine does that internally was not examined.

In the same browser runs we pressed the refresh button 2,000 times per engine at six words, across all four separators with and without capitals and the number: every phrase split back into list words, and the line under the phrase read ~51.7, ~64.6, ~77.5, ~90.5 and ~103.4 bits for 4 to 8 words. During all of that and one press of Copy Passphrase, the tool made no fetch, XMLHttpRequest, sendBeacon or WebSocket call and wrote nothing to localStorage, sessionStorage or IndexedDB in any engine, and the request log showed only the three files of the test page.

Making a passphrase

  1. Step 1

    Set the length

    The slider runs from 4 to 8 words and starts at 5. The line under it states the bits of entropy for that count.

  2. Step 2

    Choose the style

    Separator: hyphen, space, period or none. Optionally capitalise each word, or add a random number of 2 to 4 digits.

  3. Step 3

    Copy or draw again

    Copy Passphrase puts it on the clipboard. The refresh button throws the words away and draws a new set.

Using one well

  • Memorise it, or store it. A password manager is fine for the generated text. NIST SP 800-63B also bars verifiers from imposing composition rules, so a plain phrase should be acceptable where length is allowed.
  • One phrase per account. Reuse is a bigger risk than length.
  • Check it. Paste a candidate into Password Strength Checker to see what a different estimator makes of it.

Passphrase questions

How many words do I need?

Five give about 64.6 bits and six about 77.5. EFF says each added word strengthens the passphrase by about 12.9 bits. NIST requires at least 15 characters for a password used alone; the shortest possible four-word phrase here is 15 characters with a separator and 12 without one.

Does the number or the capitals add strength?

The bit figure counts the words only. A number of 2 to 4 digits is small next to one extra word, and capitals follow a fixed pattern. Use them when a site demands them, and add a word when you want more strength.

Why does a site reject my passphrase?

Some sites cap length far below 64 characters, which NIST says verifiers should accept. An average eight-word phrase here is about 63. Cut the word count to fit the site's limit.

Can I change a word I dislike?

Not if you want the full strength. The figure holds only when the machine picks every word. Replacing one by hand, or redrawing until you like the result, shrinks the set of phrases you could have ended up with.

Why do some of my words contain hyphens?

Four entries in the list, drop-down, felt-tip, t-shirt and yo-yo, contain a hyphen of their own. With the hyphen separator they can look like two words, which changes nothing about strength, only how you count.

Is the passphrase sent anywhere?

The words are chosen on the page with the browser's random generator, and no request carries the result: in our runs in four engines the tool made no network call and wrote nothing to browser storage. Closing the tab discards it, apart from any copy you put on the clipboard.

Does the None separator make the passphrase weaker?

Not with this list. No word in it is the beginning of another word (EFF says so, and our check of the bundled 7,776 words found none), so a phrase written without separators can be split back into words in only one way and keeps the same bit count. It is shorter: five words average 35 characters instead of 39.

Is every word equally likely?

Yes, by construction, given even random bytes from the browser: the code throws away the 5.08% of 2-byte random values that would favour the first words and draws again. 1,000,000 draws per browser and 7,776,000 in Node 22.23.1 gave chi-square p-values from 0.37 to 0.66, nowhere near the values near 0 that would point to uneven words. One run each.

Will an eight-word passphrase fit a 64-character limit?

Often not with a separator. Computed from the list, 37.0% of eight-word phrases with a one-character separator are longer than 64 characters, against 1.98% with no separator, and 0.97% with a separator are longer than 72. Seven words exceed 64 characters 0.54% of the time, and six words stay at 59 characters or fewer.

How likely is the same word twice in one passphrase?

About 1 in 778 for five words and 1 in 278 for eight, since words are drawn with replacement. In a Node run of 1,000,000 five-word phrases from the site's code, 1,320 had a repeated word. A repeat is allowed by design and is already part of the bit count.

Related Tools