FLXCode Password Generator

FLXCode apps

Appearance

Password Generator

Make a random password or a passphrase. It is made in your browser and is never sent anywhere.

Type

Characters to use
Entropy
Needs JavaScript
The formula, with your settings
Time to try half of all possibilities, at 10 billion guesses a second

Made in your browser with the Web Crypto random generator. It is never sent to us, stored, counted or put in the address bar.

No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it.

Problem or idea? Email us

Quick start

  1. Pick random characters for a password a manager will fill in, or a passphrase for one you have to type.
  2. Set the length (8 to 128) and the character sets, or the number of words (3 to 12).
  3. Read the entropy line. Aim for 80 bits or more for anything that matters.
  4. Press Copy, paste it into the sign-up form and save it in your password manager.

Numbers this uses

  • Set sizes: lowercase 26, uppercase 26, digits 10, symbols 25 (!@#$%&*()-_=+[]{};:,.?/~^). These are fixed by the characters themselves.
  • Look-alikes removed when the box is ticked: Il1|O0o. Pool sizes become 24, 24, 8, 25. Our choice, based on common font confusions.
  • Word list: 2,048 plain lowercase words, written for this site and tested for duplicates. 2048 = 2^11, so each word is exactly 11 bits.
  • Random source: crypto.getRandomValues, defined in the W3C Web Crypto API and implemented by every current browser. Math.random is never used.
  • Guess rate: 10 billion per second (10^10). This is our assumption for a stolen database with a fast hash and strong hardware. Sites that use bcrypt, scrypt or Argon2 are many thousands of times slower to attack.
  • Strength words: under 40 bits weak, 40 to 59 fair, 60 to 79 good, 80 or more strong. This scale is ours, not a standard.

Entropy of common choices

Worked out by the same code that makes the password. "Time" is the time to try half of all possibilities at 10^10 guesses a second.

PasswordPoolEntropyTimeWord
8 lowercase letters2637.6 bitsunder an hourweak
8 characters, all four sets8750.5 bits22 hoursfair
12 letters and digits6271.3 bits4,478 yearsgood
16 lowercase letters2675.2 bits69,094 yearsgood
16 characters, all four sets87102.8 bitsabout 10^13 yearsstrong
20 characters, all four sets87128.7 bitsabout 10^20 yearsstrong
4 random words204844.0 bitsunder an hourfair
5 random words204855.0 bits21 daysfair
6 random words204866.0 bits117 yearsgood
5 random words and a number204861.6 bits5.7 yearsgood

How it works

bits = length × log2(pool size)

For random characters the tool joins the chosen sets into one pool and picks each position at random. A set you chose must show up at least once, so it redraws the whole password when one is missing. The page then takes the exact count of passwords that contain every set (inclusion and exclusion over the sets) instead of the plain formula, and tells you the difference.

For a passphrase it picks words from the list and joins them. bits = words × log2(2048). The optional number from 0 to 99 adds log2(100) = 6.6 bits. Capital letters and separators add nothing, because they are not random.

No modulo bias

The browser gives random 32-bit numbers, which are 4,294,967,296 possible values. To pick one of 87 characters, the tool accepts a number only if it is below 4,294,967,280, the largest multiple of 87 that fits, and takes the remainder. Anything higher is thrown away and a new number is drawn. A test in the code checks this on small ranges by counting every outcome.

Using a password well

  • One password per site. When one site leaks, the others stay safe.
  • Let a password manager store them. You then only remember one passphrase.
  • Turn on two-step sign-in where it is offered. A passkey is better still when the site supports it.
  • Do not change a strong password on a schedule. Change it when a site reports a leak.
  • Never use personal details such as names or birthdays. The generator does not know them, which is the point.

Limits

  • The page cannot see how a site stores your password. A strong password does not help if the site keeps it in plain text.
  • Nothing is saved. Close the tab and the password is gone, so copy it first.
  • No custom character list and no pronounceable mode. Those make passwords weaker or harder to count, so the entropy line would no longer be exact.

Nothing you make here is uploaded. We count events without cookies, such as which mode was used, never the password (details).

FAQ

Is it safe to use an online password generator?

It is safe when the password is made on your device and never leaves it. This page makes it in your browser with crypto.getRandomValues, the random generator built into browsers for security work. The password is not sent, stored, counted or put in the address bar. You can test it: load the page, turn off Wi-Fi and press Generate. It still works.

How long should a password be?

For a password you will keep in a password manager, 16 random characters is a good default (102.8 bits with all four sets). For one you must type from memory, such as a manager's master password, use a passphrase of 5 or 6 words (55.0 and 66.0 bits). Many sites cap length, so check the limit first.

Random characters or a passphrase?

Both work if they are random. Words are easier to type and remember. 16 random characters give 102.8 bits and 7 random words give 77.0 bits. Use characters for a password you paste, words for one you type.

What is entropy and how is it worked out?

Entropy in bits is the log base 2 of the number of passwords the generator could have made. For random characters it is length × log2(pool size). A 16 character password from a pool of 87 characters is 16 × log2(87) = 103.1 bits. Each extra bit doubles the number of guesses an attacker needs. It only holds when the password was made at random, not picked by a person.

Do symbols matter more than length?

Both add bits, and length is the one with no ceiling. 12 lowercase letters have 56.4 bits. Using all four sets at 12 characters gives 76.9 bits. Staying with lowercase but going to 16 letters gives 75.2 bits, and all four sets at 16 give 102.8. When a site caps the length, use every set. Otherwise add characters.

Why leave out look-alikes?

The characters Il1|O0o are easy to mix up in many fonts: capital I and small l and 1, or O and 0 and o. Leaving them out helps when you must read or type the password by hand. It shrinks the pool a little (87 to 81 characters), which costs about 0.10 bits per character. One extra character makes up for it.

What does "every chosen set must appear" do?

Some sites reject a password without a capital, a digit or a symbol. The tool draws the whole password at random and throws it away if a chosen set is missing, so every valid password is equally likely. That rule removes a few passwords from the pool, and the page subtracts those bits in the formula line. At 16 characters the cost is under half a bit.

Is the random number generator biased?

No. A random 32-bit number does not divide evenly by 87, so a plain remainder would favor the first few characters. The tool uses rejection sampling: it throws away numbers above the last full multiple (3.7e-7% of draws for a pool of 87) and draws again. Every character then has exactly the same chance.

More from FLXCode

Share Password Generator