Skip to content
codinganthem
All tools/Security/Password Generator

Password Generator

Generate strong, random passwords online using the Web Crypto API. Customize length and character sets, with a built-in strength indicator — free.

Click Generate to create passwords...

More
Buy me a coffee

How the passwords are generated

Passwords are built from the browser's cryptographic random generator (crypto.getRandomValues), the same source password managers use, not from Math.random. Choose the length (up to 128 characters) and the character sets, then copy one or generate several at once. Nothing is stored or sent anywhere.

How strong is strong enough?

Strength is measured in bits of entropy: length × log2(number of possible characters). Each extra bit doubles the guesses an attacker needs. For accounts protected by a slow password hash, 70–80 bits is very strong; for encryption keys and master passwords, aim for 100 or more.

Length  Characters               Entropy
12      all 94 printable          ~79 bits
16      all 94 printable         ~105 bits
16      letters + digits (62)     ~95 bits
20      lowercase only (26)       ~94 bits

Passphrase, 5 random words (7,776-word list)  ~65 bits
Passphrase, 6 random words                    ~78 bits

Length beats complexity

Adding characters raises entropy faster than adding symbol types, and long passwords are easier to type on phones. If a site rejects symbols, make the password longer instead. A passphrase of random words is a good choice for the few passwords you have to remember, such as your password manager's.

Good password habits

  • Use a different password for every site, kept in a password manager.
  • Turn on two-factor authentication; you can test authenticator codes with the TOTP Generator.
  • Developers: store passwords with a slow hash such as bcrypt (Bcrypt Generator), never in plain text or with plain SHA-256.

Frequently asked questions

Is it safe to generate passwords in a browser?+

Yes, when the browser's cryptographic generator is used, as it is here. The password is created on your device and never sent or stored.

How long should a password be?+

At least 12 characters using all character types, or 16 or more if you can. For a master password, a passphrase of 5 or 6 random words is strong and memorable.

Are symbols necessary?+

They add strength per character, but length matters more. A 20-character lowercase password is stronger than a 10-character one with symbols.

What is password entropy?+

A measure of how many guesses a password takes, in bits: length times log2 of the number of possible characters. Each extra bit doubles the guesses needed.