Skip to content
Password Generator Lab

Has my password been leaked? How to check safely

How to check if your email or password appeared in a data breach without exposing it, what a “not found” result really means, and what to do if it leaked.

· 6 min read

Key takeaways

  • Checking an email address shows which published breaches included your account; checking a password shows whether that exact password appears in breach data.
  • Have I Been Pwned's Pwned Passwords check sends only the first 5 characters of the password's SHA-1 hash, and the match is made on your device.
  • Our leak check runs only when you press its button, never as you type, and requests padded responses so the response size reveals nothing.
  • “Not found” doesn't prove a password is safe: it may be weak, reused, or exposed in a breach that was never published.
  • If a password leaked, replace it everywhere you used it, starting with email, then check forwarding rules, sign out other sessions and turn on two-factor authentication.

Last reviewed

When a website is breached, its customers' email addresses and passwords often end up in lists that circulate among attackers. Those lists feed automated attacks that try the same email and password on other sites. So it's worth asking two separate questions: was my account caught up in a breach? and is this password known to attackers? Different tools answer each one.

Two different checks

QuestionWhat you enterWhat the answer tells you
Was my account in a breach?Your email addressWhich published breaches included that address, and what kind of data each one exposed.
Has this password leaked?The password (checked privately, see below)Whether that exact password appears in known breach data, from anyone's account, and how often.

The two answers don't substitute for each other. Your email can appear in a breach whose passwords were never cracked, and a password can be "leaked" because someone else chose the same one. Either result is a reason to act.

Checking an email address or account

  • Have I Been Pwned (HIBP): enter an email address on haveibeenpwned.com to see which known breaches it appeared in. Its free "Notify me" service emails you if the address shows up in a future breach.
  • Mozilla Monitor (formerly Firefox Monitor): free breach alerts for your email addresses. Mozilla closed its paid Monitor Plus service in December 2025, but the free breach monitoring continues.
  • Google Password Checkup: at passwords.google.com, it reviews the passwords saved in Google Password Manager and flags ones that are exposed in breaches, reused or weak. Chrome can also warn you when a saved password is compromised in a data breach.
  • Apple Passwords: in the Passwords app, the Security section lists weak or reused passwords and, with Detect Compromised Passwords switched on, ones that appear in known data leaks.
  • Your password manager: most dedicated password managers include a similar breach report for the passwords they store.

The tools built into password managers are the easiest way to cover everything at once, because they already know every password you've saved. See do you need a password manager?

Checking a password without revealing it

Checking a password is trickier. You want to compare it against billions of breached records without giving it to anyone. Have I Been Pwned's Pwned Passwords service solves this with a technique called k-anonymity:

  1. Your device computes the password's SHA-1 hash: a 40-character fingerprint that is always the same for the same password but can't simply be reversed.
  2. Only the first 5 characters of that hash are sent to the service. There are 1,048,576 possible prefixes, and each one is shared by an enormous number of possible passwords.
  3. The service replies with the remaining 35 characters of every breached hash that starts with that prefix, typically several hundred of them, each with a count of how many times it has been seen.
  4. Your device looks for its own hash in that list. The match, or lack of one, never leaves your device.

HIBP also supports padding: when the request includes an Add-Padding: true header, the reply is filled out to between 800 and 1,000 rows with dummy entries whose count is zero. That stops anyone watching the encrypted traffic from guessing the prefix from the size of the response.

How our leak check uses it

The password strength checker includes an optional leak check built exactly this way:

  • It runs only when you press "Check for leaks", never as you type. HIBP warns that looking up a password on every keystroke could let someone observing the requests work out the password, because each prefix narrows it down further.
  • Your browser computes the SHA-1 hash with the built-in Web Crypto API and sends only the 5-character prefix to api.pwnedpasswords.com, with padding requested, no cookies and no referrer.
  • The comparison happens on your device. Padding rows are ignored, and you see either how many times the password has been seen in breaches or "not found."
  • HIBP and its network provider, Cloudflare, see your IP address and the 5-character prefix. They never see your password or its full hash. We receive nothing, because the site has no server-side code that could.

The strength analysis on the same page works entirely offline. If you'd rather nothing leave your device at all, don't press the button. Our privacy policy describes the same check.

Never type a password into a site that sends it in full

A "password checker" that uploads what you type learns your password, and you have no way to know what it does with it afterwards. Even an honest service could log it by accident. Before using any checker, look for a clear explanation that it hashes the password on your device and sends only a short prefix, as Pwned Passwords does. If a tool doesn't explain how it works, don't give it a real password.

Even with k-anonymity, a web page can only be as trustworthy as its code. A malicious page, a compromised device or a harmful browser extension could read what you type before any hashing happens. That's why the built-in checks in your browser or password manager, which already hold your passwords, are often the simplest choice.

What "not found" means, and what it doesn't

A "not found" result means only that the exact password isn't in HIBP's data. It doesn't mean:

  • That the password is strong. HIBP itself points out that not being indexed doesn't make a password good. A short or predictable password can be guessed whether or not it has leaked.
  • That it has never leaked. Many breaches are never published, or only reach collections like HIBP months or years later.
  • That it isn't reused. The check can't tell whether you use the same password on several accounts. If one of those sites is breached later, the others are exposed too.

A good password is long, random and unique to one account. Our password generator creates one in your browser.

What to do if a password has leaked

  1. Stop using it everywhere. Change it on every account where you used it, not just the one that was breached. Attackers try leaked passwords on other sites, and they try small variations of them, so replace it with a new random password rather than tweaking the old one.
  2. Start with your email account. Whoever controls your email can reset most of your other passwords. Then move on to banking, payments, your phone account and your Apple, Google or Microsoft account.
  3. Check email forwarding rules and filters. Attackers sometimes set up rules that quietly forward or hide your messages, including password-reset emails. The UK National Cyber Security Centre suggests checking these before you change your passwords.
  4. Sign out other sessions and devices. Most services let you review where you're signed in and log everything else out after a password change.
  5. Turn on two-factor authentication, preferably a passkey or security key. A leaked password alone is then no longer enough. See two-factor authentication explained.
  6. Watch for follow-up scams. Breach news is often followed by convincing phishing messages. Contact organizations through their official website, not through links in a message.

A password manager makes all of this much easier. It can generate a unique password for every account, and it tells you which accounts share the leaked one.

Sources

Keep reading