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.
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.
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?
How many bits of entropy is a strong password?
What is the NIST recommended password length?
Is a random password generator safe to use?
Why exclude similar characters like l, 1, O and 0?
Is a longer password better than adding symbols?
Sources
- NIST SP 800-63B (Digital Identity Guidelines, 800-63-4 revision), §3.1.1 Password verifiers — Reviewed 12 Nov 2026
- W3C Web Cryptography API — getRandomValues() — Reviewed 12 Nov 2026
Related free tools
- RandomPick name picker — also built on unbiased random selection
- UnitBench unit converter — includes data units (bits, bytes)
General information about password strength. Use a unique password for every account and turn on multi-factor authentication where offered.