Skip to main content

Online Calculator Lab

Password Generator

Generate strong, random passwords instantly. Runs 100% in your browser — nothing is sent to any server.

Click "Generate Password" to start
Password Strength
Password Length16 characters
416324864
Character Types
Generate Multiple Passwords

What Is a Password Generator?

A password generator creates random character strings that are far harder to guess than anything a human would choose on their own. Human-created passwords tend to cluster around dictionary words, names, years, and predictable substitutions (like replacing "a" with "@"). A random generator has no such patterns — every character is chosen independently from the full available pool, which is what makes the result genuinely hard to crack.

This generator runs entirely inside your browser using JavaScript's crypto.getRandomValues() API — the same cryptographically secure randomness source browsers use for financial transactions. No password is transmitted to any server, stored in any log, or visible to anyone but you. Close the tab and the password is gone.

How to Use This Generator

  1. Set the length — drag the slider between 4 and 64 characters. For general accounts, 16 is a good baseline; for high-value accounts (email, banking), use 20+
  2. Choose character types — all four (lowercase, uppercase, numbers, symbols) are checked by default, giving the largest possible character pool and highest entropy
  3. Exclude ambiguous characters — check this if you'll be typing the password manually; it removes 0, O, l, 1, and I, which look similar in many fonts
  4. Exclude specific characters — some sites don't accept certain symbols; type those into the exclusion box and they'll be removed from the pool
  5. Click "Generate Password" — the result appears instantly with strength rating, entropy, and a copy button
  6. Use "Generate Multiple" to create 5–50 passwords at once for bulk account setup or team use
🔒 Privacy guarantee: This generator uses window.crypto.getRandomValues() — a CSPRNG (Cryptographically Secure Pseudo-Random Number Generator) built into every modern browser. It produces unpredictable output that cannot be reproduced even by the generator itself. No internet connection is required after the page loads.

Password Entropy — The Math Behind Strength

Entropy measures how unpredictable a password is, in bits. Higher entropy means more possible combinations and more time needed to crack the password by brute force. The formula is straightforward:

Entropy (bits) = length × log₂(pool size) Where pool size = total unique characters available: Lowercase only (a–z): 26 characters Uppercase only (A–Z): 26 characters Digits only (0–9): 10 characters Lowercase + Uppercase: 52 characters Lower + Upper + Digits: 62 characters All types (Lower+Upper+Dig+Sym):92 characters Examples: 8 chars, digits only: 8 × log₂(10) = 26.6 bits → Very Weak 8 chars, lowercase only: 8 × log₂(26) = 37.6 bits → Fair 8 chars, all 92 chars: 8 × log₂(92) = 52.2 bits → Fair 12 chars, all 92 chars: 12 × log₂(92) = 78.3 bits → Strong 16 chars, all 92 chars: 16 × log₂(92) = 104.4 bits → Very Strong 20 chars, all 92 chars: 20 × log₂(92) = 130.5 bits → Very Strong
📌 Time to crack at 1 trillion guesses/second: A 6-digit PIN (entropy 19.9 bits) falls in under a millisecond. An 8-char all-92 password (52.2 bits) takes about 43 minutes on average. A 12-char all-92 password (78.3 bits) takes roughly 5,830 years. At 16 chars (104.4 bits) — about 418 billion years. Length matters far more than complexity alone.

Password Strength by Length and Character Set

Every entropy figure below is independently calculated using the formula above. Crack-time assumes an attacker running 1 trillion guesses per second (state-of-the-art GPU cluster) and trying an average of half the keyspace:

Length62-char Pool92-char PoolApprox Crack Time (92-char)Rating
635.7 bits39.1 bitsSeconds to minutesWeak–Fair
847.6 bits52.2 bitsHours to daysFair
1059.5 bits65.2 bitsMonthsFair–Strong
1271.5 bits78.3 bits~5,830 yearsStrong
1695.3 bits104.4 bits~418 billion yearsVery Strong
20119.1 bits130.5 bitsAstronomically longVery Strong
32190.5 bits208.8 bitsFar exceeds universe ageVery Strong

Reference: NIST Special Publication 800-63B — Digital Identity Guidelines

7 Common Password Mistakes That Undermine Security

  1. Using dictionary words. Attackers run dictionary attacks first — testing millions of real words, names, and common phrases before trying random character combinations. A password like "sunshine2024" has far fewer effective bits of entropy than its length suggests because it draws from a known word list.
  2. Substituting letters with look-alikes. Replacing "a" with "@" or "e" with "3" (called leet speak) is included in standard attack dictionaries. "p@ssw0rd" is no more secure than "password" against a prepared attacker.
  3. Reusing the same password across sites. When a website is breached, attackers test exposed passwords across other services immediately — a practice called credential stuffing. A unique password per account means a single breach can't cascade.
  4. Using personal information. Birthdays, pet names, sports teams, and addresses are guessable through social media profiles. Even combining them (e.g., "max2019boston") stays vulnerable because attackers automate personalized guessing.
  5. Short passwords with "complex" symbols. A 6-character password with all four character types still has only about 39 bits of entropy — crackable in seconds with modern hardware. Length is more protective than complexity at short lengths. "correct-horse-battery-staple" outperforms "P@s$w0rd" by a wide margin.
  6. Not updating passwords after a breach. Sites like Have I Been Pwned let you check if your email has appeared in a known data breach. If it has, any password from that site should be treated as compromised — regardless of how strong it seemed.
  7. Storing passwords in plain text. Writing passwords in a notes app, spreadsheet, or email drafts folder creates a single point of failure. A password manager encrypts your vault with a master password using AES-256 — even if the manager's server is breached, only encrypted data is exposed.

