Skip to main content
ponderloop

Password Generator: Create a Strong, Random Password

A strong password is long and random. This generator makes a 20-character password from letters, numbers and symbols (128 bits of entropy, beyond any guessing attack), or a passphrase of 6 random words that is easier to type and remember. It runs on your device with your browser’s cryptographic random number generator; nothing is sent or saved.

Updated Runs in your browser: nothing you enter is uploadedHow this tool works

Example password: do not use

Made on your device

vT7#qL2!mZ9$kR4&wX8p

This example is printed in the page itself, so anyone can see it: never use it. With JavaScript on, the page makes you a new one on this device.

Strength: Strong (4 of 4)

128 bits of entropy

Online, rate-limited (100 guesses an hour)
longer than the universe has existed
Stolen database, slow hash such as bcrypt (10,000 a second)
longer than the universe has existed
Stolen database, fast hash such as unsalted SHA-1 (10 billion a second)
longer than the universe has existed
Type
20 characters

8 to 64

Characters

Generated with your browser’s Web Crypto random number generator. The password is never sent, saved or logged: it exists only on this page until you close it. After pasting it into your password manager, copy something else to clear your clipboard.

Password strength by length and character types

Entropy = length × log2(number of possible characters); every extra bit doubles the guesses. “All four types” is this generator’s 87 characters (26 + 26 + 10 + 25 symbols); requiring one of each type costs less than 1 bit. Ratings use the same scale as the strength checker.
LengthNumbers only (10)Lowercase (26)Upper and lowercase (52)Letters and numbers (62)All four types (87)
8 characters26 bits · Weak37 bits · Fair45 bits · Fair47 bits · Good51 bits · Good
10 characters33 bits · Fair47 bits · Good57 bits · Good59 bits · Good64 bits · Strong
12 characters39 bits · Fair56 bits · Good68 bits · Strong71 bits · Strong77 bits · Strong
14 characters46 bits · Good65 bits · Strong79 bits · Strong83 bits · Strong90 bits · Strong
16 characters53 bits · Good75 bits · Strong91 bits · Strong95 bits · Strong103 bits · Strong
20 characters66 bits · Strong94 bits · Strong114 bits · Strong119 bits · Strong128 bits · Strong
24 characters79 bits · Strong112 bits · Strong136 bits · Strong142 bits · Strong154 bits · Strong
32 characters106 bits · Strong150 bits · Strong182 bits · Strong190 bits · Strong206 bits · Strong
64 characters212 bits · Strong300 bits · Strong364 bits · Strong381 bits · Strong412 bits · Strong

Passphrase strength by number of words

Each word is picked at random from this generator’s 2,048-word list (11 bits a word). “Add a number” puts one random digit after one random word. For comparison, dice-generated passphrases from a 7,776-word list get 12.9 bits a word. Times are to try every combination.
WordsThis generatorWith a number added7,776-word listTime at 10 billion guesses a second
4 words44 bits · Fair49 bits51 bits29 minutes
5 words55 bits · Good60 bits64 bits1 month
6 words66 bits · Strong71 bits77 bits234 years
7 words77 bits · Strong83 bits90 bits479 thousand years
8 words88 bits · Strong94 bits103 bits981 million years

How to create a strong password

  1. Pick a password or a passphrase. Use a random password for accounts your password manager fills in for you, and a passphrase for the few you have to type or remember, such as the password manager itself or your computer login.
  2. Set the length. Use 16 or more characters for a random password, or 5 or more words for a passphrase. The strength bar, bits and crack times update as you change the settings.
  3. Match the site’s rules. If a site rejects symbols or caps the length, turn Symbols off or shorten the password, and add a couple of characters to make up for anything you turned off.
  4. Copy it into your password manager. Press Copy, paste the password into your password manager or the sign-up form, then copy something else to clear your clipboard. Use each password for one account only.

Frequently asked questions

How long should a password be?
At least 15 characters for a password used on its own, and at least 8 if it is one of two factors: that is the minimum in NIST’s current digital identity guidelines (SP 800-63B-4), which also tell sites to accept passwords of 64 characters or more and not to force mixes of character types. A random password of 16 to 20 characters from this generator is plenty; for a passphrase, use 5 or more random words.
Are passphrases more secure?
Not automatically: strength comes from how many equally likely choices there are, not from the format. A random 6-word passphrase from this generator has 66 bits (71 bits with the added number), less than a random 16-character password (103 bits), but it is much easier to type and remember. The words must be picked at random: a phrase you choose, such as a song lyric, is far weaker. Use passphrases where you have to type or remember, and random passwords everywhere else.
Is this generator safe to use?
Yes. The password is made in your browser with the Web Crypto API’s cryptographically secure random number generator (crypto.getRandomValues), using rejection sampling so every character is equally likely. It is never sent to a server, saved in your browser or included in analytics; once the page has loaded it works offline. As with any password tool, use it on a device you trust.
What is a strong password example?
Something like vT7#qL2!mZ9$kR4&wX8p: 20 random letters, numbers and symbols, about 128 bits. But never use a password you have seen published anywhere, including that one, because attackers add published examples to their lists. Generate your own and keep it in a password manager.
What does “bits of entropy” mean?
It counts how many equally likely passwords your settings can produce: n bits means 2 to the power n possibilities, and each extra bit doubles an attacker’s work. It measures the method, not one password, and assumes the attacker knows your settings, which is the safe assumption.
Should a password include symbols?
They help a little: going from letters and numbers (62 characters) to all four types (87) adds about 0.5 bits per character. Length helps more. If a site rejects symbols, turn them off and add 2 characters to make up the difference.

How it works

Each character or word is chosen with crypto.getRandomValues. To avoid modulo bias, a random 32-bit number at or above the largest multiple of the alphabet size is thrown away and drawn again (rejection sampling), so every choice is equally likely. With “At least one of each chosen type” on, a whole password that is missing a type is thrown away and drawn again rather than patched, which keeps every qualifying password equally likely. Entropy is log2 of the number of passwords the settings can produce; for the one-of-each rule that number is counted exactly by inclusion–exclusion. Passphrases use a list of 2,048 common English words of 3 to 8 letters written for this site, so each word adds 11 bits; “Add a number” puts one random digit after one random word; capitals and the separator add nothing because they follow your settings. The strength rating uses the same guesses-based 0–4 scale as this site’s password strength checker, with guesses = 2^bits. Crack times are the time to try every combination at 100 guesses an hour (a login page that limits attempts), 10,000 a second (a stolen database hashed with a slow algorithm such as bcrypt) and 10 billion a second (a fast, unsalted hash on graphics cards). Nothing you generate is sent, stored or logged.

Sources

All toolsHome & DIY calculators