Developer Tools

Password Generator

Make strong random passwords on your device with secure randomness and an exact entropy figure.

By Nitin Raturi · Last reviewed

Input

How to use the Password Generator

Make a strong random password on your device. Nothing is stored or sent.

  1. Choose the length.
  2. Choose which kinds of character to include.
  3. Read the entropy and strength.
  4. Copy the password into your password manager, or press Generate again.

Good to know

  • A 6-digit PIN has only about 20 bits: fine with lock-outs, weak anywhere else.
  • Tap the ⓘ next to any field for a short guide to it.

Random passwords from your browser’s secure random number generator, with exact entropy.

Runs in your browser. Nothing you type is uploaded or saved in the link.

Length

How many characters the password has. Length matters more than anything else.

How to fill it in

  • Choose 4 to 128. Use at least 15 for a password that is your only protection, and more for a password manager.

Example

16 characters from all four kinds give about 99 bits of entropy.

Lowercase letters

Include a to z.

How to fill it in

  • Usually keep this on.

Capital letters

Include A to Z.

How to fill it in

  • Usually keep this on.

Digits

Include 0 to 9.

How to fill it in

  • Usually keep this on.

Symbols

Include the exclamation mark and # $ % & * + - = ? @ ^ _ ~.

How to fill it in

  • Turn off for sites that reject symbols; add a few characters of length instead.

Avoid look-alike characters

Leaves out 0, O, 1, l and I, which are easy to misread.

How to fill it in

  • Turn on if you will type or read out the password. It lowers entropy slightly; the figure updates.

Result

Password

—

Entropy
99.7 bits
Strength
Very strong
Possible passwords
about 2^99

Copy it straight into a password manager. It is not saved anywhere and disappears when you leave.

How this calculator works

  1. Step 1Pick the character kinds4 kindsLetters, capitals, digits and symbols.
  2. Step 2Draw each characterSecure randomnessFrom crypto.getRandomValues, with no bias towards any character.
  3. Step 3Keep only complete onesEach kind oncePasswords missing a chosen kind are thrown away and redrawn.
  4. Step 4Count every possibility99.7 bitsEntropy is log₂ of the number of passwords that could appear.

Entropy measures how many guesses an attacker would need, in powers of two. Each extra bit doubles the work. Here it is calculated exactly, not estimated from a formula of thumb.

Worked example: 16 characters

A 16-character password from all four kinds is one of about 2^99 possibilities.

Counting 16-character passwords that use every kind
Inclusion–exclusion
Σ (−1)^k × (size of the remaining kinds)^16
  1. Characters available76
  2. All 16-character strings76^16
  3. Minus those missing one or more kindsinclusion–exclusion
  4. Entropy99.74 bits

Reading the result

Adding length raises entropy faster than adding symbols.

  • 8 characters49 bits · Fair
  • 12 characters75 bits · Strong
  • 16 characters100 bits · Very strong
  • 20 characters125 bits · Very strong
Entropy for all four character kinds at different lengths
  • Under 60 bitsWeak or fairA 6-digit PIN is about 20 bits; only safe with strict lock-outs.
  • 80 bits and moreVery strongFar beyond practical guessing for any website password.

A strong password is random and long. Identifiers and hashes are different tools.

To make unique IDs that are not secret, use the UUID generator. The hash generator checks a file’s checksum, and the random number generator draws numbers from a range.

Common mistakes

  • Mistake: Reusing one strong password on many sites.

    Instead: Use a different password for every account, kept in a password manager.

  • Mistake: Adding one symbol to a short word.

    Instead: Use a long random password; length matters most.

  • Mistake: Sending passwords in chat or email.

    Instead: Share through a password manager, or by phone.

Read how we test our calculators, or browse more developer tools.

Frequently asked questions

Is the password sent or stored anywhere?

No. It is made in your browser with secure randomness, it is never sent to a server, and it is not saved in the page link. Only your length and character choices are.

How long should a password be?

Length matters most. NIST guidance asks for at least 15 characters when a password is the only thing protecting an account. With a password manager, 16 to 20 random characters is easy.

What does entropy mean?

It is the number of possible passwords, written as a power of two. 80 bits means about 2^80 possibilities; each extra bit doubles the guessing work.

Why does avoiding look-alike characters lower the entropy?

Fewer characters are available, so there are fewer possible passwords. Add a character or two of length to make up for it.

Is the randomness really unbiased?

Yes. It uses crypto.getRandomValues and discards values that would make some characters slightly more likely than others.

Sources and methodology

The formulas are standard time-value-of-money results. We check every figure against golden values worked out independently, by closed form and by month-by-month simulation; see the methodology.

Written and maintained by Nitin Raturi, a software engineer (about the author). Last reviewed 27 Oct 2026; next review due by . Found an error? Tell us.

Changelog

  • : Initial release. Demand metrics remain unverified.