One Calculator Logo One Calculator
Everyday Tools • Formulas shown

Password Generator

Quick Answer

A strong password is long and random. A 16-character password drawn from all 94 printable ASCII characters has about 105 bits of entropy (16 × log₂ 94), far beyond what attackers can guess. Length matters more than complexity rules.

Result

Example (press Calculate for a secure one): avj?PGrghD^w8)9k vEFUnaGlf^8%8wlI =FK,]FA4?Y*X%K1l

Character pool85
Strength (entropy)103 bits
RatingVery strong
Step-by-step calculation
  1. Each character is chosen uniformly using your browser’s cryptographic random generator (crypto.getRandomValues).
  2. Entropy = length × log₂(pool size) = 16 × 6.41 = 103 bits

Passwords are generated on your device and are never sent anywhere. The example shown before you press Calculate is for display only. Do not use it. Use a password manager to store them.

About the Password Generator

Choose the length and character sets and press Generate. Passwords are created in your browser with the Web Crypto API, are never sent anywhere and are not stored.

Use a different password for each account and keep them in a password manager. Turn on two-factor authentication where available.

How to Use the Password Generator

  1. Set the length.
  2. Select character types.
  3. Press Generate and copy the password.

Formula and Method

Entropy

bits = length × log₂(pool size)

Pool size is the number of possible characters.

Worked Example

A 16-character password

Input: Length 16, all character types (94 characters)

  • log₂ 94 = 6.555
  • 16 × 6.555 = 104.9

Result: About 105 bits of entropy.

Frequently Asked Questions

How long should a password be?

At least 12 characters, and 16 or more for important accounts.

Is it safe to generate passwords online?

This one runs locally in your browser, so nothing is transmitted.

What is entropy?

A measure of unpredictability. Each extra bit doubles the guesses needed.

Related Calculators

All Everyday & Other Calculators →

Sources and Further Reading

Accuracy and Scope

Results follow the formulas and scales stated on each page. Institutions, vehicles and circuits differ, so check against your own rules and equipment. See our full disclaimer.