Tool

Password Generator

Random passwords, Diceware passphrases and PINs, from the browser's cryptographic random source with unbiased sampling.

Nothing leaves your browser. Randomness comes from crypto.getRandomValues() (the OS CSPRNG via Web Crypto); the wordlist and strength estimator are served from this origin. Generated values exist only in this page until you copy them, and are wiped from the page when you leave or after the optional timer.

Each character is drawn uniformly from the chosen alphabet by rejection sampling, so no character is favoured. "Require every class" regenerates until each selected class appears, which keeps the result uniform over the set of passwords that qualify.

Words come from the EFF long wordlist (7,776 words, 12.9 bits each), chosen with the same unbiased sampler. Six words ≈ 77.5 bits.

Uniform over all digit strings of that length; a 6-digit PIN is 19.9 bits and relies entirely on the verifier rate-limiting attempts.

How it works

To pick one of n items without bias from a 32-bit random word, the sampler discards any value ≥ floor(232/n)·n and draws again; a plain random % n would favour the first few items whenever n does not divide 232. This is the same approach used by Bitwarden, KeePassXC and 1Password's generators and by OpenBSD's arc4random_uniform(). The passphrase list is the EFF's 2016 long list, designed so that any 5-dice roll maps to a memorable, distinct word. Strength scoring is Dropbox's zxcvbn 4.4.2.