Security

Password Generator

Live

Generate a random password locally with configurable length, character sets, ambiguous-character removal, entropy estimate, hide, and copy controls.

About Password Generator

Use the Password Generator for a machine-generated secret intended to be unique to one account. Choose 4 to 64 characters in the interface, enable uppercase, lowercase, digits, and symbols independently, and optionally remove commonly confused characters. The generator guarantees at least one character from every enabled set, fills remaining positions from the combined pool, securely shuffles the result, and displays a random-choice entropy estimate. The page does not save generated passwords.

Generate a Random Unique Password

Workspace

Output studio

Shape the options below, then create a fresh output from the selected ingredients.

Complete the fields to prepare a result.

Choose the password length. Longer passwords are harder to guess when the character set stays broad.

Turn this on when uppercase should be included.

Turn this on when lowercase letters should be included.

Turn this on when digits should be included.

Turn this on when symbols should be included.

Remove I, l, 1, O, 0, and o when visual distinction matters.

Password Generator: password

Choose a length, character sets, and ambiguous-character preference, then generate locally.

Cryptographic generation method

Generate uniformly random indexes with Web Crypto rejection sampling; estimated entropy = length × log2(enabled pool size).

How it works

The browser uses crypto.getRandomValues with rejection sampling to avoid modulo bias, selects at least one character from each enabled set, fills from the combined pool, and performs a secure Fisher–Yates shuffle. Entropy is estimated as length × log2(pool size) for the generator’s uniform random-choice model. NIST recommends allowing password managers and notes that machine-generated random passwords, blocklists, and rate limiting are more effective than forcing predictable composition patterns on user-created passwords.

Practical guide

Generate a random password locally with a chosen length and character policy.

Password Generator worked example

The page’s example models creating a unique credential for a password manager. Change one assumption at a time so the effect on password, length and entropy bits remains easy to explain.

Treat the displayed password, length and entropy bits as the result of the example inputs, not as a default recommendation for a different situation.

Assumptions

  • The entered length, uppercase and lowercase describe the same scenario and use the units shown beside each field.
  • The calculation applies the stated method consistently and rounds only for display unless the tool says otherwise.

Limitations

  • The browser uses crypto.getRandomValues with rejection sampling to avoid modulo bias, selects at least one character from each enabled set, fills from the combined pool, and performs a secure Fisher–Yates shuffle. Entropy is estimated as length × log2(pool size) for the generator’s uniform random-choice model. NIST recommends allowing password managers and notes that machine-generated random passwords, blocklists, and rate limiting are more effective than forcing predictable composition patterns on user-created passwords.
  • The result covers the inputs exposed by this tool; omitted context can change a real-world answer.

Common mistakes

  • reducing length to satisfy a site rule without checking the resulting strength.
  • Changing length without checking the other assumptions can make the comparison misleading.
When to use Password Generator
Approach Best for Trade-off
Password Generator A transparent calculation that reports password, length and entropy bits. Accuracy depends on the entered assumptions and the documented method.
a passphrase generator when memorability is more important than mixed symbols Situations that need different inputs, verification, or broader context. May take longer, cost more, or produce a result that is not directly comparable.

Examples

Password Generator: 20-character mixed

Example input
{
    "length": 20,
    "uppercase": true,
    "lowercase": true,
    "digits": true,
    "symbols": true,
    "exclude_ambiguous": true
}
Expected result
{
    "password": "[redacted]",
    "length": 20,
    "entropy_bits": 122.2,
    "character_sets": 4
}

Privacy

Sensitive inputs stay on your device. Results are generated locally and are not stored by UtilityPages.org.

Citations & sources

  1. NIST SP 800-63B: Password Authenticators
  2. Web Cryptography Level 2

Frequently asked questions

Why guarantee one character from every enabled set?

It makes the output compatible with services that require particular character types. NIST does not recommend imposing composition rules on user-created passwords, but websites may still enforce them.

What does excluding ambiguous characters change?

It removes I, lowercase l, 1, uppercase O, zero, and lowercase o from their sets. That slightly reduces the pool but can prevent transcription mistakes when a password must be read or typed manually.

Is the entropy estimate guaranteed attack resistance?

No. It describes this generator’s random search space. Account security also depends on uniqueness, the service’s password storage, rate limiting, breach exposure, malware, phishing, and recovery processes.

What should I do after generating a password?

Copy it directly into a trusted password manager, use it for only one account, and enable phishing-resistant multi-factor authentication when available. Do not share it in messages.