You downloaded a file: an installer, a disk image, a release archive. Next to the download, the publisher printed a long string of hex characters, and you are expected to trust that the file which arrived on your machine is the file they released. A dropped connection, a bad mirror or a swapped file can all leave you holding something that is almost right, and almost right is not right.
A hash check settles it. It answers one question: is this file exactly the file the publisher released? This guide explains what the check proves and what it does not, and how to run it with the free Hash Checker on Ovatly, which hashes the file on your device and never uploads it.
Contents
- Quick answer
- What a hash check actually proves
- Where checksums live
- MD5 or SHA-256, and the Auto-detect setting
- How to verify a file, step by step
- Worked example: the three letters abc
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
Download the file and find the checksum on the publisher's page, usually on the same page as the download or in a checksums file. Open the Hash Checker, select the file, paste the expected hash, and press Check the file. The tool hashes your file locally and compares the two values character by character. A Match verdict means the bytes are identical to the ones the checksum was made from. A No match verdict usually means an interrupted download or the wrong file: re-download once and check again before assuming anything worse.
What a hash check actually proves
A hash is a fixed-length fingerprint computed from a file's exact bytes. Change one byte anywhere in the file and the hash comes out different, which is what makes the comparison useful. The checker computes the hash of the file you have and compares it with the value the publisher published, character by character.
A match proves exactly one thing: the bytes are identical to the ones the checksum was made from. It does not prove the publisher is trustworthy. A checksum copied from a compromised page would happily match a compromised file. That is why the checksum itself should come from the publisher's own site, ideally over HTTPS, so the value you are checking against has not been tampered with either.
Where checksums live
Publishers put checksums in a few predictable places: on the download or release page itself, in a dedicated checksums file with a name like SHA256SUMS, or next to each file in a mirror listing. A release with several files will list one checksum per file, so make sure the value you copy belongs to the exact file you downloaded. If a site labels its checksum with the algorithm that produced it, note that too: picking the algorithm yourself in the tool removes all doubt about which one to use.
MD5 or SHA-256, and the Auto-detect setting
Checksums come in different algorithms, and they are not equal. SHA-256 is the one to trust. An MD5 match rules out accidents but not deliberate forgery, because MD5 collisions can be manufactured: two different files can be made to share an MD5 hash. A matching SHA-256 carries far more weight.
The Hash Checker can pick the algorithm for you. Auto-detect guesses it from the length of the value you paste: 32 hex characters means MD5, 64 means SHA-256, and so on. When you paste a hash, upper and lower case and any spaces are ignored; everything else must match exactly. Leaving Auto-detect on is fine for a quick check, but choosing the labelled algorithm yourself is the better habit when the publisher states one.
How to verify a file, step by step
- Download the file, and find the checksum on the publisher's page, often on the same page as the download or in a checksums file.
- Open the Hash Checker and select the file. It is hashed locally on your device and never uploaded.
- Paste the expected hash. Leave the algorithm on Auto-detect unless you know it, in which case pick it yourself.
- Press Check the file and read the verdict: Match, or No match.
Worked example: the three letters abc
Create a plain text file containing exactly the three letters abc, with no trailing newline. Its SHA-256 is:
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
Select that file in the checker, paste the value above, and the verdict is Match. Now open the file, press Enter at the end, and save it. The file looks the same and reads the same, but the verdict flips to No match, because the newline is now part of the file and the bytes have changed. This tiny example is the whole idea in miniature: the check is about exact bytes, not about what a file appears to contain.
Limitations and honest tradeoffs
The check proves the bytes match a published value. It cannot prove the publisher is honest, and it cannot tell you whether a matching file is safe to run, only that it is the file the checksum was made from.
The file is read into memory for hashing, so extremely large files can be slow on small devices. The comparison is also unforgiving by design: everything in the pasted value except case and spaces must match exactly, so a checksum copied with a missing character will fail even when the file itself is perfect. Copy the whole value, and copy it from the publisher's own page.
Common mistakes
- Trusting a checksum from an untrusted place. Get the checksum from the publisher's own site, ideally over HTTPS, not from a forum post or a mirror's description.
- Assuming a failed check means tampering. It usually means an interrupted download or the wrong file. Re-download once and check again; if it still fails, do not install the file and contact the publisher.
- Checking the wrong file. A downloads folder often holds several similar names. Check the exact file you intend to install.
- Accepting an MD5 match as proof. MD5 rules out accidents, not forgery. Prefer SHA-256 when the publisher offers both.
- Typing the hash by hand. One wrong character fails the check. Paste it, and paste all of it.
FAQs
What does a hash check actually prove? A match proves the bytes of your file are identical to the bytes the checksum was made from, character for character. It does not prove the publisher is trustworthy, which is why the checksum itself should come from the publisher's own site, ideally over HTTPS.
The check failed. Is the file dangerous? Not necessarily. A failed check usually means an interrupted download or the wrong file, far more often than tampering. Re-download once and check again; if it still fails, do not install the file and contact the publisher.
Where do publishers put their checksums? On the download or release page, in a file named like SHA256SUMS, or next to each file in a mirror listing. If a publisher labels its checksum with an algorithm, pick that algorithm in the tool instead of leaving it on Auto-detect.
Should I trust an MD5 checksum or a SHA-256 one? Trust SHA-256. An MD5 match rules out accidents but not deliberate forgery, because MD5 collisions can be manufactured. Auto-detect guesses the algorithm from the hash length: 32 hex characters means MD5, 64 means SHA-256.
Does the tool upload my file to check it? No. The file is hashed on your device and never uploaded. It is read into memory for hashing, so extremely large files can be slow on small devices, but nothing leaves your machine.
Conclusion
A hash check takes a minute and removes a whole category of doubt: the file on your disk either is, byte for byte, the file the publisher released, or it is not. The Hash Checker runs that comparison on your device, with nothing uploaded, for MD5 and SHA-256 alike. Passwords need a different kind of hash entirely, one designed to be slow rather than fast, which is the subject of our companion guide, What Is bcrypt and Why Is It Used for Passwords. For more guides in this series, see our Security and Privacy Utilities guides.
References
- Wikipedia, SHA-2, on the SHA-256 algorithm and its published test values: https://en.wikipedia.org/wiki/SHA-2
- Wikipedia, MD5, on why MD5 collisions make it unsuitable where forgery matters: https://en.wikipedia.org/wiki/MD5