Language: English

tools / password

password/

Generate random passwords and UUID v4 in bulk with the browser's secure random numbers, free of modulo bias.

Passwords

UUID v4

What is password entropy

Password entropy measures in bits how hard a random password is to guess: a password of length L whose characters are each picked with equal probability from N characters has L × log2(N) bits. This page builds passwords by drawing characters one by one from the chosen sets with crypto.getRandomValues, and can also generate UUID v4.

How it works: making every character equally likely

  1. Random numbers come from the browser's crypto.getRandomValues, one 32-bit unsigned integer at a time.
  2. Simply taking that integer modulo N is biased: 2 to the power 32 is usually not divisible by N, and the incomplete last round makes the smaller remainders come up one extra time.
  3. So the page uses as its limit the largest multiple of N within 2 to the power 32; random numbers at or above the limit are thrown away and drawn again, and only the rest are taken modulo N, which makes every character exactly equally likely. This is called rejection sampling.
  4. A UUID v4 has 128 bits, of which 6 are fixed to mark the version and variant and the other 122 are random (RFC 9562); this page prefers crypto.randomUUID.

With this page's defaults, length 20 and all four character types ticked, the pool has 89 characters, so the entropy is about 20 × log2(89) ≈ 129.5 bits.

Sources

FAQ

Is this password generator safe, and where do the random numbers come from?

The random numbers come from the browser's crypto.getRandomValues, an interface meant for cryptographic use, not from Math.random. Passwords are generated only in your browser; they are not uploaded and the page does not store them.

How long should a password be, and how are "weak / fair / strong" decided?

The page grades passwords by entropy: below 40 bits is "weak", 40 to 64 is "fair", 64 to 100 is "strong", and 100 or more is "very strong". With all four character types ticked the pool has 89 characters, so 10 characters give about 65 bits (strong) and 16 give about 104 bits (very strong). This is only a theoretical estimate; the real risk often comes from reusing one password across several sites.

What if a website does not accept certain symbols?

Untick "Symbols" and make the password longer to make up the strength. The symbol set is fixed at these 27 characters, !@#$%^&*()-_=+[]{};:,.<>/?~, and cannot be customized on the page. With letters and digits only the pool has 62 characters, and 20 characters give about 119 bits, which the page labels "very strong".

Which characters does "Exclude look-alikes" remove?

It removes these five: 0 (zero), O (capital o), 1 (one), l (lowercase L) and I (capital i), across all character sets at once. The pool shrinks accordingly, from 89 to 84 characters when all four types are ticked. It helps when the password has to be copied by hand or read out loud.

Why does every password contain upper case, lower case, digits and symbols?

Each character type you tick is guaranteed to appear at least once, and the positions are then shuffled at random, so the result meets site rules like "must contain upper case, lower case and a digit". Untick any type you do not want; at least one must stay ticked, otherwise you get "Check at least one character set". The length range is 4 to 128 and up to 100 passwords are generated at once; out-of-range numbers are changed to the nearest limit automatically.

Are generated passwords saved, and why do they change whenever I change an option?

They are not saved. Once you refresh or close the page they cannot be recovered, so copy them into a password manager yourself. Changing the length, the count or the ticked character sets immediately generates a fresh batch, so set the options first and copy the result afterwards.

Which UUID version is this, and can it repeat?

Only UUID v4, the random kind, is generated; there is no v1, v7 or other version. It uses the browser's crypto.randomUUID when available, and otherwise builds a v4 itself from secure random numbers. Given the random bits in a v4, the chance of a repeat is negligible in normal use. Uppercase and removing hyphens only change the display format, not the content.

What should I do about "This browser doesn't support secure random numbers"?

Switch to a newer browser. The page needs crypto.getRandomValues, and without it the page refuses to generate anything rather than fall back to an insecure source like Math.random. Recent versions of Chrome, Safari, Firefox and Edge all support it, so this message usually means a very old browser.