Pixel and Prose

Password Generator: strong random passwords

Updated
Cover image for "Password Generator: strong random passwords" – Pixel and Prose

Create strong, random passwords with your choice of length and characters. Passwords are generated on your device with your browser's secure random number generator and are never sent or stored.

16

Each selected type of character appears at least once. The entropy figure assumes an attacker knows exactly how the password was made, which is the safe way to measure it.

Password Generator settings: length slider at 16, four character types ticked and how many to make

How long should a password be?

Length matters more than anything else. The US National Institute of Standards and Technology (NIST) says a password used as the only sign-in factor must be at least 15 characters long, and that services should allow passwords of at least 64 characters. A random 16-character password using all four character types has about 103 bits of entropy, far beyond what can be guessed by trying every combination.

Length (all four character types)Entropy
8 charactersabout 52 bits
12 charactersabout 78 bits
16 charactersabout 103 bits
20 charactersabout 129 bits

Figures are based on a pool of 88 characters: 26 lowercase, 26 uppercase, 10 numbers and 26 symbols.

Key hanging on a small wooden house, with text comparing 8 and 16 character passwords

Using strong passwords

  • When the same password is used on several accounts, one leak can unlock all of them; separate passwords limit a leak to one account.
  • A note or spreadsheet can be read by anyone who opens the file; a password manager keeps passwords encrypted and fills them in. Most browsers and phones include one.
  • With two-step verification or a passkey, a stolen password alone is not enough to sign in; sites that offer it usually list it in their security settings.
  • If a site does not accept some symbols, unchecking Symbols makes the pool smaller, so each character adds fewer bits; a longer password makes up the difference, as the strength meter shows.

To share a Wi-Fi password without reading it out, put it in a QR code that phones can scan to join the network.

Frequently asked questions

Is it safe to generate a password on a website?

This page creates passwords with the Web Crypto API built into your browser, the same source of randomness browsers use for encryption. The passwords exist only on your screen: they are not sent over the network, saved or logged. You can disconnect from the internet after the page loads and the generator still works.

Why does the strength meter say Strong but not Very strong?

The meter is based on entropy: under 40 bits is weak, 40 to 59 is fair, 60 to 79 is strong and 80 or more is very strong. Make the password longer or add more character types to move up.

Generated passwords with Copy buttons and a meter reading Very strong, about 103 bits of entropy

Should I avoid look-alike characters?

They matter only when the password is read or typed by hand, for example a Wi-Fi password written on a card; a password that is only pasted never runs into them. Removing them makes the pool a little smaller, so the same length gives slightly fewer bits; one or two extra characters cover the difference.