Hash Checker

0 chars· or drag a file here

Paste an expected hash and your input to verify.

About the Hash Checker

The Hash Checker is the verify-first counterpart to the Hash Generator. Paste an expected hash, then drop a file (up to 5 MiB) or paste text. The checker picks the algorithm — MD5, SHA-1, SHA-256, SHA-512, or bcrypt — from the length of the expected hash (or its `$2a$` / `$2b$` / `$2y$` prefix), hashes your input with it, and shows a single Match or Not Match verdict. That auto-detection is essential when a release page just gives you a bare hash without telling you whether it is SHA-256 or SHA-512, and you can still pick the algorithm yourself. Hashing runs locally; the file, text, or password you check is not saved anywhere. The algorithm is saved in the page address; the expected hash goes into a link only when you click Share.

Updated: May 8, 2026

How to use the hash checker

  • Paste the expected hash into the "Expected hash" field. The algorithm is auto-selected from its length (or bcrypt prefix); click an algorithm pill to override it.
  • Drop a file or paste text into the input area (for bcrypt, enter the candidate password). Files up to 5 MiB hash in well under a second on modern hardware via Web Crypto. Hex (lowercase or uppercase) and Base64 expected values are both accepted; whitespace, surrounding quotes, a `0x` prefix, and `:` or `-` separators between hex byte pairs (`AB:CD:EF`) are stripped.
  • The verdict updates as you type: Match if the computed digest equals the expected value, Not Match if it differs. The computed digest is shown underneath so you can compare it by eye.
  • For bcrypt, paste the full modular-crypt format string (`$2b$10$<22-char-salt><31-char-hash>`) and the candidate password — bcrypt verification uses `bcryptjs.compare` which handles the salt extraction internally.
  • Length hint: if your expected hash length fits a different algorithm than the one selected (32 hex / 16 bytes for MD5, 40 hex / 20 bytes for SHA-1, 64 hex / 32 bytes for SHA-256, etc.), or fits none of them, the tool surfaces a hint so you do not waste time wondering why nothing matches.

Common use cases

  • Download integrity verification. Apache, Linux distributions, Docker, GitHub release pages, and HashiCorp project downloads publish digests next to release artifacts. Drop the artifact + paste the published hash — a Match verdict means the bits are intact.
  • Git object lookup. Git uses SHA-1 (and is migrating to SHA-256). Paste a Git commit ID or blob hash and check it against your local copy.
  • TLS certificate fingerprint matching. `openssl x509 -fingerprint -sha256` produces a colon-separated hex digest; paste the value after `Fingerprint=` here, colons included, against your downloaded certificate file, and confirm the fingerprint pinning.
  • bcrypt password verification. During development or migration scripts, drop the production bcrypt hash + a candidate password to confirm whether the candidate matches without needing a server round-trip.
  • Forensic chain-of-custody. SHA-256 digests of evidence files preserve a tamper-evident record. The verifier confirms a candidate file matches the recorded hash without uploading evidence to any third-party scanner.

Privacy and security

Hashing happens in your browser via Web Crypto (`crypto.subtle.digest` for SHA family) and the lazy-loaded spark-md5 + bcryptjs modules. Files are read locally with the File API, and file bytes, text, and passwords are never sent to our servers or analytics or saved in the page address. The selected algorithm is saved in the page address as you type, so scripts on the page, including ads, can read it, and it is sent to our CDN when you reload and kept in browser history. The expected hash is not written to the page address while you type. It goes into a link only when you click Share, after the `#`, which browsers do not send to the server, and anyone with that link can read it. Share asks before copying a link with a bcrypt hash, since a real user's bcrypt hash can be attacked offline. A shared link stays in the recipient's browser history and in any app the link passes through. Once the page and the hashing code for your algorithm have loaded, you can disconnect from the network and the verifier still works — useful for verifying hashes of files that should not be exposed to a network at all (forensic evidence, signed contracts, internal-only releases).

