You did the careful thing. You found the checksum on the download page, you hashed the file you received, and the two strings do not match. Now two strings agree almost everywhere except where it matters, and you are wondering whether you have a corrupt download, the wrong file, or a genuine problem.
This guide explains what a mismatch means, the likely causes in the order to suspect them, and the fix that resolves nearly every case: delete the file, download it again from the publisher's source, and check the fresh copy with the File Hash and Info Report.
Contents
- Quick answer
- What a mismatch means, precisely
- Rule out a faulty comparison first
- The likely causes, in order
- What to do, step by step
- Worked example: a mismatch you can reproduce
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
A mismatch means one thing: the file in front of you is not the file the publisher hashed. The most common cause is an incomplete or corrupted download, followed by the wrong file or the wrong release's checksum. Tampering is possible, but it is the least common explanation. The remedy is never to repair the file. Delete it, fetch a fresh copy from the publisher's own site, and compare again with the File Hash and Info Report.
What a mismatch means, precisely
A hash is all or nothing. It turns a file's bytes into a fixed-length string, and two files differing by one byte produce completely different strings. A mismatch is not a matter of degree: a checksum agreeing in 63 of 64 characters is not right, it is the fingerprint of a different file.
Equally important is what a mismatch cannot tell you. It cannot say which byte changed, where the change happened, or why. The hash of a damaged file is just the correct hash of some other file. The cause has to be reasoned out: where the file came from, how the download went, and whether the checksum belongs to this file. A mismatch is information, not a verdict of danger: the verification failed, so this copy has not earned trust.
Rule out a faulty comparison first
Before suspecting the file, suspect the comparison: human-side errors are common and cost nothing to check.
- Wrong algorithm line. The report shows both MD5 and SHA-256. Comparing a computed MD5 against a published SHA-256, or the reverse, guarantees a mismatch. Match the algorithm first, then the string.
- A checksum for a different file. Release pages list checksums for several files: different versions, different operating systems, source archives alongside installers. Make sure the string you copied belongs to the exact file you downloaded.
- A partial comparison. Two strings can start identically and still differ later. Paste both into a text editor and compare the full length.
- A changed local copy. If you opened the download in an editor and re-saved it, you are hashing a different file. Always hash the file as downloaded, untouched.
The likely causes, in order
1. A truncated or corrupted download. Reach for this explanation first. Connections drop, and browsers and download managers can write a file that is short or has a damaged stretch in the middle. Its hash, computed from every byte, notices what the surface does not.
2. The wrong file. Second, the file may be fine and the pairing wrong: you downloaded version 2.1 and compared with the checksum for 2.0, or took the 64-bit build and checked the 32-bit line, or hashed the installer against the archive's checksum. The file is what it claims to be; it is not the file that checksum describes.
3. Tampering. A file altered after release, by a compromised mirror or a hostile download site, will mismatch, the scenario checksums exist to catch. It is real, but for files from a publisher's official site it is the least common of the three. Treat it as a reason to replace the file, not as proof of an attack.
What to do, step by step
- Delete the mismatched file. Do not run it, install it, or keep it around. A file that failed verification has no job on your machine.
- Go to the publisher's official site, not through a mirror or a search result's download button, and download it again.
- Open the File Hash and Info Report and run the fresh copy. Nothing is uploaded; the browser reads the file locally.
- Compare the full string for the same algorithm. If it matches, you are done: the first download was the problem.
- If the fresh copy also mismatches, stop. Recheck that the checksum belongs to this exact file and version. If it does, do not use the file: contact the publisher, because a checksum no honest download can match is their problem to explain, and other users will hit it too.
Worked example: a mismatch you can reproduce
Create a text file containing exactly the three characters abc, and the published test vectors say the report should show:
MD5: 900150983cd24fb0d6963f7d28e17f72
SHA-256: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
Suppose instead the report shows an MD5 of 0bee89b07a248e27c83fc3d5951213c1. That is a total mismatch, yet nothing was attacked or corrupted. The cause is duller: the editor saved a trailing newline, so the file holds 4 bytes instead of 3, and that string is the genuine fingerprint of abc plus a newline. Remove the newline, run the file again, and the hash matches the published vector.
Every mismatch works the same way: the string reports the bytes it was given, and the fix is to put the right file in front of the tool.
Limitations and honest tradeoffs
A hash check proves a file is not the publisher's file, but it cannot diagnose it. It will not point at the damaged byte, separate a truncated download from a tampered one, or say whether the file is dangerous. It answers one question and leaves the detective work to you.
Re-checking has a small cost. MD5 is computed in 4 MB slices with a progress bar, but SHA-256 reads the file as one block, so verifying a very large download can take a while and use noticeable memory. That is the tradeoff for keeping the file on your machine.
And if the publisher's checksum is wrong, or their site is compromised, no re-download produces a match you should trust. The tool has done its job by refusing to agree.
Common mistakes
- Trying to fix the file. There is no edit, repair or conversion that turns a wrong file into the hashed one. A mismatch is resolved by replacement, not repair.
- Downloading the replacement from somewhere else. The replacement should come from the publisher's official site, the same source as the checksum, not from a mirror or aggregator.
- Using the file anyway because it opens. A changed file can still run. Opening is not verification; the hash is.
- Assuming tampering first. Work through the dull causes first: an incomplete download, the wrong file, a faulty comparison. Alarm is usually wasted.
- Re-checking only the start of the string. Compare the full length, every time, especially on the replacement copy.
FAQs
My checksum does not match. Is my file infected? That is the least likely explanation. Most mismatches come from incomplete downloads or checking the wrong file. Treat the file as unverified, not dangerous: delete it, download a fresh copy from the publisher's official site, and check again.
Can I fix a file so that its hash matches? No. No edit, repair or conversion turns a wrong file into the hashed one, and patching a file to force a result defeats the purpose of the check. A mismatch is resolved by getting the right file, not by changing the one you have.
The file opens and works even though the hash differs. Can I use it? Opening is not verification. A changed file can still run, and the altered parts may not be parts you exercised. If the hash differs, you do not have the publisher's file, so replace it with a copy that verifies.
What if it still mismatches after I download it again? Stop and recheck the pairing: confirm the checksum belongs to this exact file and version, and that you compared the same algorithm. If a fresh download still mismatches, do not use the file, and contact the publisher, because the fault is likely at their end.
Is my file uploaded when I re-check it here? No. Your browser reads the file locally and computes the hashes on this device. Nothing leaves your machine, on the first check or on any re-check.
Conclusion
A mismatched checksum feels alarming, but it is the system working: the check caught a file that is not what it claims to be, before you relied on it. In most cases the cause is an incomplete download or the wrong file, and the fix is a fresh copy from the publisher's official site, checked again. The File Hash and Info Report makes that re-check quick and local. If you want the groundwork first, our explainer on what a file hash is and why download pages show one covers how the fingerprint works. For more guides in this series, see our File and Data Conversion guides.
References
- MDN Web Docs, on the Web Crypto digest operation browsers use to compute hashes: https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest
- NIST, the Secure Hash Standard (FIPS 180-4) that defines SHA-256: https://csrc.nist.gov/pubs/fips/180-4/upd1/final