Free online tools
English EN, Choose a language

Password generator

Generate strong random passwords in your browser. Choose the length and characters; nothing is sent anywhere.

Edit this if a site rejects some symbols.

Your password

Your passwords appear here.

Passwords are made in your browser and never sent or stored.

How to generate a strong password

  1. The page makes a password as soon as it opens, and a new one whenever you change an option or press Generate new.
  2. Choose the length. Sixteen characters is a good default for most accounts; use 20 or more for anything valuable or for a password manager's master password.
  3. Tick the kinds of characters the site allows. If it rejects some symbols, edit Symbols to use.
  4. Press Copy next to the password and paste it into a password manager or the sign-up form.

The strength line under the result gives the entropy in bits: the number of random choices that would have to be guessed, as a power of two. Each extra bit doubles the work for an attacker.

Why length matters more than symbols

Entropy is the password length times log2 of the number of possible characters. Adding length helps more than adding symbol types. A table of entropy for random passwords from each character set, with the time an attacker would need to try half of all combinations at 10 billion guesses per second:

Characters used8 characters12 characters16 characters20 characters
Digits only (10)27 bits
under a day
40 bits
under a day
53 bits
6 days
66 bits
158 years
Lowercase letters (26)38 bits
under a day
56 bits
55 days
75 bits
69 thousand years
94 bits
32 billion years
Lowercase and digits (36)41 bits
under a day
62 bits
8 years
83 bits
13 million years
103 bits
more than a trillion years
Upper, lower and digits (62)48 bits
under a day
71 bits
5 thousand years
95 bits
76 billion years
119 bits
more than a trillion years
Upper, lower, digits and symbols (85)51 bits
2 days
77 bits
225 thousand years
103 bits
more than a trillion years
128 bits
more than a trillion years

The default character set here has 85 characters, so a random 16-character password has about 103 bits of entropy. An attacker who has stolen a database of fast-hashed passwords can try billions of guesses per second, which is why the table assumes 10 billion per second. Online login forms are far slower, and slow password hashes make guessing slower still, so these are cautious figures. They hold only for passwords that are truly random: a password you make up by hand, or a word with a number on the end, is far weaker than its length suggests.

How the passwords are made

Each character is drawn with crypto.getRandomValues, the cryptographically secure random generator in your browser, and turned into a position in the character list with rejection sampling so that no character is favoured. When you tick several kinds of characters, the tool keeps drawing complete passwords until every selected kind is present; it does not overwrite characters, which would skew the result. That slightly lowers the real entropy for very short passwords, which is why the displayed figure is described as about.

The page makes no network request with your password. It is not saved or logged, and nothing is shared. The tool has no way to know where you use it, so it cannot warn you about a reused password: use a different password for every account.

What to do with a good password

Need random letters for a game or label rather than a password? Use the random letter generator.

Related tools

Password generator FAQ

Is this password generator safe to use?

The passwords are created in your browser with the secure random generator built into it and are never sent anywhere or stored. Nothing about them reaches a server.

How long should my password be?

At least 12 characters for ordinary accounts and 16 or more for important ones. Longer is better; every added character multiplies the guessing work.

What is entropy in bits?

It measures how many equally likely passwords could have been generated, as a power of two. 80 bits means about 2 to the power 80 possibilities. Each bit doubles the number.

Why does a password sometimes not include every kind of character?

It always includes every kind you tick. If you tick only some, such as letters and digits, no symbols are used.

What if a website rejects some symbols?

Edit the Symbols to use box to the ones the site accepts, or untick Symbols and use a longer password with letters and digits instead.

Why avoid look-alike characters?

Characters such as I, l, 1, O and 0 are easy to confuse when you must read or type a password by hand. Avoiding them slightly reduces entropy, which a longer password easily makes up.

Does this tool create passphrases?

No, only random character passwords. A passphrase from random words needs a large word list, which this page does not include.

Missing something in the password generator?Suggest an idea. It takes 20 seconds and we read every one.Suggest an idea

Sends only what you type here, never the text you work with. Your email is used only to reply about this idea.

Free online tools