Tips and pitfalls

  • Hex vs Base64 confusion. The same digest can be represented as 64 hex characters (for SHA-256) or 44 Base64 characters. Some CDNs use Base64 in their `Subresource-Integrity` directive; many publishers use hex. The verifier accepts both (Base64 is recognized by length) — but make sure you copy the full string.
  • Whitespace is tolerated. Pasting from email or a release page often introduces leading/trailing spaces or stray newlines. The verifier strips them automatically, along with surrounding quotes, a `0x` prefix, and `:` or `-` separators between hex byte pairs, so an `openssl` fingerprint like `AB:CD:EF:...` matches as pasted.
  • Case-insensitive hex matching. `ABC123` and `abc123` are equivalent in hex; the verifier normalizes both sides before comparing.
  • bcrypt prefix variants. The bcrypt modular-crypt format has four prefix variants (`$2a$`, `$2b$`, `$2x$`, `$2y$`). This checker auto-detects and verifies `$2a$`, `$2b$`, and `$2y$`; bcryptjs rejects the legacy `$2x$` prefix.
  • Length mismatches usually mean wrong algorithm. If you paste a 64-character hex string while SHA-512 (128 hex) is selected, the length hint will suggest SHA-256 instead.

Frequently Asked Questions

How do I verify a download integrity?
Drop the downloaded file. Paste the publisher's hash. The checker picks the algorithm from the hash length and shows Match or Not Match. If nothing matches, either the file is corrupted, you copied the wrong hash, or the publisher used an unusual algorithm (Blake2, SHA-3) we do not support.
Hex or Base64 — which encoding should I paste?
Either works. Most release pages use lowercase hex. SRI directives (`integrity="sha384-..."`) use Base64. The verifier detects the encoding by length, normalizes whitespace and case, and compares.
Does it recognize all bcrypt variants?
`$2a$`, `$2b$`, and `$2y$` are auto-detected and verified via bcryptjs. The legacy `$2x$` prefix is not supported. The cost factor and salt are extracted automatically, and verification uses the standard bcrypt KDF regardless of prefix.
What does the length-mismatch hint mean?
You pasted a hash whose length does not fit the selected algorithm, or any supported algorithm. MD5 is 32 hex / 24 base64; SHA-1 is 40 / 28; SHA-256 is 64 / 44; SHA-512 is 128 / 88; bcrypt is exactly 60 chars including the prefix. The hint tells you which algorithms could have produced your expected length — most often this means you copied a partial hash or used an unsupported algorithm like Blake2.
Can I check multiple algorithms at once?
Not in parallel. The checker hashes your input with one algorithm at a time, but it auto-selects that algorithm from the expected hash, so you only need to paste one value. If the verdict is Not Match and you suspect a different algorithm, click another algorithm pill to re-check.
How large a file can I check?
5 MiB. Larger files are rejected — for gigabyte-scale checking use `sha256sum` on Linux, `shasum -a 256` on macOS, `Get-FileHash -Algorithm SHA256` on Windows PowerShell, or `certutil -hashfile <file> SHA256` on Windows cmd.
Is file integrity check the same flow as password verification?
No — file integrity uses a content digest (MD5/SHA family); password verification uses bcrypt with a candidate password. Both use the same UI but the input semantics differ: for file integrity you hash the file and compare; for bcrypt you give the candidate password and the stored hash, and the bcrypt algorithm internally extracts the salt and cost factor.
Is the file uploaded?
Never. The File API reads the file bytes into the browser; the digest is computed via `crypto.subtle.digest` (SHA family) or spark-md5 (MD5). No request carries your file. Once the page and the hashing code for your algorithm have loaded, you can disconnect from the network and the verifier still works as long as you keep the tab open.
Where can I read the standards?
RFC 1321 (MD5), RFC 6234 (SHA-1, SHA-256, SHA-512), NIST FIPS 180-4 (SHA family), and the bcrypt original paper (Provos & Mazières 1999). MDN has practical Web Crypto examples for `crypto.subtle.digest`.