Private Breach Checker
Check if a password appears in known breaches without revealing it (k-anonymity).
How it works
Checks a password against the Have I Been Pwned Pwned Passwords collection using k-anonymity: your browser hashes the password with SHA-1 and sends only the first 5 of 40 hex characters. The server and API accept only a SHA-1 hash or 5-character prefix, never a password.
- The password is hashed with SHA-1 (uppercase hex). Only the first 5 hex characters (20 bits) are sent to https://api.pwnedpasswords.com/range/<prefix>; the service returns every known hash suffix with that prefix (typically 800–1,000) and how often each appeared in breaches.
- Requests use the Add-Padding header, so the response contains random zero-count entries and its size reveals nothing; padding entries are ignored.
- With JavaScript on, the range request goes from your browser to the Pwned Passwords service. If your browser cannot reach the service directly, the page asks our API for the same 5-character range
- The server path (no JavaScript, API, MCP) accepts only a 40-character SHA-1 hash or a 5-character prefix and rejects anything else, so a password can never be submitted by mistake. With a full hash, the server sees the hash (not the password) and sends only the prefix onwards.
- Not found does not prove a password is strong: it only means it is not in this breach corpus.
If a password appears in a breach, stop using it everywhere and change it. Use a password manager and unique passwords.
Sources
- Have I Been Pwned: Pwned Passwords API (range search, k-anonymity, padding) (Troy Hunt, Have I Been Pwned)
- Pwned Passwords data licence: Creative Commons Attribution 4.0 International (CC BY 4.0) (Have I Been Pwned)
Use this tool in an app
These free programs for your browser have this tool built in, next to everything else the task needs.
-
Keysmith Crypto & secrets lab
Audit certificates, keys, TLS and passwords in one lab; server runs ask first.
Related tools
- Password & Passphrase Generator – Strong random passwords and passphrases with exact entropy.
- Hash & HMAC Calculator – MD5, SHA-2, SHA-3, BLAKE2, CRC32 and HMAC of text or files, with checksum compare.
How to use the Private Breach Checker
Check whether a password appears in the Have I Been Pwned breach corpus without revealing it, and understand what the k-anonymity range check sends.
What it is for
Attackers try passwords from earlier breaches first, so a password that has leaked anywhere is unsafe everywhere, however clever it looks. This checker looks up a password in the Have I Been Pwned (HIBP) Pwned Passwords collection without sending the password, or even its full hash, to anyone.
Here's how. Your browser computes the SHA-1 of the password and sends only the first 5 of 40 hex characters to the HIBP range API. HIBP returns every known hash in the corpus that starts with those 5 characters, typically around a thousand of them, with their breach counts. Your browser then looks for your full hash in that list. Requests also ask for padding, so the size of the response gives nothing away.
The server and API never accept a password at all, only a 40-character SHA-1 hash or a 5-character prefix. The checker tells you about one password's exposure. It doesn't tell you which of your accounts were breached, and a "not found" doesn't mean the password is strong.
Worked example
We checked the SHA-1 of the word password, which is 5BAA61E4C9B93F3F0682250B6CF8331B7EE68FD8, through the API in October 2026. The answer:
Pwned: this password hash appears 52,372,427 times in known data breaches. Do not use this password.
The server forwarded only the prefix 5BAA6. The range response held 1,978 entries, 56 of them padding. The warning confirms what left our server: the full hash came in, and only its first 5 characters went out.
In prefix-only mode we sent just 21BD1. In this mode the server can't tell which, if any, of those hashes is yours.
The counts change as HIBP adds breaches, so your numbers may differ.
How to read the result
- Found / not found: whether your full hash is in the corpus.
- Breach count: how often that password appeared across all breaches. Even a count of 1 means it's on attacker wordlists.
- Prefix and range entries: what was sent and how many candidates came back. Padding entries have a count of 0 and are ignored.
- Retrieved at: when the range was fetched.
Tips and common mistakes
- On the page with JavaScript on, use the password box. With JavaScript on, the range request goes from your browser straight to the breach database (or through our server if that fails); only the first 5 hash characters are sent.
- Don't type a password into the hash field. The server path rejects anything that isn't a hex SHA-1 hash or a 5-character prefix, so it can't be submitted by mistake.
- If a password is found, change it on every account where you used it, not just one.
- "Not found" only means it isn't in this corpus.
Summer2026!may be missing today and still fall quickly to a guessing attack. Use generated passwords. - For scripts, hash locally (
printf '%s' "$pw" | sha1sum) and send only the first 5 characters. Withechowithout-n, the newline ends up in the hash.
FAQ
Is it safe to enter my real password?
Only 5 hex characters of its SHA-1 do, and they match about a thousand other hashes.
Why SHA-1 if SHA-1 is broken?
HIBP's corpus is indexed by SHA-1. Here it's only an index for the lookup, not protection for the password, and the collision weaknesses don't matter for this use.
Where does the data come from?
From Have I Been Pwned's Pwned Passwords, used under CC BY 4.0. We don't keep a copy.
Does it check my email address?
No. It only checks passwords. Email breach searches are done on haveibeenpwned.com itself.
Guide last updated:
For scripts and AI agents
- JSON API:
POST https://privatebreachchecker.usefulweb.site/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://privatebreachchecker.usefulweb.site/mcp· tool nameprivate_breach_checker
Example request
curl -s -X POST https://privatebreachchecker.usefulweb.site/api/v1/calculate \
-H 'content-type: application/json' \
-d '{"hash":"5BAA61E4C9B93F3F0682250B6CF8331B7EE68FD8"}'