Security researcher Troy Hunt set up Have I Been Pwned? so people can check if their personal information has been compromised in a data breach.
The database includes hundreds of millions of leaked accounts from years of hacks from across the globe. Type in your username or email address and the site will tell you if you’ve been pwned (if your username/email has been part of a data breach).
As well as finding out if your data was leaked you can sign up and get immediate notification if your email address or username show up in any future data breaches.
Bear in mind though, that the service isn’t 100% reliable. Many breaches are not made public and might possibly contain your information.
You can’t help it if your data ends up in a breach, but always use a strong password. Try not to give your address or phone number to a site unless you really have to, and try to use temporary email addresses and usernames where possible.