Passphrase Generator Online | Diceware Mnemonic Seed Phrase
Password & Security 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
Security Notes
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
- EFF Diceware Wordlist — The EFF's Diceware Passphrase Wordlist
- NIST SP 800-63B — Digital Identity Guidelines: Memorized Secrets (Section 5.1.1)
- BIP39 Specification — Mnemonic code for generating deterministic keys
- Diceware FAQ — Arnold Reinhold's Diceware FAQ
Related Concepts
- BIP39 Mnemonic Phrases — How cryptocurrency wallet seeds work and why they use Diceware-style word lists
- Entropy Calculation — Understanding the math behind passphrase strength
- Key Management — Best practices for storing and protecting passphrases
- Password Generation — When to use random characters vs. passphrases
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
Password Generator
Generate secure random passwords online with customizable length, character types, symbols, and exclusion rules. Quick presets available.
Password Strength Checker
Check password strength and estimate crack time online. zxcvbn-based entropy analysis, multiple attack scenarios, and pattern recognition.
Entropy Calculator
Calculate password and passphrase entropy online. Crack time estimates, character pool analysis, and strength ratings.
KDF Hash Generator
Derive cryptographic keys using PBKDF2, Argon2, or Scrypt online. OWASP 2024 parameters, PHC output, adjustable iterations and memory.
Shamir Secret Sharing
Split secrets into shares using Shamir's Secret Sharing over GF(256). Any K-of-N threshold reconstruction with Lagrange interpolation.