Strong Password Generator: Random & Secure

Create a strong, random password or passphrase in seconds. Choose the length and character types, check the strength and crack time, then copy it. Everything runs in your browser, and nothing is sent anywhere.

Generated on your device with crypto.getRandomValues. Nothing is sent or stored. Use a password manager and a different password for every account.

How to use the strong password generator

This password generator creates random passwords in your browser. Pick your settings, press generate, and copy the result.

  1. Set the length with the slider or box. You can choose anything from 8 to 128 characters, and the default is 16.
  2. Tick the character types you want: uppercase, lowercase, numbers and symbols.
  3. Optionally turn on exclude similar characters (I, l, 1, O, 0) or exclude ambiguous symbols if you will type the password by hand.
  4. Turn on require at least one of each selected type if a site insists on a mix of character types.
  5. Press generate, check the strength meter, then use the copy button. You can also generate 5 passwords at once and pick one.

Prefer something you can remember? Switch to passphrase mode. It joins 4 to 8 random words from a built-in list. You can choose the separator, capitalize each word, and add a number.

How a random password is built and scored

The tool uses your browser's crypto.getRandomValues function, which is designed for security. It picks each character without bias, so every character in the pool is equally likely. Nothing is sent anywhere, and the password is created on your device.

Strength is measured as entropy, in bits:

entropy = log2(pool size) × length

The pool is the number of different characters the generator can choose from. Each extra bit doubles the number of possible passwords. The crack time shown is an estimate that assumes an attacker can make 10^10 (10 billion) guesses per second.

Worked example

Say you use uppercase, lowercase and numbers with length 16. The pool is 26 + 26 + 10 = 62 characters.

  • Entropy: log2(62) × 16 = 5.954 × 16 = 95.27 bits
  • Possible passwords: 62^16, about 4.77 × 10^28
  • Searching every one at 10^10 guesses per second takes about 4.77 × 10^18 seconds, or roughly 151 billion years

Now shorten it to 8 characters from the same pool. Entropy drops to 47.63 bits, and the same search takes about 6 hours. Length matters more than anything else you can change.

How long should a strong password be?

Every extra character from a 62-character pool adds about 5.95 bits. That makes length the cheapest way to add strength. Here is how the same 62-character pool scales at the same 10^10 guesses per second, searching the full space:

LengthEntropyTime to try every combination
847.63 bitsabout 6 hours
1271.45 bitsabout 10,200 years
1695.27 bitsabout 151 billion years

For most accounts, 16 characters with a mix of types is a solid default. Use 20 or more for a password manager's master password, email, or anything that protects other accounts. These figures describe random guessing only. They do not protect you if a site leaks your password or you type it into a fake login page.

Random password or passphrase?

A random string is the best choice when a password manager fills it in for you. You never have to read or type it, so it can be long and messy.

A passphrase is better when you have to remember it, such as a device login or the master password for your manager. Use at least 4 words and keep them random. Words you pick yourself, or a famous quote, are much easier to guess.

Tips for safer passwords

  • Use a password manager. It stores a different long password for every site, so you only remember one.
  • Never reuse a password. When one site is breached, attackers try the same login everywhere else.
  • Turn on two-factor authentication (2FA) for email, banking and social accounts.
  • Skip personal details. Names, birthdays and pet names are the first things guessed.
  • Do not post or email passwords. To share a Wi-Fi login with guests, a QR code generator lets them scan it instead.
  • Change a password if a service reports a breach, and generate a fresh one rather than editing the old one.

Looking for more quick utilities? Try the unit converter next.

Frequently asked questions

Is this password generator safe to use?

Yes. Passwords are created in your browser using crypto.getRandomValues, a secure random source, and they are never sent to a server or stored. The tool is free with no sign-up. Still, copy the password straight into your password manager and close the page when you finish.

How long should my password be?

Use at least 16 characters for most accounts. The tool defaults to 16 and lets you choose from 8 to 128. For your email, your password manager's master password, or anything that guards other accounts, use 20 or more. Longer random passwords are far harder to guess than short complex ones.

What does entropy mean in the strength meter?

Entropy measures how unpredictable a password is, in bits. The tool calculates it as log2(pool size) times length. Every extra bit doubles the number of possible passwords. Higher is better, and the strength meter and crack time estimate are both based on this number.

Should I use symbols in my password?

Symbols enlarge the pool of characters, which raises entropy per character, but length helps more. Some sites reject certain symbols, so the tool has an option to exclude ambiguous ones. If a site limits symbols, simply add a few more characters instead.

Why exclude similar characters like I, l, 1, O and 0?

Those characters look alike in many fonts, which causes mistakes when you read or type a password by hand. Excluding them makes the password easier to copy from a screen or paper. It slightly shrinks the pool, so add a character or two to make up for it.

What is a passphrase and when should I use one?

A passphrase is several random words joined together, such as four to eight words with a separator. It is easier to remember and type than random characters. Use one for a device login or master password, and a random string for everything your manager stores.

Can I generate more than one password at once?

Yes. The tool can generate 5 passwords at the same time, so you can pick one you like or choose one that avoids confusing characters. Each uses your current settings, and you can copy any of them with the copy button. Press generate again for a new set.

How accurate is the crack time estimate?

It is a rough guide. The tool assumes 10 billion guesses per second, and real attackers may be faster or slower depending on how a site stores passwords. The estimate also cannot account for reused passwords, leaks or phishing, so keep every password unique and turn on 2FA.

Related tools