Twenty characters is a good default; longer is better and harder to type.
2
Choose the character sets
Lowercase, uppercase, digits and symbols, with an option to drop look-alikes.
3
Copy the passwords
Each one contains at least one character from every set you selected.
Why Math.random is not enough
Math.random is designed to be fast and repeatable, not unpredictable. Its output can be predicted from a few samples in some engines, which is fine for a game and unacceptable for a password. This page uses the browser's cryptographic generator, the same source used for encryption keys.
Characters are picked with rejection sampling rather than a modulo of a random integer, because modulo biases the first characters of the alphabet when the range does not divide evenly. The bias is small and real, and it is exactly the kind of detail that separates a generator from a random-looking string.
Entropy in plain terms
Entropy measures how many guesses an attacker needs. A password of length L drawn from an alphabet of size A has about L × log₂(A) bits. Each extra bit doubles the work. Twenty characters from a 70-character alphabet is about 122 bits, which is far beyond any practical attack.
Length beats complexity. A 20-character lowercase-only password has more entropy than an 8-character one with every symbol, and it is easier to type. The figure shown here is the theoretical maximum for the settings; patterns inside the generated string are random, so it is also the real figure.
Copying and storing
The password is shown in the page and copied only when you press Copy. It is not stored, not logged, and not sent anywhere — reload and it is gone. That also means you must store it before you leave: use a password manager, not a note in a chat.
For a password you have to type on a phone or a TV, a passphrase of four or five random words is easier and still strong. This generator makes random characters, not words. To check something you already have, use the strength checker; for a hash to store, the hash generator is the wrong tool — passwords need a slow, salted hash like Argon2id or bcrypt.
Frequently asked questions
Are the passwords saved?No. They exist only in the page until you reload or generate again.How long should a password be?Sixteen characters or more for anything important. Twenty is a comfortable default.Should I use symbols?They add alphabet size, but length matters more. Symbols can be a problem on some keyboards and forms.What are look-alike characters?0 and O, 1 and l and I. Removing them makes a password easier to read aloud or type from a screen.Are these truly random?They come from the browser's cryptographic generator with rejection sampling, which is the right source for passwords.Why does entropy change with the options?Entropy depends on the length and on how many possible characters each position has.