SECURITY

Password Generator

Make a strong random password, or a passphrase of random words that is easier to type: pick the length and which characters to use, and copy it. The password is created in your browser with its cryptographic random generator, and it is never sent to our server, stored or put in the address bar.

Runs in your browser. Nothing you enter is sent to a server.

Your password —

4 to 128 characters. 16 or more is a good default.
Characters
Some sites accept only a few symbols. Keep just the ones they allow.
Rules
Advertisements

How strong is it?

A random password's strength depends only on its length and on how many different characters it can use. The table shows the bits of entropy and how long an offline attack at 100 billion guesses per second would need, on average, to find it.

LengthCharactersEntropyTime to guess
8Letters, digits, symbols (87)52 bitsabout 5 hours
12Letters and digits (62)71 bitsabout 500 years
12Letters, digits, symbols (87)77 bitsabout 30,000 years
16Letters, digits, symbols (87)103 bitsmore than a million years
6Digits only (PIN)20 bitsless than a second

A PIN is only safe where the system locks after a few wrong tries, such as a bank card or a phone. Never use one where an attacker can guess offline.

Passphrases: random words

Choose "Words (passphrase)" for a password you have to type or remember, such as the main password of a password manager or a Wi-Fi password read aloud. Each word is drawn at random from the EFF large word list of 7,776 short, common English words (CC BY 3.0, Electronic Frontier Foundation). Strength comes from the random choice, not from the words being unusual.

WordsExampleEntropy
4rumble-oyster-plaza-unhappy52 bits
5dimmer-clever-gravity-rocket-snout65 bits
6tulip-mosaic-rebel-candle-otter-sprout78 bits
7flask-gallon-yodel-mantis-crust-ivory-blend90 bits

Capitalising every word does not add strength, since an attacker can assume it; it only helps with sites that demand capitals. "Add a digit" adds a little, because both the digit and its place are random.

How the password is made

  • The random numbers come from crypto.getRandomValues, the browser's cryptographic random generator. Math.random is never used.
  • Each character is chosen without modulo bias: numbers that would favour some characters are thrown away and drawn again, so every character is equally likely.
  • With "at least one of each ticked kind", one character of each kind is placed first and the whole password is then shuffled, so you cannot tell where they are.
  • Nothing is sent anywhere. The password is not in the address bar, so it does not end up in your browser history. Only your settings are remembered on this device.

Good habits

  • Use a different password for every account. A leak at one site then cannot open the others.
  • Keep them in a password manager instead of a note or a spreadsheet.
  • Turn on two-step verification where you can. It protects you even if a password leaks.

Making a password in code

WhereCommand
Shell (OpenSSL)openssl rand -base64 18
Pythonsecrets.token_urlsafe(18)
Node.jscrypto.randomBytes(18).toString('base64url')
PHPbin2hex(random_bytes(16))
Gorand.Text() from crypto/rand (Go 1.24+)

Questions

Is it safe to use a password made on a website?

This page makes the password with JavaScript in your own browser, using crypto.getRandomValues, the same random generator browsers use for encryption. It is never sent to our server, saved, or put in the URL. Only your choices, such as the length, are remembered on this device.

How long should a password be?

For accounts, 16 random characters from letters, digits and symbols is far beyond what can be guessed. For a password you must type often, 12 is still strong when it is random. What matters most is that each account has its own password, kept in a password manager.

What does "bits of entropy" mean?

It measures how many passwords the generator could have made with your settings: each extra bit doubles the number. A random 16-character password from 90 characters has about 104 bits. Around 70 bits is enough against offline guessing with today's hardware.

Why avoid look-alike characters?

I, l, 1 and | look alike in many fonts, as do O, 0 and o. Leave them out when a password will be read from paper or a screen and typed by hand, such as a Wi-Fi password. The password gets slightly weaker, so add a character or two.

Why does a site reject some symbols?

Some systems only allow certain symbols, or none. Edit "Symbols to use" to keep only the ones the site accepts, or untick Symbols and make the password longer instead.

Is Math.random good enough for passwords?

No. Math.random is fast but not designed to be unpredictable, and its output can sometimes be reconstructed. This generator uses crypto.getRandomValues and picks characters without modulo bias, so every character is equally likely.

What is a passphrase?

A password made of random words, such as tulip-mosaic-rebel-candle-otter-sprout. Each word is picked at random from 7,776, so six words give about 78 bits, stronger than 12 random characters, yet they are far easier to remember and type. The words come from the EFF large word list.

Support this site

The tools are free and need no account. If one saved you time, a small donation helps keep them running.

Want a tool or feature? Suggest it for free, or donate and write your request in the message. Supporters' requests are looked at first.