Password Managers — Where to Store What This Tool Generates

Generating strong passwords is only useful if you can store and retrieve them securely. Memorizing a 16-character random string is impractical, and writing it on paper defeats the purpose. Password managers solve this by encrypting your passwords locally and syncing them across devices:

ManagerFree TierEncryptionOpen SourceNotes
BitwardenYes — full featuresAES-256 + PBKDF2YesBest free option; self-host possible
1PasswordNo (14-day trial)AES-256 + SRPNoStrong family/team sharing features
KeePassYes — fully freeAES-256 / ChaCha20YesLocal only; no cloud sync built-in
DashlaneLimited (1 device)AES-256NoGood dark web monitoring feature
Browser built-inYesPlatform keychainPartialConvenient but tied to one browser ecosystem

Reference: CISA — Use Strong Passwords | FTC — Online Security

Privacy — How This Generator Protects You

Generating a password on a website carries an inherent risk: if the site logs your password before you see it, your security is compromised from the start. This generator eliminates that risk through three design choices:

  • Client-side only. All password generation runs in your browser using JavaScript. No data leaves your device. The page could work offline after the initial load.
  • Cryptographically secure randomness. The generator uses window.crypto.getRandomValues() — the Web Cryptography API specified by the W3C. It draws from the operating system's entropy pool (mouse movement, keyboard timing, hardware noise), not a predictable mathematical formula.
  • No storage, no logs. Passwords are displayed in the browser DOM and exist only in memory. Refreshing the page, navigating away, or closing the tab destroys them permanently. No cookie, localStorage, or server record is created.

5 Tips for Password Security That Actually Work

  • Use 16+ characters for any account that matters. At 16 chars and all character types (entropy 104.4 bits), a brute-force attack would take approximately 418 billion years at 1 trillion guesses per second. Bank accounts, email, and social media deserve this level of protection — not an 8-character minimum.
  • Enable two-factor authentication (2FA) alongside a strong password. A password can be phished or stolen even when it's strong. 2FA means an attacker needs both your password and your phone. TOTP apps (Google Authenticator, Authy) are more secure than SMS-based 2FA, which is vulnerable to SIM-swapping attacks.
  • Generate a unique password per site — no exceptions. The 2019 Collection #1 breach exposed 773 million email/password pairs. Attackers immediately tested those credentials across major services. With a unique password for every account, a breach at one site has zero impact on any other.
  • Your master password for a password manager should be a passphrase, not a random string. The one password you'll type manually should be memorable but long — four to five unrelated words work well (e.g., "maple thunder orbit biscuit"). At 5 common words, the entropy still exceeds 70 bits — stronger than most 12-character random passwords and far easier to remember.
  • Check your accounts against breach databases periodically. Even with strong unique passwords, services you use can be breached. Have I Been Pwned (run by security researcher Troy Hunt) lets you check whether your email appeared in any known breach. If it has, change that account's password immediately.

Frequently Asked Questions — Password Generator

Yes — it runs entirely in your browser using window.crypto.getRandomValues(), the same cryptographic API browsers use for financial transactions. No password is sent to any server, stored anywhere, or logged. The generation happens locally in JavaScript, and the password exists only in your browser memory until you close or navigate away.
16 characters is a solid minimum for any account worth protecting. At 16 chars with all character types (entropy 104.4 bits), brute-force cracking would take hundreds of billions of years at 1 trillion guesses per second. For email, banking, and primary accounts, use 20+. The only exception: if a site imposes a short maximum length (some older systems cap at 8–12 characters), use all available character types and make every character count.
Entropy measures how many guesses an attacker would need to exhaust all possible passwords of your length and character set. It's measured in bits — each additional bit doubles the number of guesses needed. At 78.3 bits (12 chars, all types), that's 2^78.3 ≈ 3.7 × 10²³ possible combinations. At a trillion guesses per second, cracking takes about 5,830 years on average.
Yes, when the site allows them. Adding symbols expands the character pool from 62 (letters + digits) to 92 (letters + digits + 30 symbols), adding about 6–8 bits of entropy per length. But length matters more: a 14-char password with only letters and digits (83.4 bits) is stronger than an 8-char password with all symbols (52.2 bits). If a site rejects certain symbols, use the "exclude specific characters" box rather than disabling symbols entirely.
Credential stuffing is when attackers take email/password pairs from one breach and automatically test them on other services — banking, email, social media. It's automated, fast, and works specifically because most people reuse passwords. The defense is simple: one unique password per site. If every account has a different password, a breach at site A gives attackers nothing usable on site B. A password manager makes this practical to maintain.
Absolutely — for passwords you need to memorize (like your password manager master password), a passphrase of 4–5 unrelated words is both strong and memorable. "maple thunder orbit biscuit" is easier to remember than "xK7#mP2@qL" and has comparable or higher entropy if the words are randomly chosen. For passwords stored in a manager, random strings like this generator produces are preferable since you never type them.