Password Generator

Password Generator

Character sets
Pool: 85 charactersEstimated entropy: 128.2 bits
Strength: Very strong

How Random Passwords Are Built

Every character this generator outputs is picked with crypto.getRandomValues, the browser's cryptographically secure random source. Ordinary pseudo-random functions are designed for speed and repeatability, not for resisting prediction, so anything that protects an account should come from the secure source instead.

Choosing a random index from a pool of, say, 85 characters sounds simple, but a common shortcut - taking a random 32-bit number modulo the pool size - quietly favours the early characters whenever the pool size does not divide 232 evenly. This tool uses rejection sampling instead: a random value that falls in the uneven tail is discarded and a new one is drawn, so every character has the same chance.

Secure randomnessValues come from the Web Crypto API rather than from Math.random, which is not designed for security.
No modulo biasOut-of-range values are rejected, so each character in the pool has an equal chance of selection.
Guaranteed varietyOne character from every selected set is always included, and then all positions are shuffled.
Nothing keptResults live only in the open page. They are not stored, logged or sent to a server.

Reading the Entropy Estimate

The estimate measures the size of the search space: the number of distinct passwords the chosen settings can produce, expressed in bits as log2 of that count. For random characters it is calculated as length x log2(pool size), so each extra bit doubles the number of possibilities. For passphrases it is words x log2(list size).

Estimated entropyLabel shown
Below 40 bitsWeak
40 to just under 64 bitsFair
64 to just under 96 bitsStrong
96 bits and aboveVery strong

The estimate assumes every character is equally likely. Requiring at least one character from each set nudges the real figure slightly lower, so read the label as a planning guide rather than an exact measurement.

Passphrases or Random Characters

Random characters give the most entropy for the fewest typed characters, which suits a password manager that fills in fields for you. Passphrases of several words are easier to remember and to type by hand. The passphrase mode draws from a list of 340 short, common English words written for this site. Each word adds about 8.4 bits, so six words give roughly 50 bits and eight words about 67 bits.

Words are picked with the same secure, rejection-sampled method used for characters, so the same word can appear more than once. Choose a separator the target site accepts. Hyphens and spaces are the most widely allowed, while sites that restrict punctuation may reject periods or underscores.

Frequently Asked Questions

Are the passwords sent to a server or saved anywhere?

No. Every password is produced inside your browser with crypto.getRandomValues, and nothing is transmitted, logged or stored. Closing or reloading the page discards the results.

How strong is a 16-character password from this tool?

With all four character sets switched on and look-alike characters left in, the pool has 85 characters, so a 16-character password carries about 102.6 bits of estimated entropy (16 x log2 85). Treat that figure as a planning estimate, since a generator cannot judge how a site stores or attacks passwords.

Why does the tool guarantee one character from each selected set?

A password with no digit or no symbol may fail a site's composition rules. The tool first picks one character from each enabled set, fills the rest from the combined pool, and then shuffles every position with the same secure source, so the guaranteed characters are not fixed to the start.

Does leaving out look-alike characters weaken a password?

It shrinks the pool. With look-alikes removed the pool is 79 characters instead of 85, so each character adds a little less entropy. For a 20-character password the estimate falls from about 128.2 to 126.1 bits, a small cost when a password may need to be read aloud or typed by hand.