Strong Password Generator
Generate secure, customizable passwords locally using cryptographically secure random numbers (crypto.getRandomValues).
- Free
- No sign-up
- Runs in your browser
Password Generator
Additional Passwords:
Passphrases generated using the Electronic Frontier Foundation (EFF) Short Wordlist #1 under CC-BY 3.0 US.
Runs in your browser. Your inputs never leave your device.
In short
Quick Answer
To generate cryptographically secure passwords or passphrases, choose your desired length, character types, or word count. The tool uses browser Web Crypto API random values with Fisher-Yates shuffling and rejection sampling to ensure zero statistical bias. Everything generates in local memory without remote network transmission.
Step by step
How to Use
- Select Generator Mode. Choose between Random Character Passwords (high entropy) or Memorable Passphrases (easy to type).
- Customize Length and Options. Adjust the length slider (8 to 128 characters) and toggle uppercase, lowercase, numbers, symbols, or word counts.
- Generate and Copy. Click Generate to create new passwords and Copy to send them directly to your clipboard.
When to Use Strong Passwords vs. Passphrases
- Random Character Passwords (16+ chars): Best for password managers (e.g. 1Password, Bitwarden, Apple Keychain) where credentials are auto-filled and never memorized.
- Memorable Passphrases (4-6 words): Best for master passwords, laptop login screens, Wi-Fi router keys, and mobile unlock PINs that humans need to type regularly.
- Batch Generation (3–10 passwords): Quickly provision initial accounts for teams or generate secure tokens for staging API environments.
The math
Password Entropy & Strength Formula
Entropy (bits) = Length × log₂(Pool Size) | Passphrase Entropy = Word Count × log₂(Wordlist Size)
Information entropy quantifies brute-force cracking difficulty. A 16-character password drawn from a 94-character ASCII pool provides ~104.9 bits of entropy, which would require trillions of years to guess using modern distributed GPU clusters.
Examples
Worked Examples
16-Character High-Entropy Password
Length: 16 characters · Character Sets: Uppercase (26), Lowercase (26), Numbers (10), Symbols (32) · Pool Size: 94 printable ASCII characters
- Ensure at least 1 character from each selected set
- Draw remaining 12 positions uniformly using rejection sampling
- Shuffle character array using Fisher-Yates algorithm
- Calculate entropy: 16 × log₂(94) = 104.87 bits
Result: Entropy: ~104.9 bits (Very Strong — Centuries to crack)
12-Character Alphanumeric Password
Length: 12 characters · Character Sets: Uppercase (26), Lowercase (26), Numbers (10) · Pool Size: 62 alphanumeric characters
- Select 12 characters uniformly from 62 possible characters
- Calculate entropy: 12 × log₂(62) = 71.45 bits
- Evaluate brute-force threshold against offline hash tables
Result: Entropy: ~71.5 bits (Strong — Decades to crack)
5-Word EFF Diceware Passphrase
Mode: Memorable Passphrase · Word Count: 5 words · Wordlist: EFF Short Wordlist (1,296 words) · Separator: Hyphen (-)
- Sample 5 independent words from 1,296-word curated dictionary
- Calculate passphrase entropy: 5 × log₂(1,296) = 51.70 bits
- Format with title casing and hyphen delimiters
Result: Entropy: ~51.7 bits (Moderate — Months to Years to crack)
Watch out
Common Mistakes to Avoid
- Using Pseudo-Random Math.random(): Standard JavaScript Math.random() is deterministic and predictable. Production password generation requires crypto.getRandomValues().
- Modulo Bias in Character Selection: Taking (randomUint % poolSize) biases character probability toward lower index values. Rejection sampling ensures exact mathematical uniformity.
- Predictable Leetspeak Substitutions: Replacing letters with symbols (e.g., 'E' with '3') adds almost zero entropy because modern password cracking engines test substitution masks automatically.
- Password Reuse Across Accounts: Reusing the same strong password across multiple sites leaves all accounts vulnerable if any single service suffers a credential breach.
FAQ
Frequently Asked Questions
How does this tool generate cryptographically strong passwords?
The generator uses the native Web Cryptography API (crypto.getRandomValues) with rejection sampling to eliminate modulo bias. This draws high-entropy randomness directly from your operating system's cryptographic random pool.
What is an EFF passphrase and why is it secure?
A passphrase combines 4 to 6 random dictionary words (e.g. 'Acid-Acorn-Acre-Acts'). Because each word is drawn independently from a 1,296-word curated list, a 5-word passphrase provides over 51 bits of entropy while remaining easy for humans to remember and type.
Are generated passwords saved in my browser or sent to a server?
Never. For strict privacy and security, passwords exist purely in temporary browser memory. They are never stored in localStorage, never placed in URL query parameters, and never transmitted over the internet.
What is the recommended password length for modern online security?
NIST Special Publication 800-63B recommends a minimum of 16 characters for critical accounts. Passwords of 16 characters with mixed character sets provide over 90 bits of Shannon entropy, rendering brute-force attacks infeasible.
Why should I exclude similar characters like 'O' and '0'?
Excluding ambiguous characters (such as uppercase 'O' vs digit '0', or lowercase 'l' vs uppercase 'I') prevents transcription errors when typing passwords manually on mobile keyboards or reading paper recovery backups.
How does the entropy calculation work?
Entropy is measured in bits using Shannon's information theory: length multiplied by the base-2 logarithm of the active character pool size. Higher bits indicate exponentially greater resistance to brute-force guessing.
Can I generate multiple passwords at once?
Yes. Use the Quantity to Generate dropdown to create 1, 3, 5, or 10 unique passwords simultaneously, perfect for provisioning team credentials or staging environments.
References