Password Generator — Free Secure Random Passwords & PINs

Password Generator

Generate secure passwords, passphrases, and PINs with real-time strength analysis.

Free online password generator powered by cryptographically secure pseudo-random number generation (CSPRNG via Web Crypto API). Generate high-entropy passwords with configurable character sets, lengths from 4 to 128 characters, and custom exclusion filters. Create memorable Diceware passphrases from the EFF wordlist, numeric PINs, or developer secrets for API keys, JWT HMAC signing, SSH passphrases, database credentials, and 256-bit encryption keys. Features real-time Shannon entropy calculation, brute-force crack time estimates across 5 threat models, and compliance audits for NIST SP 800-63B, OWASP, and PCI-DSS standards. Supports bulk generation up to 100 credentials with zero-knowledge, 100% browser-side execution.

Keywords: password generator, password generator online, random password generator, strong password generator, secure password generator, passphrase generator, diceware passphrase, pin generator, api key generator, wifi password generator, password strength checker, password entropy calculator, bulk password generator, generate strong password, random password maker, password creator online, cryptographic password generator, nist password requirements, memorable password generator, csprng random password, rejection sampling password, jwt secret generator, database password generator, eff diceware wordlist

Tags: password, generator, passphrase, pin, secure, random, entropy, strength, diceware, csprng, crypto, nist

Password Generator is also known as: Password Generator Online, Random Password Generator, Secure Passphrase Generator, Diceware Passphrase Generator, PIN Code Generator, API Key Generator Online, CSPRNG Password Maker, Password Entropy Calculator, Bulk Password Generator, NIST Compliant Password Generator.

