Free · runs in your browser

Diceware Passphrase Generator

Diceware Passphrase Generator. Set your word count and click Roll the Dice to generate a real Diceware passphrase from the EFF wordlist. For a lock screen or card, the pin generator picks random digits, from a 4-digit code up to 16 digits, with or without repeat numbers.

Your values
Pick words with

Virtual dice use your browser's cryptographically secure random number generator. Nothing leaves your browser.

6

Six words or more is considered safe for high-security uses such as a master password or disk encryption.

Each special character is picked from Reinhold's 36-character table and adds about 5.17 bits.

Adds a number from 0 to 99 as its own part at the end, about 6.64 more bits.

Applies to the spaces, hyphens, snake_case, dots and no-separator formats.

Result

Your passphrase
—
Your words (dice roll and word)
—
Entropy
—
Entropy breakdown
—
Number of possible passphrases
—
Average crack time (350 billion guesses/s, 50% of keyspace)
—
  • No account, no logging
  • Open formulas explained below
  • Works offline once loaded

A Diceware passphrase generator turns dice rolls into a short string of random words, so you get a secure passphrase that is memorable instead of a jumble of symbols. Choose how many words you want, roll, and copy the result: the strength of your new password comes from its length and randomness, not from clever substitutions.

How a Diceware Passphrase Generator Works

The method was created by Arnold Reinhold. Each word in the list owns a 5 digit number, so five dice rolls act as a lookup table that points to exactly one word. A diceware password generator repeats that step once for every word in your phrase, and because every roll is random, no word is more likely than another. Each code from the recovery backup codes generator works once, so a used one is simply crossed off and the rest remain valid.

Rolling Virtual Dice for Random Words

Rather than shaking plastic cubes, the page uses virtual dice: each set of dice rolls draws a number from 11111 to 66666, which gives 7776 possible outcomes. The result is a list of random words whose randomness is genuine, so a stranger cannot predict which word comes next, even when they know your method.

Choosing a Wordlist

The wordlist decides which words you can draw. A word list built from short, familiar entries is easier to type and read aloud, while a longer list of unusual words adds nothing unless the list is still 7,776 entries. Keep the copyable result exactly as generated; swapping a word you dislike for a better one quietly weakens the phrase.

Generating Your First Passphrase

Select the number of words, press the roll button, and read the words along with the numbers that picked them. Copy the phrase into your password field or store it somewhere safe until you have memorised it.

Passphrase Size and Word Count

  • Four words: fine for a throwaway account.
  • Six words: a sensible default for everything that matters.
  • Seven or more: best for a master secret that guards many logins.

The XKCD comic about four common words made the idea famous, but today's passphrase advice is longer. Treat the passphrase size as a dial: numbers of words go up, not down, as stakes rise.

Entropy in Diceware Passphrases Explained

A diceware passphrase is only as strong as the amount of entropy in the way you chose it. Even an adversary who knows you used Diceware still has to guess which words came up, and each extra word multiplies that work. That is why a long phrase that is hard to crack can still be easy for you to type. To keep online accounts safe, the password hint phrase generator helps protect against identity theft by avoiding names, dates and other personal details.

Bits of Entropy per Word

Each word adds log2 of 7776, about 12.92 bits, so the total is:

Formula card showing Diceware entropy equals number of words times log2 of 7776, with six words giving 77.5 bits
Six words from a 7,776-word list give 77.5 bits of entropy.

$$\text{entropy} = n \times \log_{2}(7776) \approx n \times 12.92$$

That is far more than most passwords, which humans pick in predictable ways, and it is the figure that matters for security. Pools much bigger than ours show the same pattern: a 128 bits secret equals roughly ten words, and a 256 bits secret about twenty.

Brute-Force Time Across the Keyspace

The keyspace is 7776 raised to the number of words. Offline cracking is the realistic threat: when a service leaks the hashes of its passwords, an attacker can test each password hash at full speed, so every extra password word buys real time. Suppose one trillion guesses per second and half the keyspace tried on average:

Heatmap of average brute-force crack time for four to seven Diceware words at three attacker guess speeds
Average time to crack a Diceware passphrase, with the six-word, 25 billion guesses per second case outlined.
Brute-Force Time Across the Keyspace
WordsBits of entropyKeyspaceAverage brute-force time
451.73.66 × 1015about 30 minutes
564.62.84 × 1019about 165 days
677.52.21 × 1023about 3,500 years
790.51.72 × 1027about 27 million years

Even a nation state with far more hardware gains only a few orders of magnitude, which the NSA-scale column of the same arithmetic shows is still comfortable for six words or more.

Using a Passphrase Tool Safely in Your Browser

A good tool runs locally, and security starts there. The phrase is built by JavaScript inside your browser, with no server logs and no round trip, so nothing you generate travels anywhere unless you copy it yourself.

Cryptographically Secure Random Number Generator

The tool relies on getRandomValues(), the browser's cryptographically secure random number generator, which is cryptographically strong enough for keys. The caveat is trust: a compromised machine can tamper with any cryptographic routine, so only use it on a computer you control. Because the JavaScript runs in your tab, security also depends on that device staying clean.

Air-Gapped Offline Use with Physical Dice

The most secure method remains real dice and a printed wordlist in a room where nobody can shoulder surf. Offline, air-gapped setups give you the same result with no network, and even a site like random.org is an extra party to trust. Reserve this safest route for secrets that would cause real damage if leaked.

Phishing and Two Factor Authentication

