Skip to content

Password generator

Strong, random passwords, created in your browser. Nothing you generate is sent or stored.

Your new password

Very strong. Guessing it would take trillions of years, even for a rig trying 100 billion passwords a second.

Entropy
129 bits
Characters
20
Possible characters per position
88
20 characters
Characters

How it works

What makes a password strong?

A strong password is one an attacker can't guess, even with a computer trying billions of combinations a second. Three things decide that: length, randomness and uniqueness.

  • Length matters most. Every extra character multiplies the number of possible passwords by the size of the character set, so a 20-character password isn't a bit stronger than a 10-character one, it is billions of billions of times stronger.
  • Randomness is what makes the length count. "Summer2024!" is 11 characters long but follows a pattern attackers try first. A password picked by a secure random generator has no pattern to exploit.
  • Uniqueness protects you when a website is breached. Attackers try leaked email and password pairs on other sites within hours, so a reused password is only as safe as the weakest site you used it on. If one of yours shows up in a breach, here is what to do about a leaked or compromised password.

How this generator works

PwdForge uses your browser's crypto.getRandomValues(), the cryptographically secure random number generator also used for encryption keys. Characters are picked with rejection sampling, so every character is exactly as likely as every other, with no bias towards the start of the alphabet.

The password is created on your device and never leaves it. There is no server involved, nothing is logged, and closing the page erases it. That is also why the page works offline once it has loaded.

How long should a password be?

The table shows how long it would take, on average, to brute-force a random password using all four character types, assuming a well-equipped attacker trying 100 billion guesses a second against a leaked password database.

LengthEntropyTime to crack
8 characters52 bitsAbout 5 hours
10 characters65 bitsAbout 4 years
12 characters78 bitsAbout 34,000 years
16 characters103 bitsTrillions of years
20 characters129 bitsTrillions of years

Online attacks, where someone types guesses into a login form, are far slower because sites limit attempts. The real danger is a breach: once a site's password database leaks, attackers can guess offline at full speed. A 16-character random password stays safe even then.

Passwords that meet a site's rules

Many sites ask for at least one uppercase letter, one lowercase letter, one number and one symbol. With all four types ticked, every password PwdForge makes contains at least one of each, so it passes those rules the first time.

It uses these 26 symbols: ! # $ % & ( ) * + , - . / : ; = ? @ [ ] ^ _ { | } ~

It leaves out spaces, quotes, the backtick, the backslash and angle brackets, because those are the characters some sites reject or mangle: " ' < > \ `

  • No symbols allowed? Untick Symbols and make the password two or three characters longer. 18 letters and numbers are as strong as 16 characters with symbols.
  • A maximum length? Pick it with the buttons under the length slider, or slide to the exact number.
  • Typing it from a screen? Tick "Avoid ambiguous characters" to leave out characters that are easy to mix up, such as I, l and 1, or O and 0.

NIST's digital identity guidelines say sites should accept every printable character and the space, and should not demand a mix of character types at all. Until every site follows them, these settings get you past the rules and keep the password strong.

Keep your passwords in a password manager

Nobody can remember dozens of random passwords, and you shouldn't try. A password manager stores them encrypted, fills them in for you and warns you about reused or leaked passwords. Most browsers and phones include one, but it works best within its own brand. A dedicated app works the same in every browser and on every device. Our guide explains how password managers work and why the company behind one can’t read your vault. Protect it with a strong, memorable passphrase and turn on two-factor authentication.

For more practical advice, read how to create a strong password.

Frequently asked questions

Is it safe to use an online password generator?

It is safe when the password is created on your own device and never sent anywhere, which is how PwdForge works. The password is generated by your browser's cryptographically secure random number generator and exists only on this page until you copy it.

How long should my password be?

For accounts that matter, use at least 16 random characters; 20 or more is better and costs you nothing when a password manager fills it in. Length adds far more strength than swapping letters for symbols.

Do I need symbols in my password?

Symbols make each character harder to guess, but adding a few extra characters does the same job. Keep symbols on unless a site rejects them; if it does, turn them off and add four or five characters instead.

How do I make a password without special characters?

Untick Symbols, and PwdForge makes the password from letters and numbers only. Make it a little longer to make up for it: 18 letters and numbers are as strong as 16 characters with symbols. If a site allows lowercase letters only, 22 of them are as strong.

Which special characters can I use in a password?

PwdForge uses these 26 symbols: ! # $ % & ( ) * + , - . / : ; = ? @ [ ] ^ _ { | } ~. It leaves out quotes, the backtick, the backslash, angle brackets and spaces (" ' < > \ `), because some sites reject or mangle them. NIST's guidelines say sites should accept every printable character and the space, but if a site only allows a few symbols, turn Symbols off and make the password two or three characters longer instead.

What does "bits of entropy" mean?

Entropy measures how many guesses an attacker would need, as a power of two. A password with 80 bits of entropy has 2^80 possibilities. Every extra bit doubles the work, so 80 bits is a million times harder to crack than 60.

Why does the password include at least one of each character type?

Many sites require at least one number, one capital letter and so on. PwdForge always includes one character from every type you select, then shuffles the password so those characters are not in predictable places.

Should I change my passwords regularly?

Current guidance from security agencies such as NIST and the UK NCSC is no: forced regular changes lead to weaker passwords. Change a password when you suspect it has leaked, and use a unique password for every account.

How do I remember a random password?

You don't have to. Store it in a password manager, which fills it in for you. For the few passwords you do need to type from memory, such as the password manager itself, use a passphrase made of random words.