Password Generator

Create an unbiased random password locally with the browser cryptography API.

by Calcuatany.com

Passwords are generated locally with Crypto.getRandomValues() and unbiased rejection sampling. Each position is selected independently from the displayed character pool.

The entropy figure is theoretical: length × log2(pool size). It assumes every generated password remains secret and every character is selected uniformly. Reuse, disclosure, predictable edits or insecure storage reduce real security.

How to use the Password Generator

  1. Choose a length. Longer unique passwords generally resist guessing better.
  2. Choose letters and numbers or add symbols to the pool.
  3. Generate a new password and store it in a reputable password manager.
  4. Check the destination site's requirements; this generator does not force at least one character from every category.

Formula

Theoretical entropy = length × log2(character-pool size)

Example: a 16-character local password

With symbols enabled, every one of the 16 positions is sampled from the full displayed pool. The exact output changes on every generation.

Because categories are not forced, a valid random result can occasionally omit a symbol or digit. Generate again if a site requires particular categories.

How to interpret the result

Theoretical entropy compares the size of the possible password space; it is not a promise about account security.

A unique password matters: reusing a strong password lets one breach affect multiple accounts.

Multi-factor authentication adds protection but does not make password reuse safe.

Next, you may also find these useful: Age Calculator, Date Difference Calculator, Date Add / Subtract.

Assumptions and limitations

  • The browser provides a trustworthy implementation of Crypto.getRandomValues().
  • Characters are sampled independently and uniformly; rejection sampling avoids modulo bias.
  • Generated passwords are not automatically transmitted or stored by the calculator. Browser extensions, clipboard history and device malware are outside this model.

Frequently asked questions

Is the password sent to a server?

No. Generation occurs in the browser. Be mindful of clipboard tools, extensions and anything you use to save or share it.

Does enabling symbols guarantee a symbol?

No. Symbols join the random pool, but no category is forced. Generate again if a service requires one.

What does theoretical entropy mean?

It is the logarithm of the number of possible outputs under uniform independent selection. It does not account for disclosure or reuse.

Why use rejection sampling?

It prevents some characters from becoming slightly more likely when random integers are mapped to a pool whose size does not divide 2^32 evenly.

Should I memorize every password?

A reputable password manager can create and store unique passwords, leaving you to protect its master password and recovery methods.

Is a password enough?

Use multi-factor authentication where available and follow the service's recovery and security guidance.

Sources and further reading

Last reviewed: 2026-10-07. See our editorial policy.

Related calculators

For informational purposes only. Full disclaimer