Check if your password appears in a known breach
The fastest way to know if your password was leaked is to search for it in a breach database. Have I Been Pwned (haveibeenpwned.com) is the most widely used free tool — it holds records from thousands of data breaches going back years. You type your password into the search box, and the site tells you whether that exact password appears in any known breach.
The site does not store your password or log what you search for. It uses a technique called k-anonymity: your password is hashed (converted into a code), only the first part of that code is sent to the server, and the server returns a list of possible matches for you to check locally on your own device. This means you can search safely without worrying that you are sending your real password over the internet.
If your password shows up in a breach, change it when ready on every account where you use it. If you use the same password in multiple places — which is common but risky — you need to change it everywhere, because an attacker who has that password will try it on email, banking, social media, and other sites.
Key Takeaways
- Have I Been Pwned lets you search whether your password appears in known breaches without sending your actual password to a server.
- If your password shows up in a breach, change it on every account where you use that password, starting with email and banking.
- A compromised password does not mean your account has been accessed — it means the password exists in a leaked database and attackers have it.
- After changing your password, turn on two-factor authentication on important accounts so a stolen password alone cannot get someone in.
- Reusing passwords across sites is the main reason a breach at one company puts your other accounts at risk.
The difference between a leaked password and a hacked account
A compromised password and a compromised account are not the same thing. Your password can be in a breach database without anyone having actually used it to log into your account yet. Attackers collect millions of passwords from breaches and sell them or post them online, but they do not necessarily try every one when ready.
However, the risk is real. Attackers use automated tools to test leaked passwords against popular sites — email providers, banks, social media platforms — to see which ones work. If your password is weak or common, or if you reuse it across multiple sites, an attacker can get in. The sooner you change a compromised password, the smaller the window for someone to use it.
If you discover your password was in a breach, check your account activity for signs of unauthorized access. Most email and banking sites show you a list of recent logins with dates, times, and device types. If you see a login you do not recognize, change your password when ready and contact the company's support team.
Why passwords get into breach databases
Passwords end up in public breach databases when a company's servers are hacked or when an employee leaks data. Large breaches happen regularly — retailers, social media platforms, email providers, and government agencies have all been hit. When a breach occurs, attackers copy user data (which usually includes usernames and passwords) and either sell it, post it online, or both.
Some breaches are years old but the passwords only become widely known later, when someone posts the data on a forum or sells it to a criminal marketplace. This is why Have I Been Pwned can show you a password from a breach that happened five years ago — the data may have circulated for years before ending up in the database.
You cannot control whether a company you use gets breached. What you can control is whether you reuse passwords, because reusing them means one breach puts all your accounts at risk. Using a unique password for each important site — or using a password manager to generate and store unique passwords — is the most effective defense.
What to do if your password was compromised
Start with your email account. Email is the master key to your other accounts — if someone gets into your email, they can reset passwords on banking sites, social media, and anywhere else. Change your email password first, make it strong and unique, and do not reuse it anywhere else.
Next, change the password on any account where you used that same compromised password. If you used it on your bank, credit card, or investment accounts, change those when ready. Then move through social media, shopping sites, and any other account that holds personal information or payment methods.
After you have changed your passwords, turn on two-factor authentication (also called 2FA or multi-factor authentication) on your most important accounts. Two-factor authentication means that even if someone has your password, they cannot log in without a second piece of information — usually a code from an app on your phone, a text message, or a security key. Email, banking, and social media accounts should all have this turned on.
If you have many accounts and cannot remember which ones used the compromised password, a password manager can help you organize and update them. Password managers like Bitwarden, 1Password, or Dashlane store all your passwords in an encrypted vault and can generate new, unique passwords for each site.
How to prevent your password from being compromised in the future
The most important step is to use a different password for each account. This way, if one company gets breached, only that one account is at risk. A unique password does not have to be complicated — it just has to be different from your other passwords.
A password manager removes the burden of remembering dozens of unique passwords. You only need to remember one strong master password, and the manager stores and fills in the rest. Most password managers can also generate random passwords for you, which are harder to guess than passwords you create yourself.
Make your passwords long rather than complex. A 16-character password with a mix of uppercase, lowercase, numbers, and symbols is stronger than an 8-character password, but a 20-character phrase like "BlueSky-Bicycle-Seventeen-Lamp" is even stronger and easier to remember if you need to type it.
Check Have I Been Pwned periodically for your email address, not just your password. You can enter your email address to see if it appears in any known breach. Some people set up monitoring so the site notifies them if their email shows up in a new breach — this gives you a heads-up to change your password before attackers try to use it.
What happens after you change a compromised password
Once you change your password, the old one is no longer valid. If an attacker tries to use the old password to log in, they will be locked out. However, if they already logged in before you changed it, they may still have access to your account through other means — for example, if they added a recovery email address or changed your security settings.
This is why it is important to check your account settings after changing a compromised password. Look for any email addresses or phone numbers you do not recognize, review connected apps or devices, and check whether two-factor authentication is turned on. If you see anything suspicious, change it when ready and consider contacting the company's support team.
If your password was compromised on a financial account and you are concerned about fraud, you can also place a fraud alert or credit freeze with the credit bureaus. A fraud alert tells creditors to verify your identity before opening new accounts in your name. A credit freeze prevents creditors from accessing your credit report entirely, which stops most identity theft cold.
Frequently Asked Questions
If my password was in a breach, does that mean someone has already accessed my account?
Not necessarily. Your password being in a breach database means it exists in a leaked file that attackers have, but it does not mean they have tried to use it yet or that they got in. However, the risk is high enough that you should change it right away. Check your account's login history to see if there are any logins you do not recognize.
Can I search for my password safely on Have I Been Pwned?
Yes. The site uses a method that only sends part of your password's code to the server, so your actual password never leaves your device. You can also read the site's code and run it offline if you want to be extra cautious. The site does not store or log your searches.
What if I use the same password on multiple sites and it was compromised?
Change it on every site where you use it, starting with email and banking. An attacker with your password will test it on popular services to see which ones work. After you change it everywhere, set up a password manager so you can use unique passwords going forward and never have this problem again.
How often should I check if my password was compromised?
You can check once and then periodically check your email address instead. Have I Been Pwned lets you search your email to see if it appears in any known breach. Some people check every few months or after hearing about a major data breach in the news.
Is a strong password enough to protect me if it gets compromised?
A strong password helps, but two-factor authentication is the real defense. Even if your password is in a breach, two-factor authentication means an attacker cannot log in without your phone or security key. Turn it on for email, banking, and any account with sensitive information.