Passphrase Generator Online | Diceware Mnemonic Seed Phrase

Password & Security
100% client-side. Processed locally in your browser using the Web Crypto API. Nothing is sent to any server.
⚠️ Critical Security: Use at least 5 words for strong security (64+ bits of entropy). Never reuse passphrases across accounts. For your password manager master password, use 6+ words.

How It Works

What Is a Passphrase Generator?

A passphrase generator creates strong, memorable passwords by randomly selecting words from a dictionary. This tool uses the EFF (Electronic Frontier Foundation) large wordlist, which contains 7,776 carefully chosen English words. Each word contributes ~12.9 bits of entropy, and optional enhancements (capitalization, numbers, symbols) add extra bits per word without increasing word count.

Selection uses crypto.getRandomValues() with uniform distribution, ensuring maximum unpredictability. All generation happens locally in your browser — passphrases are never transmitted to any server.

When to Use a Passphrase

  • Password manager master password — The one password you must memorize; a 6+ word passphrase is ideal
  • Accounts you type from memory — Email, banking, work accounts where you can't use a password manager
  • Device encryption keys — Full-disk encryption passphrases (LUKS, FileVault, BitLocker)
  • SSH key passphrases — Protect your private keys with a memorable passphrase
  • Cryptocurrency wallet seeds — BIP39 mnemonic phrases for wallet recovery
  • When NOT to use — For accounts stored in a password manager, random character passwords offer maximum entropy in fewer characters

Entropy by Word Count

Each word from the EFF list adds ~12.9 bits of entropy. Here's how word count translates to security:

Words Entropy (bits) Example Crack Time (GPU)
3 38.7 bits correct-horse-battery Seconds
4 51.6 bits correct-horse-battery-staple Years
5 64.5 bits mergers-decade-labeled-manager-arts Centuries
6 77.4 bits bridge-profit-started-bundle-diseased-elay Millions of years
7+ 90+ bits 7+ words... Billions of years

Standards Compliance

  • EFF Diceware Wordlist — Electronic Frontier Foundation large wordlist (7,776 words, 2016)
  • NIST SP 800-63B — Digital Identity Guidelines: Memorized secrets (passphrases recommended)
  • BIP39 — Bitcoin Improvement Proposal 39: Mnemonic code for generating deterministic keys
  • Web Crypto API — W3C Recommendation for cryptographically secure random generation

Last updated:

Code Examples

Generate Diceware passphrases programmatically:

JavaScript — Browser (EFF wordlist)

// Load EFF wordlist (7,776 words)
const wordlist = await fetch('/eff_large_wordlist.txt').then(r => r.text()).then(t => t.split(/s+/));

// Generate 6-word passphrase using crypto.getRandomValues()
const words = [];
const randomValues = new Uint32Array(6);
crypto.getRandomValues(randomValues);
for (let i = 0; i < 6; i++) {
  const index = randomValues[i] % wordlist.length;
  words.push(wordlist[index]);
}
console.log(words.join('-'));  // e.g., "mergers-decade-labeled-manager-arts-started"

Python — secrets module

import secrets

# Load EFF wordlist
with open('eff_large_wordlist.txt') as f:
    wordlist = f.read().split()

# Generate 6-word passphrase
passphrase = '-'.join(secrets.choice(wordlist) for _ in range(6))
print(passphrase)  # e.g., "mergers-decade-labeled-manager-arts-started"

Go — crypto/rand

package main

import (
    "crypto/rand"
    "fmt"
    "math/big"
    "strings"
)

func generatePassphrase(wordlist []string, wordCount int) string {
    words := make([]string, wordCount)
    for i := 0; i < wordCount; i++ {
        n, _ := rand.Int(rand.Reader, big.NewInt(int64(len(wordlist))))
        words[i] = wordlist[n.Int64()]
    }
    return strings.Join(words, "-")
}

func main() {
    // Assume wordlist is loaded from eff_large_wordlist.txt
    fmt.Println(generatePassphrase(wordlist, 6))
}

Rust — rand crate

use rand::Rng;