How to Password Generator Online

  1. Select your desired generation mode: Random Password (character-based), Passphrase (EFF Diceware wordlist), PIN (numeric code), or Pronounceable (syllabic pattern).

  2. For random passwords, adjust the length slider (4–128 characters) and toggle character sets: uppercase (A–Z), lowercase (a–z), digits (0–9), and custom symbols (!@#$%^&*).

  3. Toggle advanced constraints such as "Exclude ambiguous characters" (removes 0/O, 1/l/I), "Must include all sets", "No repeating characters", or "Begin with a letter" to fit strict infrastructure requirements.

  4. For passphrases, choose the word count (3–10 words from the 7,776-word EFF Long Wordlist), select your delimiter (hyphen, period, underscore, or space), and optionally append random numbers or symbols for additional entropy.

  5. Use purpose-built Application Presets for one-click configuration: Wi-Fi WPA2/WPA3, REST API Keys, SSH Passphrases, Database Passwords, JWT HMAC Secrets, AES-256 Hex Keys, or TOTP Secrets.

  6. Review real-time cryptographic metrics: Shannon entropy (bits), brute-force crack time estimates across 5 attack models, and compliance badges for NIST SP 800-63B, OWASP, and PCI-DSS.

  7. Generate single passwords with ⌘↵ or switch to Bulk Mode (⌘⇧B) to produce up to 100 credentials simultaneously with individual and one-click "Copy All" exports.

  8. Copy the generated secret directly to your clipboard (⌘⇧C) with 100% client-side privacy—no secrets are ever transmitted across a network.

Password Generator Features

  • CSPRNG Cryptographic Randomness: Utilizes the browser Web Crypto API (crypto.getRandomValues()) with rejection sampling to eliminate modulo bias completely.

  • Four Generation Modes: Random Character Passwords, EFF Diceware Passphrases, Numeric PINs, and Pronounceable Syllable strings.

  • Configurable Length & Pools: Granular length control from 4 to 128 characters with individual toggles for uppercase, lowercase, numbers, and customizable symbols.

  • Ambiguous & Similar Character Filter: Strips visually confusable characters (0/O, 1/l/I) and problematic punctuation to avoid transcription errors across terminals.

  • EFF Long Diceware Wordlist: Generates high-entropy memorable passphrases using the official 7,776-word EFF wordlist (~12.92 bits of entropy per word).

  • 10 Application-Specific Presets: Instant presets for Wi-Fi WPA2, REST API Keys, SSH Passphrases, Database Credentials, JWT HMAC Secrets, AES-256 Hex Keys, TOTP 2FA, and Backup Codes.

  • Shannon Entropy Calculation: Computes theoretical information entropy in bits using log₂(N^L) for character combinations and log₂(7776^W) for passphrases.

  • 5 Attack Scenario Crack Time Estimates: Visualizes resilience against online throttled, unthrottled API, offline slow KDF (bcrypt/Argon2id), fast GPU hash (MD5/SHA), and state-level multi-GPU clusters.

  • Regulatory & Standard Compliance Auditing: Automatically validates password parameters against NIST SP 800-63B, OWASP ASVS, and PCI-DSS v4.0 criteria.

  • Six-Level Visual Strength Meter: Color-coded real-time feedback ranging from Very Weak to Excellent based on cryptographic entropy thresholds.

  • Bulk Credential Generation: Generates up to 100 unique credentials in a single batch with per-row copy actions and bulk newline-delimited export.

  • Syntax Color-Coded Typography: Highlights uppercase (blue), lowercase (white), numbers (green), and symbols (amber) for visual token inspection.

  • Deterministic Character Guarantees: "Must Include All" ensures at least one character from every active set is present via Fisher-Yates shuffle.

  • Strict Connection-String Safety: Presets filter out URI-breaking characters (@, :, /, ?) for hassle-free database connection strings.

  • 100% Client-Side Privacy: All generation, entropy estimation, and formatting happens locally in browser memory without network telemetry or logging.

  • Developer Keyboard Shortcuts: Accelerate workflows with ⌘↵ (Generate), ⌘⇧R (Random), ⌘⇧P (Passphrase), ⌘⇧B (Bulk), and ⌘⇧C (Copy).

Supported Formats & Dialects

The Password Generator supports 6 syntax formats and dialects for accurate parsing and processing.

CSPRNG Random Character Generation (Web Crypto API)
Standard cryptographic character sampling leveraging hardware-backed OS entropy via window.crypto.getRandomValues() and rejection sampling over user-defined ASCII character pools (lengths 4–128).
EFF Diceware Passphrase Model (RFC 1751 / Shannon Entropy)
Multi-word passphrase generation sampling from the Electronic Frontier Foundation (EFF) 7,776-word dictionary, providing 12.92 bits of entropy per word with custom delimiters and numeric/symbol augmentation.
Numeric PIN & One-Time Passcode Generator (Decimal Key Space)
Fixed-length decimal numeric code generation (4–12 digits, base-10 key space) engineered for ATM PINs, SMS verification codes, 2FA backup codes, and hardware security tokens.
Pronounceable & Syllabic Passwords (Alternating C-V Pattern)
Human-readable pseudo-words built from alternating consonant-vowel phonetic structures, maximizing memorability for temporary passwords and verbal credential sharing.
Application-Specific Secret Tokens (API, JWT, Hex 256-bit)
Pre-configured token formats tailored for developer infrastructure: 64-character hex strings (256-bit AES keys), 64-character base64url secrets (JWT HMAC signing), and 32-character URL-safe REST API keys.
NIST SP 800-63B & OWASP Digital Identity Guidelines
Compliance evaluation adhering to modern authentication standards requiring minimum lengths (8+ chars for users, 16+ for admins), wide character support without forced periodic resets, and dictionary attack defense.
All Guides
All Standards
Advanced Encryption Standard (AES)Cryptography

AES is a symmetric block cipher established by NIST in 2001 that encrypts data in 128-bit blocks using 128, 192, or 256-bit cryptographic keys worldwide.

BLAKE2 Cryptographic Hash Function (BLAKE2b & BLAKE2s)Cryptography

BLAKE2 is a high-speed, cryptographically secure hash function defined in RFC 7693 that outperforms MD5 and SHA-2 while matching SHA-3 security.

Cryptographic Nonce (Number Used Once)Security

A cryptographic nonce is an arbitrary, single-use random number generated for cryptographic communications to prevent replay attacks and secure CSP scripts.

Dotenv (.env Configuration Files)Configuration & DevOps

Dotenv is a key-value configuration file convention standardized by the Twelve-Factor App methodology for injecting environment variables into application runtimes.

Hash-based Message Authentication Code (HMAC)Cryptography

HMAC is a cryptographic construction combining a hash function with a secret key to verify data integrity and message authenticity per RFC 2104.

JSON Web Token (JWT)Security

A JSON Web Token (JWT) is a compact, URL-safe open standard (RFC 7519) used to securely transmit verifiable claims between distributed web services.

MD5 (Message-Digest Algorithm 5)Cryptography

MD5 is a legacy 128-bit cryptographic hash function developed by Ronald Rivest in 1991, now cryptographically broken due to collision vulnerabilities.

OAuth 2.0 Authorization FrameworkSecurity

OAuth 2.0 (RFC 6749) is the industry-standard authorization protocol that enables third-party applications to obtain scoped access to HTTP resources on behalf of a user.

Passkeys Cryptographic Passwordless AuthenticationSecurity

A passkey is a digital credential built on WebAuthn and FIDO2 standards that replaces passwords with synchronized, phishing-resistant asymmetric cryptographic keypairs.

Secure Hash Algorithm 256-bit (SHA-256)Cryptography

SHA-256 is a cryptographic hash function in the SHA-2 family that produces a unique 256-bit (32-byte) deterministic digest from any input data.

Secure Hash Algorithm 3 (SHA-3 & Keccak)Cryptography

SHA-3 is the NIST FIPS 202 cryptographic hash standard based on the Keccak sponge construction, providing structural diversity from the SHA-2 family.

Web Authentication API (WebAuthn / FIDO2)Security

WebAuthn is a browser API that enables public-key cryptographic authentication, powering phishing-resistant passwordless sign-ins and passkeys.

Pre-built Automation Pipelines

Chain Password Generator with other utilities in a multi-step visual workflow.

beginner
security

Password Generator

Generate secure passwords with customizable options.

Flow:
InputPassword GeneratorOutput
3 nodes
beginner
encoding

Base64 Decode → JSON Format

Decode a Base64 string and pretty-print the JSON inside it.

Flow:
InputBase64 Encode/DecodeJSON FormatterOutput
4 nodes
beginner
data-transformation

CSV → JSON → YAML

Convert CSV data to JSON, then to YAML format.

Flow:
InputCSV to JSONYAML ConverterOutput
4 nodes

Frequently Asked Questions

How does crypto.getRandomValues() and rejection sampling eliminate modulo bias in password generation?
Standard JavaScript Math.random() is a non-cryptographic pseudo-random number generator (PRNG) that is statistically predictable and insecure for secrets. This generator uses the browser Web Crypto API (crypto.getRandomValues()), which taps into operating system entropy (e.g., /dev/urandom or Windows CryptoAPI). Furthermore, naive implementations that map random 32-bit integers to a character set using modulo arithmetic (rand % poolSize) suffer from modulo bias when the range (2^32 = 4,294,967,296) is not an exact multiple of the pool size. Our implementation uses rejection sampling: any random integer falling above the largest integer multiple of poolSize is discarded and resampled, guaranteeing mathematically uniform probability across all characters.
How is Shannon password entropy calculated for random character strings vs. Diceware wordlists?
Password entropy measures the unpredictability of a credential in bits. For character-based passwords, entropy is calculated as H = L × log₂(N), where L is the password length and N is the size of the active character pool (e.g., 95 printable ASCII characters yield ~6.57 bits per character, so a 16-character password provides ~105.1 bits of entropy). For Diceware passphrases, entropy is calculated as H = W × log₂(7776), where W is the number of words chosen from the EFF Long Wordlist. Because log₂(7776) ≈ 12.92 bits, a 5-word passphrase delivers ~64.6 bits of entropy. Adding random digits (+3.32 bits) or symbols (+5.0 bits) further elevates total entropy.
What is the mathematical basis of the 5 attack model crack time estimates?
Crack times represent the statistical average (50th percentile) duration required for a brute-force attacker to guess the credential by exhausting half the keyspace (2^(H-1) guesses / attack rate). We evaluate 5 distinct threat models: 1) Online Throttled (100 attempts/hour) modeling rate-limited web login portals; 2) Online Unthrottled (10 attempts/sec) modeling unthrottled API endpoints; 3) Offline Slow KDF (10,000 hashes/sec) modeling memory-hard key derivation algorithms like Argon2id or bcrypt; 4) Offline Fast Hash (10 billion hashes/sec) modeling unsalted MD5 or SHA-256 hashes on a single modern GPU; and 5) Massive GPU Cluster (1 trillion hashes/sec) modeling dedicated multi-GPU cracking rigs (e.g., 8x RTX 4090 clusters running hashcat).
Why does NIST Special Publication 800-63B discourage periodic password expiration and arbitrary composition rules?
The National Institute of Standards and Technology (NIST) updated its digital identity guidelines in SP 800-63B after empirical research showed that legacy rules (mandatory 90-day rotations and forcing uppercase, lowercase, numbers, and special symbols) degrade overall security. Users forced to change passwords frequently create predictable transformations (e.g., Spring2026! → Summer2026!) or write them down. NIST recommends: 1) prioritizing password length (minimum 8 characters for general users, 15+ for high privilege accounts); 2) allowing all printable ASCII and Unicode characters; 3) screening new passwords against breached credential lists; and 4) only forcing password resets when evidence of compromise exists.
What are the security and usability advantages of Diceware passphrases over complex character passwords?
As popularized by XKCD #936 ("correct horse battery staple"), human beings struggle to memorize short, complex character sequences (like "Tr0ub4dor&3" with ~28 bits of entropy) but can easily remember multi-word passphrases (like "correct-horse-battery-staple" with ~52 bits of entropy). Diceware passphrases drawn from the EFF Long Wordlist eliminate cognitive strain while achieving higher brute-force resilience against offline dictionary attacks. They are also significantly faster to type on mobile keyboards and virtually eliminate visual transcription errors.
How do application-specific presets optimize secrets for API keys, JWT HMAC signing, and database connection URIs?
Different developer systems impose distinct syntactic constraints on secrets. Our application presets tailor length and character sets accordingly: 1) REST API Keys generate 32-character URL-safe alphanumeric tokens; 2) JWT Secrets generate 64-character base64url strings providing 256 bits of cryptographic entropy for HS256/HS512 signatures; 3) Database Passwords generate 24-character alphanumeric strings with safe delimiters to prevent URI-encoding bugs in connection strings (e.g. postgres://user:pass@host/db); 4) AES-256 Encryption Keys produce 64 hex characters (32 raw bytes); and 5) TOTP Secrets generate 32-character Base32 strings compatible with Google Authenticator and RFC 6238.
How does the generator prevent transcription errors when typing credentials into terminals or mobile devices?
The "Exclude ambiguous characters" toggle removes easily confusable glyphs from the generation pool: the numeral 0 vs. capital letter O, and the numeral 1 vs. lowercase l vs. uppercase I. Additionally, symbols that can cause escaping problems in Unix shell scripts, YAML configuration files, or database URLs (such as backticks, quotes, slashes, and pipes) can be selectively filtered out using the custom symbols input or exclusion string. This prevents costly connection failures when copying credentials into Docker environments or terminal prompts.
How does modern password hashing (Argon2id, bcrypt, PBKDF2) defend against offline credential cracking?
When storing passwords in a database, raw passwords must never be stored in plaintext or with fast cryptographic hashes like MD5 or SHA-256. Modern applications utilize slow, salted Key Derivation Functions (KDFs) such as Argon2id (winner of the Password Hashing Competition), bcrypt, or PBKDF2 with high iteration counts. Argon2id is memory-hard, making it resistant to GPU and ASIC acceleration. When paired with high-entropy passwords generated by this tool, a memory-hard KDF ensures that even in the event of a database breach, brute-force cracking remains computationally infeasible for decades.
How does bulk password generation work and can generated credentials be safely exported for devops provisioning?
Bulk generation mode (⌘⇧B) allows system administrators and DevOps engineers to generate up to 100 cryptographically independent passwords, passphrases, or PINs in a single browser execution. Each item receives individual CSPRNG sampling with the active configuration rules. The interface provides individual copy buttons for specific rows as well as a "Copy All" action that outputs a clean, newline-delimited list ready for immediate pasting into secret managers, environment variables (.env files), CI/CD vaults, or user provisioning scripts.
Why is 100% browser-side execution critical for zero-knowledge credential generation?
Transmitting newly generated passwords or master passphrases over a network introduces critical security risks: man-in-the-middle (MITM) interception, server access logging, CDN caching, and third-party analytics leakage. Our Password Generator runs 100% client-side inside your browser sandbox using the Web Crypto API. Zero network requests or telemetry payloads are transmitted during generation. Once the page is loaded, the generator functions completely offline without internet connectivity, ensuring zero-knowledge privacy for your most sensitive credentials.

Developer Reference & Learning Hubs