No passphrase stops phishing: if you type it into a fake page, it is gone. Pair it with two factor authentication, use a unique phrase per account, and always load the tool over HTTPS with TLS so no man-in-the-middle can alter the page. Good cybersecurity habits cover what computer security tools alone cannot, and a generated phrase is only as safe as the place you type it.

Choosing a Master Passphrase with the Diceware Generator

I am setting up a new password manager and need one master secret I can type from memory. The vault vendor says it stretches the master password with a slow key-derivation function, which I estimate at about 2.5 million guesses per second for an attacker on a stolen copy. NIST SP 800-63B only asks for 8 characters, so I want to know whether that bar is the right one to aim at.

Dumbbell chart comparing bits of entropy for four to seven words from the 1,296-word EFF short list and the 7,776-word large list
The large list adds about 2.6 bits to every word compared with the short list.

I open the Diceware passphrase generator, set the word count to six and roll once. The page shows six words with their five-digit dice numbers, and the entropy line reads 77.5 bits: 6 × 12.92. That gives a keyspace of 77766, about 2.21 × 1023 phrases.

Choosing a Master Passphrase with the Diceware Generator
WordsBitsAverage time at 2.5 million guesses per second
451.7about 23 years
564.6about 180,000 years
677.5about 1.4 billion years

My cross-check is the earlier table: that one assumed a trillion guesses per second against a fast hash and gave 3,500 years for six words, so the slow derivation function buys me a factor of 400,000. What stands out is the four-word row: 23 years looks fine on paper but is a gamble if hardware improves, so I settle on six words, one more than my minimum.

The caveat is that these figures hold only if every word was rolled, not picked. If I swapped one word for a favourite of mine, I would be back to guessing a human choice. The number to watch is the guess rate, not the word count alone: a leaked fast hash cuts the six-word time by orders of magnitude, so my next action is to turn on two factor authentication for the vault and write the six words on paper until I have typed them from memory ten times.

Where Diceware Fits Best Among Your Logins

Diceware passphrases suit accounts you must type by hand, such as a laptop login, a Wi-Fi network or a vault. Passwords you can paste are better handled elsewhere, but a memorable phrase anchoring your accounts is valuable, since most passwords you reuse are the weak link. It is easy to memorize and remember, which means you never need to write it on a sticky note.

Password Manager and Passkeys

Use a password manager to hold the passwords for the hundreds of reused-risk sites, and let this generator produce its master phrase. Where a site offers passkeys, take them: they resist phishing, which no password does.

Numbers and Special Characters

The generator's words need no added numbers or special characters: they add only a few bits and make the phrase harder to remember. NIST guidance favours length over complexity rules, so a longer phrase beats a shorter one with punctuation. Where a site insists on one symbol for password entry, append a single character to the generated phrase and move on.

Diceware Compared with Random Characters

A fully random character string packs more bits per symbol, but you cannot memorise it. Diceware trades some density for something humans can hold in their heads.

Good and Bad Use Cases

Good fits include Smart TVs, shared computers and any screen with an awkward keyboard. Bad fits are cases where an attacker can steal an encrypted copy and test billions of guesses offline; for Bitcoin wallets, twelve words give 128 bits, and a longer phrase is wiser.

Running This Diceware Tool Locally

Everything on the page is open source, so you can audit it or host a private copy.

Open Source Code and Local Copies

Download the source code, serve the files from a local web server and the generator works offline. Read the JavaScript and check each release before you trust it, and never run an altered copy on a machine that holds secrets.

Frequently Asked Questions

What makes this "genuine" Diceware, and not just another word-based passphrase generator?
The classic Diceware method (invented by Arnold Reinhold in 1995) works by physically rolling a six-sided die 4 times per word and looking up the resulting 4-digit number in a published word list. This tool does exactly that -- it uses your browser's cryptographically secure random number generator to simulate real dice rolls, then looks each code up in the official EFF short wordlist, and shows you every roll so you can verify the process yourself.
Why does the entropy grow so fast with each extra word?
Each word is chosen from 1,296 possibilities (6⁴, since each word needs 4 dice rolls), which is about 10.34 bits of entropy per word. Six words gives roughly 62 bits total -- comparable to a fully random 10-character password using upper/lower/numbers/symbols, but far easier to memorize and type.
Why use the EFF's word list instead of the original Diceware list?
The EFF (Electronic Frontier Foundation) published this list specifically to fix weaknesses in the original 1995 Diceware list -- removing offensive terms, avoiding words that are hard to spell or too similar to each other, and keeping every word short (5 characters or fewer) so passphrases stay easy to type. It's the version security professionals commonly recommend today.
Is a rolled word ever repeated in one passphrase?
It's not prevented -- each word is an independent dice roll, exactly like rolling physical dice repeatedly. A repeat is possible but statistically rare at typical word counts, and forbidding it would technically reduce the passphrase's true entropy below what the dice rolls represent.
Is anything about my generated passphrase sent anywhere?
No. Every dice roll and word lookup happens entirely in your browser using the Web Crypto API's cryptographically secure random number generator -- nothing is transmitted, logged, or stored.

About the author

Vinitha Pu

Founder and designer

Vinitha Pu is a graphic designer based in Palakkad, Kerala, who builds free, privacy-friendly browser tools. She studied Textile and Apparel Design at Avinashilingam University and completed a C-Tech in Graphic Design at Image Creative Education in 2025. She designs, builds and maintains the password generators, strength checkers, hash tools and security calculators on PasswordHive.

  • Content author: Vinitha Pu
  • Fact checked by: Vinitha Pu. Each tool's output is checked against official test vectors or a reference implementation, and every strength and crack-time figure against the formula it uses, before it goes live.
  • Published Updated