fn generate_passphrase(wordlist: &[&str], word_count: usize) -> String {
    let mut rng = rand::thread_rng();
    let words: Vec<&str> = (0..word_count)
        .map(|_| wordlist[rng.gen_range(0..wordlist.len())])
        .collect();
    words.join("-")
}

fn main() {
    let wordlist = vec!["correct", "horse", "battery", "staple"]; // Load EFF list
    println!("{}", generate_passphrase(&wordlist, 6));
}

Node.js — crypto module

const crypto = require('crypto');
const fs = require('fs');

// Load EFF wordlist
const wordlist = fs.readFileSync('eff_large_wordlist.txt', 'utf8').split(/s+/);

// Generate 6-word passphrase
function generatePassphrase(wordCount = 6) {
    const words = [];
    for (let i = 0; i < wordCount; i++) {
        const randomIndex = crypto.randomInt(0, wordlist.length);
        words.push(wordlist[randomIndex]);
    }
    return words.join('-');
}

console.log(generatePassphrase(6));

Common Pitfalls & Attack Vectors

⚠️ Using Only 3-4 Words — A 3-word passphrase (38.7 bits) can be cracked in seconds with a GPU cluster. Always use at least 5 words (64.5 bits) for strong security.
⚠️ Inventing Your Own Passphrases — Humans are terrible at randomness. "correct-horse-battery-staple" is famous because it's predictable. Always use a tool to select words randomly from the wordlist.
⚠️ Reusing Passphrases Across Accounts — If one account is compromised, all accounts using the same passphrase are at risk. Generate unique passphrases for each service.
⚠️ Using Non-Standard Wordlists — Custom wordlists may have patterns or biases that reduce entropy. Stick to well-vetted lists like EFF's Diceware wordlist.
⚠️ Writing Down Passphrases Insecurely — Don't store passphrases in plain text files or sticky notes. Use a password manager with encryption at rest.

Security Notes

🔒 Passphrases beat passwords for memorability — a 6-word passphrase is easier to type from memory than a 16-character random string, yet equally secure.
🔒 Use unique passphrases per account — never reuse passphrases across different services.
🔒 Ideal for master passwords — your password manager master key is the one password you must memorize; a 6+ word passphrase is the recommended choice.
🔒 Generate, don't invent — humans are terrible at randomness; always use a tool like this one to select words.

Disclaimer

Disclaimer: This page is for educational and testing purposes only. It does not constitute professional security advice. For production password policies and authentication systems, consult official standards (NIST SP 800-63B, OWASP) and conduct a formal security review.

Further Reading & Standards

Related Concepts

Related Tools

Need a random password for accounts stored in a password manager? The Password Generator creates cryptographically secure character strings. To verify your passphrase's resistance to attacks, use the Password Strength Checker. For understanding the entropy math, the Entropy Calculator breaks it down bit by bit.

Frequently Asked Questions

What wordlist is used?

The EFF (Electronic Frontier Foundation) large wordlist containing 7,776 common English words. Each word provides approximately 12.9 bits of entropy, making the math predictable: 5 words = 64.5 bits, 6 words = 77.4 bits, 7 words = 90.3 bits.

How many words should I use?

At least 5 words for strong security (64+ bits of entropy). For maximum security, use 7 or more words. Each additional word multiplies the crack time by roughly 7,776×.

Are passphrases stored or sent anywhere?

No. Everything runs in your browser. Generated passphrases are never stored, logged, or transmitted to any server.

Which separator should I choose?

It depends on where you'll use the passphrase. Hyphens are the most widely accepted (some sites reject spaces). Dots and underscores work on most platforms. "None" concatenates words directly — harder to read but compatible with strict systems.

Can I use a passphrase for any account?

Yes, but passphrases are especially ideal for your password manager master password and accounts you need to type from memory. For accounts stored in a password manager, random character passwords (from our <a href="/password-generator" class="text-(--color-accent) hover:underline">Password Generator</a>) offer maximum entropy in fewer characters.

Privacy: This tool runs entirely in your browser — nothing is uploaded or stored. · Disclaimer: For educational purposes only. Not professional security advice.

More in Password

Learn More