Password Generator

Click Generate

Set Length and the character checkboxes, then Generate a string with crypto.getRandomValues. The page does not use Math.random, and it does not keep the result.

How to use

  1. Look at Length. It starts at 16. When you click Generate, a number under 4 is raised to 4 and a number over 64 is cut to 64. A blank length is treated as 16.
  2. Tick the sets you want. Uppercase, Lowercase, and Numbers start checked. Symbols starts unchecked. The symbol pool is punctuation, not letters or digits.
  3. Click Generate. A string replaces the line above the buttons. The script also generates once as the page opens, so you usually see a password before the first click. If every box is off, the line tells you to select at least one type.
  4. Click Copy to write the current line to the clipboard. Copy skips the line only when it still reads Click Generate.

When it helps

Use it for a new login, an app password, or a wifi key you will type yourself. Change Length and the boxes, then Generate again, before you Copy. A short game pick is a different job.

The random number generator draws integers with Math.random for scores and lists. The dice roller shows tabletop faces and a total. Those pages are for games, not secrets, and neither one should be the source of a password.

Limits

The page does not store the password and does not check it against a breach list. You will not get a warning if the same characters already appeared in a public leak. There is no history list and no account.

Each character is chosen from the combined pool, so a short length can miss a set you ticked. Checking Symbols does not guarantee a symbol appears. Copy depends on clipboard permission. If the browser blocks that write, select the characters on screen. Putting the string into a QR picture makes it readable by any scanner, so do that only when sharing the picture is the point.

Questions

Does Generate use Math.random?

No. It fills a typed array with crypto.getRandomValues and maps each value onto the character pool. The game tools on this site use Math.random. This page does not.

What if every checkbox is off?

Generate stops and the line says to select at least one type. Turn at least one of Uppercase, Lowercase, Numbers, or Symbols back on, then Generate again.

Is 4 characters enough?

The control allows 4 through 64 and starts at 16. Four is only the floor. Sixteen with upper, lower, and numbers is a normal login. Add Symbols when the site accepts them.