BcryptGenerator.org

Password Leak Checker

Has your password been leaked? Check it against the Pwned Passwords database of passwords exposed in real data breaches. Your password is never sent: your browser shares only the first 5 characters of its hash, and the match happens on your device.

Breach data from Have I Been Pwned's Pwned Passwords. Nothing you type is stored or logged.

How it checks your password without sending it

This checker uses a technique called k-anonymity, the same one password managers and browsers use for breach alerts:

  1. Your browser turns the password into a SHA-1 hash. For password that's 5BAA61E4C9B93F3F0682250B6CF8331B7EE68FD8.
  2. It sends only the first 5 characters, 5BAA6, to the Pwned Passwords database.
  3. The database replies with every leaked hash that starts with those 5 characters (often hundreds), plus random padding so the reply size reveals nothing.
  4. Your browser looks for the rest of your hash in that list. The database never learns which entry, if any, was yours.

How often common passwords appear in breaches

We checked a few well-known passwords with this tool. The numbers are how many times each one appears across leaked password lists:

PasswordTimes seen in breaches
123456210,463,629
password52,373,976
P@ssw0rd6,421,554
correct horse battery staple391

Swapping letters for symbols doesn't help: P@ssw0rd has been seen millions of times. Even correct horse battery staple, the famous example of a strong passphrase, has leaked hundreds of times, because so many people copied it. A good password is random and unique to you.

What to do if your password was leaked

  • Change it everywhere you used it, starting with your email account, which can reset all your other passwords.
  • Use a different password for every site. Leaked passwords are tried on other sites automatically (credential stuffing), so reuse turns one breach into many.
  • Let a password manager remember them, and create new ones with the password generator.
  • Turn on two-factor authentication, so a leaked password alone isn't enough to sign in.

For developers: block breached passwords at sign-up

NIST's SP 800-63B guidelines require services to check new passwords against lists of compromised passwords. The same range API works from any backend, with no API key:

const hash = crypto.createHash('sha1').update(password).digest('hex').toUpperCase()
const res = await fetch('https://api.pwnedpasswords.com/range/' + hash.slice(0, 5), {
  headers: { 'Add-Padding': 'true' },
})
const line = (await res.text()).split('\n').find(l => l.startsWith(hash.slice(5)))
const timesSeen = line ? Number(line.split(':')[1]) : 0

Then store the password with a slow hash such as bcrypt, never SHA-1. Try the bcrypt generator, or read how many bcrypt rounds to use.

Password Leak Checker FAQ

Is it safe to type my real password here?+

Your password never leaves your browser. It is hashed with SHA-1 on your device and only the first 5 of the hash's 40 characters are sent, which matches hundreds of different hashes. You can see exactly what was sent under "What was sent to check this?" after each check. Even so, if you prefer, check a password you no longer use, or one that differs by a character.

My password was found. What should I do?+

Stop using it. Change it on every site where you use it, starting with your email account, because email can reset everything else. Give each site its own long random password stored in a password manager, and turn on two-factor authentication where you can.

Does "not found" mean my password is safe?+

It means it isn't in any breach this database knows about, which is good. It doesn't mean it is strong: a short password, a name plus a year, or a keyboard pattern can still be guessed quickly. Check it with the password strength checker too, and never reuse it.

Where does the breach data come from?+

From Pwned Passwords, part of Have I Been Pwned, the breach notification service run by security researcher Troy Hunt. It contains passwords exposed in real data breaches, along with how many times each one was seen.

Does this check whether my email address was in a breach?+

No. This tool checks passwords only. To see which breaches included your email address, search for it on haveibeenpwned.com.

Why does the check use SHA-1 if SHA-1 is broken?+

Here SHA-1 is only a lookup key that lets your browser and the database find the same entry without sharing the password. Its weaknesses matter for signatures and certificates, not for this. It must never be used to store passwords; websites should use bcrypt or Argon2id for that.