Password Generator

The Complete Password Generator Guide

How random passwords and word passphrases are built, what the entropy figure really tells you, and how to use every control on the page.

Open Password Generator

What This Generator Does

This tool produces passwords and passphrases entirely inside your browser. Each character or word is chosen with crypto.getRandomValues, the browser's cryptographically secure random source, so the output is designed for real accounts rather than for testing. Nothing you generate is sent to a server, written to a file or kept after you close the page.

The page has two modes. Random characters builds strings from up to four character sets: lowercase letters, uppercase letters, digits and symbols. Word passphrase joins words from a built-in list of 340 short, common English words, using a separator you choose. Both modes can produce a batch of up to 20 results, and each result can be copied on its own or together with Copy all.

The page also shows an entropy estimate in bits and a strength label. Treat that number as a planning aid. It describes the size of the search space the settings allow, not how a particular site would resist an attack or whether that site follows good storage practices.

If you are new to password generation, start with the defaults. They produce 20 characters from all four sets, which is long enough for most accounts. Change a setting only when you have a concrete reason, because each restriction removes characters from the pool and lowers the estimate.

Step-by-Step: Every Control Explained

  1. Mode tabs. Random characters is selected by default. Word passphrase swaps the panel for the word controls. Switching modes clears the current batch, because results from one mode mean nothing in the other.
  2. Length slider. Sets the number of characters in each random password, from 8 to 128. The label and the estimate update as you drag. Results you already generated keep their old length until you press Generate again.
  3. Character sets. Four switches choose the pools. A random password draws from the combined characters of every switched-on set, and at least one character from each set is always included. Turn a set off when a site forbids it, for example symbols.
  4. Leave out look-alike characters. Removes 0, O, 1, l, I, o, the vertical bar, the backtick, the apostrophe and the double quote from every set. The pool gets smaller, so each character carries slightly less entropy, but the result is easier to read aloud or copy by hand.
  5. Number of words. Available in passphrase mode, from 3 to 12. Each word adds about 8.4 bits.
  6. Separator. Chooses the text placed between words: a hyphen, a space, a period, an underscore or nothing at all.
  7. How many. Sets the batch size from 1 to 20. Every result in a batch is generated independently.
  8. Generate. Creates a new batch with the current settings. Changing a setting does not alter existing results, so press Generate after each adjustment.
  9. Copy and Copy all. Each row has its own Copy button. Copy all places every result on its own line. Clipboard access depends on your browser's permissions.

Worked Example

Default settings. The length is 20, all four sets are on and look-alikes stay in. Lowercase contributes 26 characters, uppercase 26, digits 10 and symbols 23. The pool therefore holds 85 distinct characters.

The estimate is length times log2 of the pool size. log2(85) is about 6.41, so 20 x 6.41 = 128.2 bits. That is above 96, so the label reads Very strong.

Leave out look-alikes. Digits lose 0 and 1, lowercase loses l and o, and uppercase loses I and O. The pool becomes 8 + 24 + 24 + 23 = 79 characters. The estimate for 20 characters is 20 x log2(79) = 20 x 6.30 = 126.1 bits. The cost is about 2 bits, which is why this option is usually a reasonable trade.

Passphrase. Six words from the 340-word list give 6 x log2(340) = 6 x 8.41 = 50.5 bits, labelled Fair. Four words give 33.6 bits, labelled Weak. Adding two words is the simplest way to strengthen a passphrase.

Tips and Common Mistakes

  • Use a unique password for every account. A strong generated value protects nothing if the same value is reused elsewhere.
  • Save results straight away. The page keeps nothing, so a closed tab takes the batch with it. Paste the chosen result into a password manager at once.
  • Check the site's rules first. Some sites reject symbols, cap the length or refuse spaces. Pick settings the site accepts before you generate.
  • Mind the minimum length. Because each selected set contributes at least one character, a length shorter than the number of sets is refused.
  • Do not trust the estimate blindly. A leaked database or a weak hashing scheme changes the real risk, and the estimate cannot see either.
  • Keep passwords out of chat and documents. Anyone who sees a generated value can use it.
  • Pick passphrase length by the figure, not by feel. A four-word passphrase is weaker than a 16-character random string, so use the bit count to decide.

Frequently Asked Questions

Why does the entropy estimate not match what a password meter shows?

Password meters often look for patterns, dictionary words and repeated characters. This tool's estimate assumes a uniform choice from the pool, which is how the generator works, but it cannot see how a site stores passwords. Use the number to compare settings, not as a verdict on any service.

Is a passphrase better than random characters?

Neither is better in every case. Random characters give more entropy per character and suit fields that accept symbols. Passphrases are easier to remember and type, and reach a comparable estimate with more words. Choose the mode that fits where you will use the password.

How long should a generated password be?

For an account password, a 16-character value drawn from all four sets already gives about 102.6 bits of estimated entropy, a search space too large for simple guessing to cover. Use the longest length the site accepts, and check the site's rules before you generate, because many sites set a maximum.

Can I reproduce a batch later?

No. Results are not stored and are created from fresh random values each time. If you want to keep a password, copy it into a password manager straight away.

Open Password Generator