My Tool Studio
Generators

Password Generator

This password generator makes random passwords from 8 to 128 characters, memorable passphrases of 3 to 10 words, and numeric PINs, right in your browser. For random passwords you choose the character types, edit the symbol set, and can drop look-alike characters, awkward symbols or any character a site rejects. Every result shows its strength as entropy in bits with an estimated crack time, and you can spell it out in the NATO alphabet. Need a batch? Set How many to 500 and download TXT or CSV. Randomness comes from crypto.getRandomValues(), and nothing is sent to a server or stored. A typical case: a new router needs a 20 character admin password, the guest Wi-Fi needs a six word passphrase visitors can type, and the phone needs a 6 digit PIN.

Always freeNo sign upRuns in your browser
-
Very strong103 bits. Average crack time more than a billion years at 10 billion guesses per second.

These rules cannot all be met. Turn off No repeated characters, allow more character types, or shorten the password.

Edit to match what a site allows. Letters, digits and spaces are ignored.

1 to 500

Test a password you already use

Checked on this page only. Nothing is sent or stored.

How to use

01

Choose a password, passphrase or PIN

Press Random password for a string of characters, Memorable passphrase for random words, or PIN for digits only. Passphrases are easier to type and remember, while random passwords pack more strength into fewer characters.

02

Set the rules

For passwords, set the length or tap a preset, tick A-Z, a-z, 0-9 and symbols, and add exclusions such as look-alikes or Begin with a letter. For passphrases, pick words, separator and capitals. For PINs, pick 4 to 12 digits.

03

Check the strength, then copy

Read the bits and average crack time, then press Copy. Set How many above 1 for a list with Copy all, Download TXT and Download CSV. Tick Remember these settings to keep your rules for next time.

Why Password Generator

Password length, entropy and crack time

The figures below use the same formulas the tool shows. They assume a fast offline attack: someone has stolen a database of password hashes stored with a fast hash and tests 10 billion guesses per second on graphics cards. Sites that use slow hashes such as bcrypt or Argon2, or that lock accounts after failed logins, make every row much safer.

Two patterns stand out. Each extra character multiplies the work by the size of the character set, so length beats complexity. And each passphrase word adds about 10.6 bits, a little more than one and a half random characters, which is why passphrases need 6 words or more.

SettingEntropyAverage time at 10 billion guesses per second
6 digit PIN20 bitsLess than a second (safe only behind a lockout)
8 characters, letters and digits48 bitsAbout 3 hours
8 characters, all four types52 bitsAbout 2 days
12 characters, all four types78 bitsAbout 340,000 years
16 characters, all four types103 bitsMore than a billion years
20 characters, all four types129 bitsMore than a billion years
4 word passphrase plus a digit48 bitsAbout 3 hours
6 word passphrase plus a digit69 bitsAbout 1,100 years
8 word passphrase plus a digit91 bitsMore than a billion years

Passphrase, random password or PIN: when to use each

All three are fine when they are long enough and truly random. The real difference is who has to type them, how often, and whether the system locks after wrong guesses.

If you are unsure, use random passwords for everything a password manager can store, and learn one passphrase for the manager itself.

  • Random password: for accounts your password manager fills in, such as shopping sites, forums and work apps. 16 to 20 characters is plenty.
  • Passphrase: for anything you type by hand or from memory, such as a password manager master password, a computer login or a Wi-Fi network.
  • PIN: only for devices and cards that lock after a few wrong tries. Never use a PIN as an online password.
  • Awkward sites: if a site rejects some symbols, edit Symbols to use or tick Exclude ambiguous symbols, and add two characters of length.
  • Never reuse: one breach exposes every account that shares the same password.

Common questions

How long should a password be?
Aim for at least 16 random characters for accounts you care about, and 20 or more for email, banking and your password manager. Length matters more than symbols, because each extra character multiplies the number of guesses. A 16 character password from this tool's full character set has about 103 bits of entropy.
Is an 8 character password safe?
Not against an offline attack. Eight characters using all four character types give about 52 bits, which a cracking rig testing 10 billion guesses per second would find in about 2 days on average. Use 8 characters only where a site forces a short maximum, and turn on two-factor sign-in there.
What is a passphrase, and is it stronger than a random password?
A passphrase is a set of random words, such as Maple-Orbit-Crisp7-Harbor-Lunar-Violin. Each word from this tool's list of about 1,500 words adds about 10.6 bits, so six words plus a digit reach about 69 bits. A 16 character random password is stronger at about 103 bits, but a passphrase is much easier to type and remember.
Are online password generators safe to use?
It depends on where the password is made. This page creates passwords with JavaScript inside your browser tab and never sends them anywhere, so there is nothing to intercept or log. You can test this by loading the page, going offline and generating more. Avoid any generator that builds passwords on its server.
What do the exclude options in the password generator remove?
Exclude look-alikes drops 0, O, o, 1, l, I, i, the pipe, the backtick, both quote marks and ; : . , so a password can be read aloud or typed on a TV. Exclude ambiguous symbols drops brackets, braces, slashes, quotes, the backtick, tilde and < >, which some systems reject. Never use these characters removes anything you type. Each removal lowers the bits a little, and the meter shows by how much.
When should I use the PIN mode instead of a password?
Only for things that ask for digits and lock after a few wrong tries, such as a phone, a SIM card, a door keypad or a bank card. A 6 digit PIN has about 20 bits, which is weak offline but fine behind a lockout. Leave Avoid common PINs on so you never get 1234, 0000, a year or a straight run.
How are the password bits and crack time calculated?
For random passwords, bits add up the log2 of the allowed characters at each position, which drops slightly with Begin with a letter or No repeated characters. For passphrases, bits come from the word list size plus a little for an added digit, symbol or random separator. The crack time is the average at 10 billion guesses per second, assuming the attacker knows your settings.
How do I make a password that is easy to remember but hard to guess?
Use Memorable passphrase with 6 or more words. Random words are far easier to picture and type than random symbols, and the strength comes from the random choice, not from clever swaps like @ for a. Do not replace the words with ones you picked yourself or a favourite quote, since attackers try those first.
Can I generate a list of passwords and download it?
Yes. Set How many to any number from 1 to 500. The list appears under the options with a copy button on each line, plus Copy all, Download TXT with one password per line, and Download CSV with a number column. Treat those files as sensitive and delete them once the passwords are stored safely.
Where does the randomness for each password come from?
It calls crypto.getRandomValues(), which draws from your operating system's cryptographically secure random source. The tool uses rejection sampling, so every allowed character, word or digit is equally likely. Math.random() is not used, because its output is predictable enough to attack.

More Generators tools

View all