Password Generator

Choose a length and the characters to use, and get strong random passwords made on your own device. Copy one, or make several at once.

Characters to use

Strength: Very strong

103.6 bits of entropy

Far beyond any brute-force attack, even with the password file in hand.

Average time to brute-force at a trillion guesses a second: about 246 billion years.

Made on this device with crypto.getRandomValues. Nothing is sent, saved or logged, and the passwords are gone when you leave the page.

Last reviewed:

What NIST's password guidance says now

The US National Institute of Standards and Technology published the fourth revision of its digital identity guidelines in July 2025. SP 800-63B-4 is written for the organizations that check passwords, not the people who choose them, but its rules say a lot about what makes a password strong. The short version: length matters, composition rules don't, and passwords shouldn't expire on a timer.

  • Length: at least 15 characters when a password is the only thing protecting an account, and at least 8 when it's one part of multi-factor sign-in. Sites should accept passwords of 64 characters or more.
  • No composition rules: sites shall not demand mixtures of character types, such as one capital, one number and one symbol.
  • No scheduled changes: sites shall not make you change a password periodically, only when there's evidence it has been compromised.
  • Blocklists instead: new passwords are compared against a blocklist of values known to be weak or leaked.
  • Password managers welcome: sites shall allow password managers and autofill, and should let you paste.

Why length beats complexity

NIST's appendix on password strength calls length a primary factor and notes that people react to composition rules in predictable ways. Told to add a capital and a digit, password becomes Password1; add a symbol requirement and it becomes Password1!. Attackers build those habits into their guessing, so the rules add far less strength than they appear to.

Randomly generated passwords have no habits to exploit. Each character adds log2 of the alphabet size in bits of entropy: about 4.7 bits for a lowercase letter and about 6.5 for a character drawn from all four sets. Adding characters therefore helps more than adding character types.

Random passwords, weakest first (average time at a trillion guesses a second)
PasswordEntropyAverage time to brute-force
8 random digits26.6 bitsUnder a second
8 characters, all four sets50.9 bitsAbout 17 minutes
4 random words from a 7,776-word list51.7 bitsAbout 30 minutes
12 lowercase letters56.4 bitsAbout 13 hours
16 lowercase letters75.2 bitsAbout 690 years
12 characters, all four sets77.4 bitsAbout 3,200 years
20 lowercase letters94.0 bitsAbout 320 million years
16 characters, all four sets103.6 bitsAbout 250 billion years

Twenty lowercase letters beat twelve characters that use every kind of symbol. So if a site rejects symbols, or you'll have to type the password on a TV remote, switch the extra sets off and add length instead.

How each character is picked without bias

Every character comes from crypto.getRandomValues, the browser's cryptographically secure random source, so nothing is generated on a server. Turning random numbers into characters fairly takes one more step. The obvious shortcut, dividing a random number by the alphabet size and keeping the remainder, favors some characters. With a random byte (0 to 255) and 90 characters, 256 = 2 × 90 + 76, so the first 76 characters would turn up 3 times in 256 and the other 14 only twice.

This generator draws 32-bit numbers instead and throws away any value at or above the largest multiple of the alphabet size, then draws again. What's left divides evenly, so every character is exactly as likely as any other. Redraws are rare: for 90 characters, only 76 of the 4,294,967,296 possible values are discarded.

Requiring at least one character from each set you tick gets the same care. Planting one of each and shuffling would make some passwords likelier than others, so a password that misses a set is thrown away and redrawn whole. The entropy shown is counted exactly over the passwords that remain, which is why it sits a fraction of a bit below the simple length × log2(alphabet) figure.

Entropy (bits) = log2(number of possible passwords) ≈ length × log2(alphabet size)
Alphabet size = how many different characters can appear (90 with all four sets)
The approximation is exact when only one set is ticked

Avoiding look-alikes removes I, l, 1, |, O and 0, shrinking the full alphabet from 90 characters to 84. That costs about 0.1 bit per character, roughly 1.6 bits on a 16-character password, which is worth it if you'll ever read the password aloud or copy it from paper.

Reading the strength rating

The rating comes from entropy alone. Weak means under 50 bits, Fair is 50 to 69, Strong is 70 to 99 and Very strong is 100 or more. The time beside it assumes an attacker testing a trillion guesses a second offline, against a stolen database protected by a fast hash, and it shows the average case, which is half of the full search.

That is pessimistic on purpose. Sites that store passwords with a slow, salted hashing scheme cut the guessing rate enormously, and guessing through a login page is slower still: under NIST's rules, a site must disable the authenticator after no more than 100 failed attempts in a row. Against a login page even a fair password holds up. Strength is for the day a database leaks.

Keeping generated passwords safe

  • Nothing leaves this page. Passwords are made on your device, never sent anywhere, never saved in browser storage and never included in analytics. Reload the page and they're gone.
  • Use a password manager. Long random passwords are hard to remember, which is exactly what managers are for.
  • One password per account. A unique password means a leak at one site can't open your other accounts.
  • Mind the clipboard. A copied password stays on your clipboard until you copy something else, and some systems keep a clipboard history. On a shared computer, copy something harmless afterward.

For other fair draws, the Random Number Generator picks numbers from any range with the same secure source, and the Character Counter checks a passphrase against a site's length limit before you commit to it.

Sources and further reading

How to use it

  1. 1Set the length. 16 characters or more is a good default.
  2. 2Choose lowercase, uppercase, numbers and symbols, and whether to avoid look-alike characters.
  3. 3Press Generate and copy the password you want.

Questions

Is it safe to make a password on a website?

Here, yes. Passwords are made in your browser with crypto.getRandomValues and never leave your device. Nothing is sent, logged or saved, and they're gone when you close the page.

How long should a password be?

NIST's current guidance asks for at least 15 characters when a password is the only thing protecting an account, and at least 8 when it's used with a second factor. Longer is better, and a password manager makes length painless.

What does entropy in bits mean?

It counts how many equally likely passwords your settings can produce, in powers of two. Each extra bit doubles the guesses an attacker needs, and 80 bits or more is far out of reach of brute force.

Also handy: Character Counter, Wi-Fi QR Code Generator, Classroom Timer