random.cihat.dev

Password generator

This password generator makes a strong random password as soon as the page opens. Set the length and characters, or switch to a passphrase of random words. Nothing leaves your device.

Make a
–

16

How to use it

  1. Pick Password for a random string or Passphrase for random words you can type and remember.
  2. Set the length or number of words. The entropy line shows how strong the result is.
  3. Press Copy and paste it into the sign-up form or your password manager.

How the password is made

Passwords are made by your browser with crypto.getRandomValues, the generator browsers use for encryption keys. The four sets hold 26 capitals, 26 small letters, 10 digits and 25 symbols, 87 characters in all. Each character is drawn from the sets you tick with rejection sampling, so none is more likely than another.

Many sign-up forms still demand at least one character of each kind, so the generator makes sure every set you ticked appears. It does this by drawing the whole password again until the rule is met, not by placing a digit in a fixed spot, so the result stays uniform over all passwords that pass. At 16 characters about 85% of random passwords already contain all four sets, so the rule costs less than a quarter of a bit.

Leave out look-alikes drops I, l, 1, O, 0 and o, which are easy to misread when you type a password from a screen or a printout. That leaves 81 characters, 6.3 bits each instead of 6.4.

The password is never sent: the only request the page makes is an anonymous count that the tool was used, with nothing you typed or generated in it. Nothing is stored either: close the tab and the password exists only where you pasted it.

How long should a password be?

Strength is measured in bits of entropy: each extra bit doubles the guesses an attacker needs. The figures below hold only for passwords picked at random, like these; a password you make up yourself has far less entropy than its length suggests.

NIST’s Digital Identity Guidelines (SP 800-63B-4, August 2025) require at least 15 characters for a password used on its own, and at least 8 where it is one part of multi-factor sign-in. They also tell services to accept passwords of at least 64 characters, to stop imposing composition rules such as “one symbol”, to stop forcing periodic changes, and to check new passwords against lists of common and breached ones.

Entropy of random passwords (length × log₂ of the character count)
LengthAll four sets (87)Letters and digits (62)Small letters and digits (36)
852 bits48 bits41 bits
1277 bits71 bits62 bits
1597 bits89 bits78 bits
16103 bits95 bits83 bits
20129 bits119 bits103 bits

Passphrases

A passphrase is several random words, such as staple-oblong-cactus-ripple-humid. It is easier to type on a phone and to remember than a string of symbols. Each word comes from the 7,776-word EFF large wordlist, so each adds 12.9 bits: four words give about 52 bits, five about 65, six about 78 and seven about 90. Add a digit puts one random digit after one random word and adds 3.3 bits.

The EFF suggests at least six words from this list. The security comes from the words being picked at random, not from the words being obscure, so a phrase you choose yourself, such as a line from a song, is much weaker. Wordlist by the Electronic Frontier Foundation, eff.org/dice, licensed CC BY 3.0 US.

What the strength line means

The line under the password gives its entropy and a label. These are this tool’s own bands, not a standard: under 40 bits is weak, enough only where a site locks the account after a few wrong tries; 40 to 59 is fair; 60 to 79 is strong; 80 and above is very strong. A four-digit PIN has about 13 bits, which is why phones limit and slow down wrong guesses.

Use a different password for every account and keep them in a password manager, so a leak at one site does not open the others. Sharing a new Wi-Fi password with guests? The Wi-Fi QR code generator turns it into a code they can scan. Need a random identifier rather than a secret? Use the UUID generator. For random numbers or PIN practice, the random number generator.

Questions people ask

Is it safe to use an online password generator?

This one makes the password inside your browser and never sends it, so the site never sees it. Use a different password for every account and keep them in a password manager.

What is a good password length?

NIST’s current guidelines ask for at least 15 characters when a password is the only sign-in factor. 16 characters from all four sets gives about 103 bits of entropy, far beyond what guessing can reach.

Is an 8-character password strong enough?

Eight random characters from all four sets give about 52 bits. NIST accepts 8 only where the password is one part of multi-factor sign-in; on its own, use 15 or more.

What if a site rejects symbols?

Untick the symbols box and add a few characters of length instead: 20 letters and digits give about 119 bits.

Are passphrases as strong as passwords?

Six random words give about 78 bits, close to a 12-character random password, and they are far easier to type. Strength depends on the words being chosen at random, which this tool does for you.

Should I change my passwords regularly?

NIST’s guidelines tell services not to force periodic changes, and to require a change when there is evidence a password was compromised. Change a password when the site reports a breach or you suspect someone has it.