ToolNest

Free Online Password Generator

Generate strong, secure passwords with custom length and character sets.

Passwords never leave your browser

Strength
( bits)
chars
8 24 40 64

Character Types

What Makes a Password Strong?

Password strength is measured in entropy bits — a mathematical expression of unpredictability. Each bit doubles the number of guesses an attacker needs. At 80 bits, a password survives modern brute-force hardware for decades. At 128 bits, it is effectively uncrackable by any foreseeable technology. Two factors control entropy: length and character-set size.

How the Generator Works

Every password is generated using crypto.getRandomValues() — the same cryptographically secure random number generator your browser uses for HTTPS connections. To eliminate statistical bias, the tool uses rejection sampling: random bytes that fall outside a range evenly divisible by the charset size are discarded, ensuring every possible character is equally likely.

Nothing is sent over the network. The generator works entirely in JavaScript, even offline once the page has loaded.

Choosing Your Settings

  • Length 12–16 — suitable for lower-risk accounts stored in a password manager.
  • Length 20–32 — recommended for email, cloud storage, and financial accounts.
  • Length 32–64 — ideal for master passwords, SSH keys, and API secrets.
  • Include symbols unless a site explicitly forbids them — they add ~1.6 bits per character to entropy.
  • All four types at length 20 gives ≈ 131 bits of entropy, which is excellent for any purpose.

Storing Your Passwords Safely

A strong password only protects you if it is stored securely. Use a reputable password manager — Bitwarden (free, open-source), 1Password, or Dashlane — to store unique passwords for every account. Never reuse passwords, never store them in plain-text files, and never rely on browser auto-save without a master password protecting the vault.

How to Use Password Generator

  1. 1

    Set password length

    Drag the slider or type a number to set your password length. 16 characters is a solid minimum; use 20+ for email and banking accounts.

  2. 2

    Choose character types

    Toggle uppercase letters, lowercase letters, numbers, and symbols on or off. At least two types must stay enabled.

  3. 3

    Regenerate until satisfied

    Click the refresh icon or Regenerate button to create a new password with the same settings. Each click produces a cryptographically random result.

  4. 4

    Copy and save

    Click Copy Password to copy it to your clipboard, then paste it directly into your password manager. Never store passwords in plain text.

Share this tool: X / Twitter WhatsApp

Frequently Asked Questions

Very secure. It uses crypto.getRandomValues(), the same cryptographically strong random number generator used by browsers for TLS and security tokens. It employs rejection sampling to eliminate modulo bias, so every character in your charset has an exactly equal probability of being selected. No passwords are transmitted to any server.
16 characters minimum for most accounts; 20+ for email and banking; 32+ for master passwords and encryption keys. Length is the single most important factor — a 20-character lowercase-only password (20 × 4.7 bits ≈ 94 bits of entropy) is vastly stronger than a 10-character password with every character type (10 × 6.5 bits ≈ 65 bits). Aim for at least 80 bits of entropy (shown in the strength meter).
Symbols increase entropy per character but can cause problems on systems with restricted inputs (some banking sites, legacy apps). A safer compromise is to use a longer password with numbers and mixed case instead of forcing symbols everywhere. If the site allows symbols, include them — but never sacrifice length to meet a strict symbol requirement.
Entropy (measured in bits) describes how unpredictable a password is. Each bit doubles the number of guesses an attacker needs to brute-force it. At 128 bits, a password cannot be cracked by any foreseeable hardware. The formula is: entropy = length × log₂(charsetSize). For example, a 20-character password using all character types (95 chars) has 20 × 6.57 ≈ 131 bits of entropy.
Use a reputable password manager such as Bitwarden (open source, free), 1Password, or Dashlane. Never reuse passwords across sites, write them in plain text files, or store them in a browser that syncs without a master password. A password manager lets you use a unique 20+ character random password on every site while only memorising one strong master password.

We use cookies only for essential site functionality. No tracking or advertising cookies. Learn more