Skip to content
Random & fun

Password Generator

Set a length and a character set, or generate a passphrase from a wordlist. The strength figure is computed from the generator, not guessed from the characters.

Options

Characters

Strength

129.5 bits of entropy

Very strong

An offline attack at ten billion guesses a second would take about longer than the universe has existed.

Generating…

About the Password Generator

Every character here comes from the browser cryptographic random source, not from Math.random. That distinction matters more than it sounds: Math.random is a deterministic generator whose internal state can be recovered from a handful of outputs, which makes anything built on it predictable. People use random-string tools to make passwords whether or not the tool intended it, so the strong source is the only defensible default.

There is a subtler correctness issue behind that. The obvious way to pick a character is to take a random number and apply the modulo operator, and it introduces a small bias — with a 62-character alphabet drawn from bytes, the first eight characters come up about 1.6% more often than the rest. Invisible in use, and a genuine reduction in entropy. This generator discards and redraws values that would land unevenly, so every character really is uniform.

The strength number shown is entropy in bits: the base-2 logarithm of how many passwords the generator could have produced. It is a property of the process, not of the string, which is why the meters on most sign-up forms mislead. They inspect your characters and award points for a capital and a digit, which is exactly the pattern a cracking dictionary tries first. Turning "password" into "P@ssw0rd1" scores well on those meters and is among the first few thousand guesses in practice.

Passphrases are the better option for anything you have to type from memory. Words drawn at random are far easier to remember than a character soup of the same strength, and length compensates for the smaller alphabet. The wordlist here is 512 words, which is exactly 9 bits per word — so eight words is 72 bits. That is a smaller list than the EFF's 7,776-word one at 12.9 bits per word, and the tool says so rather than quietly rounding in its own favour.

Nothing generated here is transmitted, stored or logged. There is no server to send it to.

Frequently asked questions

How long should a password be?

Long enough to clear about 75 bits of entropy, which the readout shows. With a full mixed alphabet that is around 12 characters; with lowercase only it is closer to 16. For anything you must remember, use a passphrase instead.

Why do the strength meters on other sites disagree?

Because most inspect the characters and reward a capital and a digit — exactly the pattern cracking dictionaries try first. Entropy here is computed from the generator alphabet and length, which is the only place it can be calculated honestly.

Are passphrases really as strong?

They can be, and they are far easier to remember. Each word from this 512-word list is exactly 9 bits, so eight words gives 72 bits. Use more words here than you would with a larger list.