Skip to content
PassCheck

Passwords, with the maths shown

Generated from your browser's cryptographic random source. The entropy figure is computed from the character set you actually chose.

Network measuring… Source crypto.getRandomValues

Check it yourself: open DevTools → Network and use this page. Nothing you generate or type produces a request, because the page makes none.

Why the entropy number is the whole point

Most generators show you a coloured bar. A bar cannot tell you whether twelve characters is enough, or what you give up by unticking symbols, and it is usually computed from a rule of thumb rather than from the generator's own settings. The honest measure is entropy: the number of possibilities an attacker has to work through, expressed in bits so that each extra bit means twice as many.

Here the figure is derived from the character set in use and the length you asked for, and it changes the instant you change either. Untick symbols and watch it fall; add two characters and watch it recover. That relationship is the actual thing worth understanding about passwords, and a bar hides it.

The uncomfortable part: your password is only half of it

Entropy tells you how hard the password is to guess. How long guessing takes also depends on how the site you are using stored it — and you have no way to know. A 60-bit password behind a properly slow hash like bcrypt or Argon2 is out of reach; the same password behind one round of an old fast hash can fall in hours on rented hardware. This is why length beyond the point of comfort is still worth having: it is the only variable on your side of the fence.

The single highest-value habit here is not a stronger password, it is a different password per site. Reuse is what turns one company's breach into your problem, and no amount of entropy protects against it.

Rejection sampling, and why it matters here

Mapping a random 32-bit number onto a 70-character set with a simple remainder operation very slightly favours the first few characters of the set, because 2³² does not divide evenly by 70. The bias is small, but it means the real entropy is fractionally below the number displayed — and a page whose only product is a number should not print one that is not true. This generator discards and redraws any value that would land in the uneven tail.

How it works

Choose a length and the character types you want, then press Generate. Each character is picked by your browser’s cryptographic random number generator (crypto.getRandomValues), using rejection sampling so that every allowed character is equally likely. The password is created on your device and is never sent to us or stored.

The strength figure is entropy, measured in bits. For a password where every character is chosen at random from the same set, entropy is length × log₂(number of possible characters). Each extra bit doubles the guesses needed to try every possibility. Add a character and you add log₂(set size) bits.

Entropy only describes passwords made at random. A password you invent, such as a word with a number on the end, has far less real entropy than its length suggests, because attackers try common patterns first.

NIST’s current guidance (SP 800-63B) asks services to accept passwords of at least 15 characters when a password is the only factor, to allow at least 64 characters, and not to force composition rules or regular changes. A long random password stored in a password manager meets that easily.

Turning on Exclude lookalikes removes I, l, 1, O, 0 and o so a password is easier to read and type, at a small cost in bits.

This page also shows Google ads, which load third-party scripts and use cookies — see Privacy. If you would rather not generate a password with ads on the page, your password manager’s built-in generator works just as well.

Worked examples

Worked example 1: 16 characters, all four types

Character set: 26 lowercase + 26 uppercase + 10 digits + 32 symbols = 94 characters.

  • Bits per character: log₂(94) ≈ 6.555
  • Entropy: 16 × 6.555 ≈ 104.9 bits
  • At NIST’s 15-character minimum: 15 × 6.555 ≈ 98.3 bits

Worked example 2: 20 characters, letters and digits, lookalikes excluded

Character set: 62 letters and digits − 6 lookalikes (I, l, 1, O, 0, o) = 56 characters.

  • Bits per character: log₂(56) ≈ 5.807
  • Entropy: 20 × 5.807 ≈ 116.1 bits

Dropping symbols and lookalikes cost about 0.75 bits a character, and four extra characters more than made it back. Length matters more than character variety.

Questions

How is password entropy calculated?
For a randomly generated password, entropy in bits is the length multiplied by log base 2 of the number of possible characters. A 16-character password from 94 printable characters is 16 × log₂(94), about 104.9 bits. The formula only holds when every character is chosen at random.
How many bits of entropy is a strong password?
There is no official cut-off, but each bit doubles the guesses needed. A random 16-character password from 94 characters is about 105 bits, far beyond what can be brute-forced. The bigger risks are reusing passwords and phishing, so use a unique password for every account.
What is the NIST recommended password length?
NIST SP 800-63B says services should require at least 15 characters when a password is the only factor, and at least 8 when it is used with multi-factor authentication. They should allow passwords of at least 64 characters and should not impose composition rules or force regular changes.
Is a random password generator safe to use?
A generator is safe if it uses a cryptographic random source and does not send or keep what it makes. This one uses your browser's crypto.getRandomValues and creates the password on your device without sending it to us. For everyday use, your password manager's built-in generator is just as good and saves the password for you.
Why exclude similar characters like l, 1, O and 0?
They are easy to misread when you type a password from a screen or paper, such as a Wi-Fi key. Excluding them removes six characters from the set, which lowers the bits per character slightly. Add a character or two of length to make up the difference.
Is a longer password better than adding symbols?
Usually, yes. Each extra character adds log₂ of the set size, about 6.6 bits with 94 characters, while adding symbols to a letters-and-digits set adds under a bit per character. A 20-character password without symbols can be stronger than a 12-character one with them.

Related free tools

General information about password strength. Use a unique password for every account and turn on multi-factor authentication where offered.